This is an automated email from the ASF dual-hosted git repository.

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new c9e19f0a6 [KYUUBI #6397] Align Antlr version with Spark for Spark 4.0
c9e19f0a6 is described below

commit c9e19f0a62496a6866030c73506978c49186dd13
Author: Cheng Pan <[email protected]>
AuthorDate: Mon May 20 22:02:23 2024 +0800

    [KYUUBI #6397] Align Antlr version with Spark for Spark 4.0
    
    # :mag: Description
    
    ```
    build/mvn clean test -Pscala-2.13 -Pspark-master -pl 
:kyuubi-spark-lineage_2.13
    ```
    
    ```
      Cause: java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could 
not deserialize ATN with version 4 (expected 3).
      at 
org.antlr.v4.runtime.atn.ATNDeserializer.deserialize(ATNDeserializer.java:187)
      at 
org.apache.spark.sql.catalyst.parser.SqlBaseLexer.<clinit>(SqlBaseLexer.java:2958)
      at 
org.apache.spark.sql.catalyst.parser.AbstractParser.parse(parsers.scala:58)
      at 
org.apache.spark.sql.execution.SparkSqlParser.parse(SparkSqlParser.scala:55)
      at 
org.apache.spark.sql.catalyst.parser.AbstractSqlParser.parsePlan(AbstractSqlParser.scala:82)
      at 
org.apache.spark.sql.SparkSession.$anonfun$sql$5(SparkSession.scala:706)
      at 
org.apache.spark.sql.catalyst.QueryPlanningTracker.measurePhase(QueryPlanningTracker.scala:138)
      at 
org.apache.spark.sql.SparkSession.$anonfun$sql$4(SparkSession.scala:705)
      at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:923)
      at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:704)
    ```
    
    ## Types of changes :bookmark:
    
    - [x] Bugfix (non-breaking change which fixes an issue)
    - [ ] New feature (non-breaking change which adds functionality)
    - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
    
    ## Test Plan ๐Ÿงช
    
    The above Antlr error disappeared after this patch
    
    ---
    
    # Checklist ๐Ÿ“
    
    - [x] This patch was not authored or co-authored using [Generative 
Tooling](https://www.apache.org/legal/generative-tooling.html)
    
    **Be nice. Be informative.**
    
    Closes #6397 from pan3793/antlr-4.0.
    
    Closes #6397
    
    42005aacc [Cheng Pan] Align Antlr version with Spark for Spark 4.0
    
    Authored-by: Cheng Pan <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
---
 pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pom.xml b/pom.xml
index 4b841648d..d83187d65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2084,6 +2084,7 @@
             <id>spark-master</id>
             <properties>
                 <spark.version>4.0.0-SNAPSHOT</spark.version>
+                <antlr4.version>4.13.1</antlr4.version>
                 
<maven.plugin.scalatest.exclude.tags>org.scalatest.tags.Slow,org.apache.kyuubi.tags.DeltaTest,org.apache.kyuubi.tags.IcebergTest,org.apache.kyuubi.tags.DeltaTest,org.apache.kyuubi.tags.HudiTest,org.apache.kyuubi.tags.PySparkTest</maven.plugin.scalatest.exclude.tags>
             </properties>
             <repositories>

Reply via email to