Yuming Wang created HIVE-22012:
----------------------------------
Summary: Support timestamp type + string type
Key: HIVE-22012
URL: https://issues.apache.org/jira/browse/HIVE-22012
Project: Hive
Issue Type: Improvement
Components: Parser
Affects Versions: 4.0.0
Reporter: Yuming Wang
{code:sql}
hive> select current_timestamp() + '100 days';
FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments ''100 days'':
No matching method for class
org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPDTIPlus with (timestamp,
string)
hive>
{code}
{code:sql}
postgres=# explain verbose select now() + '100 days', '100 days' + now();
QUERY PLAN
--------------------------------------------------------------------------
Result (cost=0.00..0.02 rows=1 width=16)
Output: (now() + '100 days'::interval), (now() + '100 days'::interval)
(2 rows)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)