Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] base64_encode and base64_decode operations #3048

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ConeyLiu
Copy link
Contributor

Add standard base64 encode/decode supports.

@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 15, 2024
Copy link

codspeed-hq bot commented Oct 15, 2024

CodSpeed Performance Report

Merging #3048 will not alter performance

Comparing ConeyLiu:base64_encode_decode (3fa989c) with main (e4fe0b3)

Summary

✅ 17 untouched benchmarks


pub(super) struct Base64DecodeEvaluate {}

impl FunctionEvaluator for Base64DecodeEvaluate {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've been moving away from FunctionEvaluator and instead implementing new functions using the daft-functions crate. Here's a merged PR of migrating from the old to the new.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, let me check it.

Copy link
Contributor Author

@ConeyLiu ConeyLiu Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@universalmind303 I have submit #3101 to move utf8 from daft-dsl to dsl-functions. Then I will add those two expressions to dsl-functions. Hopefully, you have time to review it.

@samster25
Copy link
Member

We should also support encoding binary arrays -> utf8 as base64 and also decode utf8 -> binary since that is the most common use I see for base64!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants