delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.62k stars 1.71k forks source link

[Spark] Get rid of duplicated replaceCharWithVarchar function #3684

Closed alekseish-db closed 2 months ago

alekseish-db commented 2 months ago

Which Delta project/connector is this regarding?

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