Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22012

Support timestamp type + string type

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Parser
    • Labels:
      None

      Description

      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>
      
      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                yumwang Yuming Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: