wangzhigang1999 commented on code in PR #7864:
URL: https://github.com/apache/kyuubi/pull/7864#discussion_r4594993404
##########
build/dist:
##########
@@ -330,7 +336,9 @@ cp
"$KYUUBI_HOME/externals/kyuubi-flink-sql-engine/target/kyuubi-flink-sql-engin
# Copy spark engines
# shellcheck disable=SC2045
for scala_version in 2.12 2.13; do
- cp
"$KYUUBI_HOME/externals/kyuubi-spark-sql-engine/target/kyuubi-spark-sql-engine_${scala_version}-${VERSION}.jar"
"$DISTDIR/externals/engines/spark/"
+ if [[ -f
"$KYUUBI_HOME/externals/kyuubi-spark-sql-engine/target/kyuubi-spark-sql-engine_${scala_version}-${VERSION}.jar"
]]; then
Review Comment:
Could we keep the unconditional `cp` here and limit this fix to filtering
the Spark version overrides?
`build/dist` builds and packages both Scala 2.12 and 2.13 Spark engines, as
intended in #7614. If either jar is missing, we should fail the packaging step.
With this guard, we would skip the missing engine and could ship an incomplete
distribution, leaving users to discover the problem when they try to start that
engine.
I checked the copy block with the Scala 2.12 jar missing: the previous code
exits with status 1, while this version exits with status 0. Dropping the
version overrides addresses the dependency-resolution issue without changing
this check. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]