-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45309][SQL] Remove all SystemUtils.isJavaVersionAtLeast with JDK 9/11/17 #43098
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
|
@LuciferYang and @cloud-fan . They are mostly Hive and SQL direct buffer stuff. |
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala
Outdated
Show resolved
Hide resolved
sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientVersions.scala
Outdated
Show resolved
Hide resolved
sql/hive/src/test/scala/org/apache/spark/sql/hive/client/HiveClientVersions.scala
Outdated
Show resolved
Hide resolved
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.
still need this val disableRewrite?
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.
Will there be a chance for these ignored cases to be restarted?
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.
Let's leave it for now. I think this test does not target to test 0.12 (although the metastore version is set like that).
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.
shall we change the hive version in these tests?
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.
For this and and the last one, we could. But the others don't set the Hive version apparently. I will just take a look separately.
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.
For this function, it should be possible to further refactor to avoid using un-exported APIs and internal APIs, but the current changes in this pr are ok.
|
For the following case, it should also be possible to perform cleanup:
spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/TimestampFormatterSuite.scala Line 338 in 5d42215
Additionally, the
spark/connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/SQLImplicitsTestSuite.scala Line 155 in 5d42215
Of course, they can also belong to a separate pr |
|
Let me clean them up together here. Thanks! |
|
For first and second, they are being fixed in a different PR (as it directly relates to one specific past fix, and I would like the author to review). |
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
Outdated
Show resolved
Hide resolved
|
Let me turn this to draft for now. I think some tests might fail. |
7e09f07 to
f9296bb
Compare
dongjoon-hyun
left a comment
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.
Mostly this PR is right, but we had better drop old HMS independently first.
f9296bb to
874fe55
Compare
874fe55 to
8493474
Compare
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
Show resolved
Hide resolved
|
Merged to master. |
|
Oops, I realised that there wasn't an approval here. I can revert or address the comments if there are some. Apologies. |
…eTable` ### What changes were proposed in this pull request? This pr aims to cleans up the unused local variables `partitionPath`, `hiveVersion`, and `doHiveOverwrite` in `InsertIntoHiveTable`. The code that used these variables has already been cleaned up in SPARK-45309 | #43098. ### Why are the changes needed? Code cleanup. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #44433 from LuciferYang/insert-into-hive-table. Lead-authored-by: yangjie01 <yangjie01@baidu.com> Co-authored-by: YangJie <yangjie01@baidu.com> Signed-off-by: Kent Yao <yao@apache.org>
What changes were proposed in this pull request?
This PR removes all SystemUtils.isJavaVersionAtLeast with JDK 9/11/17.
Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI in this PR should test them out.
Was this patch authored or co-authored using generative AI tooling?
No.