Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.16.0
-
None
Description
SELECT upper('foo') AS a /* OK */; +-----+ | a | +-----+ | foo | +-----+
but
SELECT split('foo,bar,buz',',') AS a /* NOK */; Error: PLAN ERROR: Failure while materializing expression in constant expression evaluator [SPLIT('foo,bar,buz', ',')]. Errors: Error in expression at index -1. Error: Only ProjectRecordBatch could have complex writer function. You are using complex writer function split in a non-project operation!. Full expression: --UNKNOWN EXPRESSION--.
Note that
SELECT split(a,',') AS a FROM (SELECT 'foo,bar,buz' AS a) /* OK */; +---------------------+ | a | +---------------------+ | ["foo","bar","buz"] | +---------------------+
Attachments
Issue Links
- is related to
-
DRILL-7337 Add vararg UDFs support
- Resolved