Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- is part of
-
DRILL-6768 Improve to_date, to_time and to_timestamp and corresponding cast functions to handle empty string when `drill.exec.functions.cast_empty_string_to_null` option is enabled
-
- Resolved
-