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

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • SQL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: