Repository navigation
[Hive 4 / Spark 4.2] Fix PartitionFilter ANTLR4 incompatibility with Spark 4.2 - #6985
Aggarwal-Raghav wants to merge 2 commits into
Conversation
|
flaky jenkins behaviour observed. github actions and local build is working |
9658c4e to
b5925b5
Compare
b5925b5 to
dbcd954
Compare
|
I don't get it, the PartitionFilter will parse the expression on the server side, how it will impact the client such as Spark? |
You are correct @dengzhhu653 , when HMS is running in remote/cluster mode, issue is not observed. The failure occured in embedded metastore used in Spark UT. |
| <maven.surefire.plugin.version>3.5.3</maven.surefire.plugin.version> | ||
| <!-- Dependency versions --> | ||
| <antlr.version>4.9.3</antlr.version> | ||
| <antlr.version>4.13.1</antlr.version> |
There was a problem hiding this comment.
How about shading the antlr classes? so it's compatible for other old clients
There was a problem hiding this comment.
yeah, make sense. thx, will update PR shortly
…bility with Spark 4.2
dbcd954 to
86beb9e
Compare
|



What changes were proposed in this pull request?
HIVE-30279, Upgrade antlr to 4.13.1
Why are the changes needed?
Internally, we are chasing spark4.2 to build with Hive4.2.1 instead of Hive2.3.10 which is used by opensource spark.
Spark observed incompatibility as antlr4.9 and 4.10 onwards is not compatible as per antlr release notes and spark 4.2 is using antlr-4.13.1
https://github.com/antlr/antlr4/releases/tag/4.10 under section
4.10-generated parsers incompatible with previous runtimesDoes this PR introduce any user-facing change?
NO
How was this patch tested?
Will see CI outcome