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

fix: Fix compilation error for Spark 3.2 & 3.3 #117

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

sunchao
Copy link
Member

@sunchao sunchao commented Feb 26, 2024

Which issue does this PR close?

Closes #113.

Rationale for this change

Comet currently doesn't compile with Spark 3.2 and 3.3 since it uses Dataset.offset API, was introduced in https://issues.apache.org/jira/browse/SPARK-39159 which is Spark 3.4.

What changes are included in this PR?

This replaces the API usage with a SQL text OFFSET, and also mark the test as Spark 3.4+ only.

How are these changes tested?

Manually tested locally with PROFILES="-Pspark-3.2" make

Copy link
Contributor

@advancedxy advancedxy left a comment

Choose a reason for hiding this comment

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

LGTM

@sunchao sunchao merged commit 6ec8cb9 into apache:main Feb 27, 2024
15 checks passed
@sunchao
Copy link
Member Author

sunchao commented Feb 27, 2024

Thanks, merged

@sunchao sunchao deleted the fix-offset-3.4 branch February 27, 2024 05:55
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.

Build with Spark 3.2 failed
3 participants