Skip to content

fix(e6): emit UNBASE64 for binary base64 decoding - #343

Open
darpan-e6 wants to merge 1 commit into
mainfrom
codex/unbase64-binary-result
Open

darpan-e6 wants to merge 1 commit into
mainfrom
codex/unbase64-binary-result

Conversation

@darpan-e6

@darpan-e6 darpan-e6 commented Nov 24, 2026 •

Copy link
Copy Markdown

Databricks UNBASE64 returns binary. E6 SQL generation currently rewrites it to UNBASE64_BINARY to work around the engine's text-returning UNBASE64 implementation.

Generate UNBASE64 for base64 decoding and recognize that spelling as FromBase64 when parsing E6 SQL. Update the existing Databricks example and cover Spark, Databricks, and BigQuery inputs, nested AES/COALESCE expressions, empty input, and NULL.

This accompanies engine PR #2672, targeting the tobymao#2034 branch. The engine change makes UNBASE64 binary throughout planning and Java execution and removes UNBASE64_BINARY. Both changes need to be released together.

Validation passed with 172 tests across test_e6, test_databricks, test_spark, and test_snowflake using the Python tokenizer.

Databricks UNBASE64 contract

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