From dc742bf8aa8a57b179052c8af1ccbc17cba1483a Mon Sep 17 00:00:00 2001 From: wforget <643348094@qq.com> Date: Thu, 16 Nov 2023 14:37:17 +0800 Subject: [PATCH] Add ReplaceIcebergTableParser Rule --- .../spark/kyuubi-extension-spark-3-5/pom.xml | 6 + .../org/apache/kyuubi/sql/KyuubiSQLConf.scala | 6 + .../sql/KyuubiSparkSQLCommonExtension.scala | 3 + .../parser/ReplaceIcebergTableParser.scala | 155 +++++++++++++ .../spark/sql/ReplaceIcebergTableSuite.scala | 215 ++++++++++++++++++ 5 files changed, 385 insertions(+) create mode 100644 extensions/spark/kyuubi-extension-spark-3-5/src/main/scala/org/apache/spark/sql/catalyst/parser/ReplaceIcebergTableParser.scala create mode 100644 extensions/spark/kyuubi-extension-spark-3-5/src/test/scala/org/apache/spark/sql/ReplaceIcebergTableSuite.scala diff --git a/extensions/spark/kyuubi-extension-spark-3-5/pom.xml b/extensions/spark/kyuubi-extension-spark-3-5/pom.xml index d55501ce860..0bf422881ab 100644 --- a/extensions/spark/kyuubi-extension-spark-3-5/pom.xml +++ b/extensions/spark/kyuubi-extension-spark-3-5/pom.xml @@ -105,6 +105,12 @@ test + + org.apache.iceberg + iceberg-spark-runtime-${spark.binary.version}_${scala.binary.version} + test + +