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

[Kernel]Implement substring expression in delta kernel library #4001

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

huan233usc
Copy link

Which Delta project/connector is this regarding?

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

Description

Implements substring expression. This is 2/n for addressing #2539 (i.e. data skipping of startwith depends on substring expression, see[1] for spark's code pointer), the first part is implemented in #3991.

[1]https://github.com/delta-io/delta/blob/master/spark/src/main/scala/org/apache/spark/sql/delta/stats/DataSkippingReader.scala#L557-L561

How was this patch tested?

Added e2e test cases, the expected result are generated using spark, e.g.

WITH t(x) AS
(SELECT null union all select "one" union all select "two" union all select "three" union all select "four" union all select null union all select null union all select "seven" union all select "eight")
select substring(x,-100,98) from t

substring(x,-100,98)
null
o
t
thr
fo
null
null
sev
eig

Does this PR introduce any user-facing changes?

No

@huan233usc huan233usc changed the title Implement substring expression in delta kernel library [Kernel]Implement substring expression in delta kernel library Dec 23, 2024
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