Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6815

Support bin function for Spark and Hive Library

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      Currently calcite not support bin functions for Hive and Spark Library, need to support it.

      related Hive links:  https://hive.apache.org/docs/latest/hive-udfs_282102277/#mathematical-functions

      Spark:https://spark.apache.org/docs/latest/api/sql/index.html#bin

      usage: select bin(long type) 

      return binary array string.

      example:

      hive> select bin(12);
      OK
      1100
      Time taken: 2.857 seconds, Fetched: 1 row(s)

       

      arg type is long type and return a string type.

      Attachments

        Issue Links

          Activity

            People

              xuzifu666 Yu Xu
              xuzifu666 Yu Xu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: