Skip to content

Comments

feat: support Spark unbase64 expression#3572

Draft
n0r0shi wants to merge 1 commit intoapache:mainfrom
n0r0shi:unbase64-419-only
Draft

feat: support Spark unbase64 expression#3572
n0r0shi wants to merge 1 commit intoapache:mainfrom
n0r0shi:unbase64-419-only

Conversation

@n0r0shi
Copy link

@n0r0shi n0r0shi commented Feb 23, 2026

Summary

  • Add CometUnBase64 handler that maps Spark's unbase64(input) to DataFusion's built-in decode(input, 'base64') function
  • The failOnError variant (triggered by to_binary(x, 'base64')) is not supported by DataFusion's decode and falls back to Spark

Test plan

  • unbase64 with column data, literal, and null
  • to_binary(x, 'base64') fallback test verifying failOnError path returns to Spark

Closes #423

Add CometUnBase64 handler that maps Spark's unbase64(input) to
DataFusion's built-in decode(input, 'base64') function.

The failOnError variant (triggered by to_binary(x, 'base64')) is not
supported by DataFusion's decode and falls back to Spark.

Closes apache#423
@mbutrovich
Copy link
Contributor

Thanks @n0r0shi! Kicking off CI.

@n0r0shi
Copy link
Author

n0r0shi commented Feb 24, 2026

same as #3571. I think it'd better to wait until SparkUnbase64 becomes available with newer version of DataFusion.

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.

Support spark unbase64 function

2 participants