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

Update to_number function to be consistent with CAST function

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: None
    • Labels:

      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

              • Assignee:
                KazydubB Bohdan Kazydub
                Reporter:
                KazydubB Bohdan Kazydub
                Reviewer:
                Vitalii Diravka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: