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

Add BIT_LENGTH function (enabled in Spark library)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • core

    Description

      Returns the string or binary data bit numbers.

      > SELECT bit_length('Apache Calcite');
      112
      > SELECT bit_length(x'4170616368652043616C63697465');
      112

       

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

      Attachments

        Issue Links

          Activity

            People

              taoran Ran Tao
              taoran Ran Tao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: