Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6817

Update to_number function to be consistent with CAST function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.15.0
    • None

    Description

      In case when `drill.exec.functions.cast_empty_string_to_null` is enabled casting empty string ('') to numeric types will return NULL. If `to_number` is used to convert empty string to a number, UnsupportedOperationException will be thrown.

      The aim is to make these functions (CASTs and `to_number`) work consistently as is done for date/time functions.

      Attachments

        Issue Links

          Activity

            People

              bohdan Bohdan Kazydub
              bohdan Bohdan Kazydub
              Vitalii Diravka Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: