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

Support timestamp type + string type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Parser
    • 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

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

              Dates

                Created:
                Updated: