Skip to content

Add ByteString to Calcite's Java-to-SQL Type Mappings#1

Open
lucasbrenner wants to merge 5 commits intomainfrom
fix/bytestring-to-varbinary
Open

Add ByteString to Calcite's Java-to-SQL Type Mappings#1
lucasbrenner wants to merge 5 commits intomainfrom
fix/bytestring-to-varbinary

Conversation

@lucasbrenner
Copy link

Calcite uses org.apache.calcite.avatica.util.ByteString internally to represent VARBINARY. However, when introducing a custom function that returns ByteString, such as UNBASE64 (which decodes a Base64 string to bytes), its return type defaults to OTHER. This occurs because there is no explicit mapping for ByteString in the JavaToSqlTypeConversionRules class. This PR adds the necessary mapping.

@lucasbrenner lucasbrenner self-assigned this Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant