-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[spark], [infra] run spark integration tests in CI. #5590
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @Zouxxyy @YannByron Can you please take a look when you have time? Thanks!
Some unit tests are failing, it looks like it's releated to the changes in the time travel part. Let me take a look. |
paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java
Outdated
Show resolved
Hide resolved
You are right, let me push this PR |
@Zouxxyy Hi, sorry, I missed your message earlier. Previously, mvn test didn't run the tests for these ITCases, so I pulled this PR. Let me fix test failures and resolve these conflicts. |
41e5cb9
to
a7aa1fb
Compare
Can you replace the comparison test logic in
|
@Zouxxyy Hi, thank you for reminding me about the |
Thanks, either is fine, you can choose the one with less work |
a7aa1fb
to
cc01582
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zouxxyy Hi, I've fixed all tests, please take a look when you have time, thanks.
paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/RowTestHelper.scala
Show resolved
Hide resolved
@@ -147,6 +147,8 @@ private static void adaptScanVersion(Options options, TagManager tagManager) { | |||
} else if (version.chars().allMatch(Character::isDigit)) { | |||
options.set(SCAN_SNAPSHOT_ID.key(), version); | |||
} else { | |||
// by here, the scan version should be a tag. | |||
options.set(SCAN_TAG_NAME.key(), version); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, when querying a tag using the VERSION AS OF
syntax, if a tag did not exist, the query would not throw an error but instead return the result of the latest snapshot, which is wrong. This is because the scan version was removed from the options during time travel.
Failed test is not releated. |
LGTM!CC @JingsongLi for a look for the tag modification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Purpose
The current github CI for Spark module is missing integration tests, and some of Spark's integration tests are actually failing, they've just been consistently ignored by the CI.
This also fixes the error in time travel queries for tags: when a tag does not exist, the query now does not throw an exception, but instead directly returns the result of the latest snapshot.
Tests
API and Format
Documentation