pranavbhole commented on PR #14943:
URL: https://github.com/apache/druid/pull/14943#issuecomment-1714830654

   > LGTM. One question, is there a way say I have a column of encoded strings. 
Atm I understand the function works on string values. Not this PR but can we 
later try to make it work on a column too ? Will that be useful ? Something 
like `SELECT DECODE_BASE64_UTF8("<column>") FROM <table>`. Currently this 
throws an error like
   > 
   > ```
   > SELECT DECODE_BASE64_UTF8("dim1") FROM foo
   > 
   > Error: RUNTIME_FAILURE (OPERATOR)
   > Illegal base64 character 2e
   > java.lang.IllegalArgumentException
   > ```
   > 
   > So might want to think about a better error message. But need not be done 
in context of this PR
   
   It works on the column as well, provided you have encoded base64 string 
value stored in column. 
   If you column value has any other non base64 chars then it will throw above 
error.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to