From 5c5e353b03bce6e073ef4482ee7ff7c47e0184c0 Mon Sep 17 00:00:00 2001 From: Timo Walther Date: Tue, 27 Jul 2021 14:55:40 +0200 Subject: [PATCH] [FLINK-23497][table-planner] Add dependency for scala-parser-combinators It is contained in Scala 2.11 but needs to be added explicitly for Scala 2.12. This closes #16610. --- .../test-scripts/test_table_shaded_dependencies.sh | 1 + flink-table/flink-table-planner/pom.xml | 9 +++++++++ .../src/main/resources/META-INF/NOTICE | 1 + 3 files changed, 11 insertions(+) diff --git a/flink-end-to-end-tests/test-scripts/test_table_shaded_dependencies.sh b/flink-end-to-end-tests/test-scripts/test_table_shaded_dependencies.sh index 9e58637223c4e..18ebfc1c3a249 100755 --- a/flink-end-to-end-tests/test-scripts/test_table_shaded_dependencies.sh +++ b/flink-end-to-end-tests/test-scripts/test_table_shaded_dependencies.sh @@ -89,6 +89,7 @@ function checkAllowedPackages { grep -v "org/apache/calcite" |\ grep -v "com/esri/core" |\ grep -v "com/ibm/icu" |\ + grep -v "scala/util/parsing" |\ grep -v "org/apache/flink" > $CONTENTS_FILE if [[ `cat $CONTENTS_FILE | wc -l` -eq '0' ]]; then echo "Success: There are no unwanted classes in the ${JAR} jar." diff --git a/flink-table/flink-table-planner/pom.xml b/flink-table/flink-table-planner/pom.xml index f636981c3cc85..edba278bfda99 100644 --- a/flink-table/flink-table-planner/pom.xml +++ b/flink-table/flink-table-planner/pom.xml @@ -215,6 +215,12 @@ under the License. 67.1 + + + org.scala-lang.modules + scala-parser-combinators_${scala.binary.version} + + org.apache.flink @@ -389,6 +395,9 @@ under the License. com.ibm.icu:icu4j + + org.scala-lang.modules:scala-parser-combinators_${scala.binary.version} + org.reflections:reflections diff --git a/flink-table/flink-table-planner/src/main/resources/META-INF/NOTICE b/flink-table/flink-table-planner/src/main/resources/META-INF/NOTICE index 8b7fb38c10cd5..d8b8233c1e744 100644 --- a/flink-table/flink-table-planner/src/main/resources/META-INF/NOTICE +++ b/flink-table/flink-table-planner/src/main/resources/META-INF/NOTICE @@ -16,6 +16,7 @@ This project bundles the following dependencies under the Apache Software Licens - org.apache.calcite:calcite-core:1.26.0 - org.apache.calcite:calcite-linq4j:1.26.0 - org.apache.calcite.avatica:avatica-core:1.17.0 +- org.scala-lang.modules:scala-parser-combinators_2.11:1.1.1 - commons-codec:commons-codec:1.13 - commons-io:commons-io:2.8.0