Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20746 Built-in SQL Function Improvement
  3. SPARK-20948

Built-in SQL Function UnaryMinus/UnaryPositive support string type

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      UnaryMinus/UnaryPositive function should support string type, same as hive:

      $ bin/hive
      
      Logging initialized using configuration in jar:file:/home/wym/apache-hive-1.2.2-bin/lib/hive-common-1.2.2.jar!/hive-log4j.properties
      hive> select positive('-1.11'), negative('-1.11');
      OK
      -1.11   1.11
      Time taken: 1.937 seconds, Fetched: 1 row(s)
      hive> 
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: