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

[Spark] Get rid of duplicated replaceCharWithVarchar function #3684

Conversation

alekseish-db
Copy link
Contributor

@alekseish-db alekseish-db commented Sep 17, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

WriteIntoDeltaLike has a function replaceCharWithVarchar that is absolutely similar to Spark's one.
Changes from the PR remove WriteIntoDeltaLike#replaceCharWithVarchar and replace usages with Spark's CharVarcharUtils#replaceCharWithVarchar.

How was this patch tested?

It gets compiled. Changes doesn't require new tests.

Does this PR introduce any user-facing changes?

No

@alekseish-db alekseish-db changed the title Get rid of duplicated replaceCharWithVarchar function [Spark] Get rid of duplicated replaceCharWithVarchar function Sep 17, 2024
Copy link
Contributor

@c27kwan c27kwan left a comment

Choose a reason for hiding this comment

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

lgtm! Cleanups are always nice :)

@vkorukanti vkorukanti merged commit 1a52037 into delta-io:master Sep 18, 2024
14 of 17 checks passed
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.

3 participants