macroguo-ghy opened a new pull request, #4855:
URL: https://github.com/apache/calcite/pull/4855

   ## Jira Link
   
   [CALCITE-7187](https://issues.apache.org/jira/browse/CALCITE-7187)
   
   ## Changes Proposed
   
   This PR fixes Java UDF `byte[]` handling so Calcite maps SQL `VARBINARY`
   values consistently during enumerable code generation.
   
   Reproduction:
   
   ```sql
   select "adhoc".bytearray(cast('test' as varchar)) = x'74657374' as c;
   values "adhoc".bytearray_length(x'74657374');
   ```
   
   Changes in this PR:
   
   - add `byte[]` <-> `ByteString` conversion helpers in `SqlFunctions`
   - wire those conversions through `EnumUtils` and `BuiltInMethod`
   - add `UdfTest` coverage for `byte[]` return values and `byte[]` parameters
   - document `byte[]` and `ByteString` as supported Java representations of SQL
     `VARBINARY` for Java UDFs
   


-- 
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]

Reply via email to