This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch branch-1.8
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/branch-1.8 by this push:
new 91642f42b [KYUUBI #5561] Binary distribution artifact ships database
schema scripts
91642f42b is described below
commit 91642f42b61c08044b864113439c81cb8381f301
Author: senmiaoliu <[email protected]>
AuthorDate: Wed Nov 1 15:03:33 2023 +0800
[KYUUBI #5561] Binary distribution artifact ships database schema scripts
### _Why are the changes needed?_
close #5561
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
locally before make a pull request
### _Was this patch authored or co-authored using generative AI tooling?_
NO
Closes #5589 from lsm1/branch-kyuubi-5561.
Closes #5561
831f06ae5 [senmiaoliu] just copy server resource sql
64b90b144 [senmiaoliu] copy metadata sql to dist
Authored-by: senmiaoliu <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit c81124bc93b6099a852238ba969e5a25a62fe57b)
Signed-off-by: Cheng Pan <[email protected]>
---
build/dist | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/build/dist b/build/dist
index df9498008..e34723d94 100755
--- a/build/dist
+++ b/build/dist
@@ -249,6 +249,7 @@ mkdir -p "$DISTDIR/pid"
mkdir -p "$DISTDIR/logs"
mkdir -p "$DISTDIR/work"
mkdir -p "$DISTDIR/jars"
+mkdir -p "$DISTDIR/db-schema"
mkdir -p "$DISTDIR/beeline-jars"
mkdir -p "$DISTDIR/web-ui"
mkdir -p "$DISTDIR/externals/engines/flink"
@@ -270,6 +271,9 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
# Copy kyuubi server jars
cp -r "$KYUUBI_HOME"/kyuubi-assembly/target/scala-$SCALA_VERSION/jars/*.jar
"$DISTDIR/jars/"
+# Copy kyuubi metadata sql
+cp -r "$KYUUBI_HOME"/kyuubi-server/src/main/resources/sql/*
"$DISTDIR/db-schema/"
+
# Copy kyuubi beeline jars
cp "$KYUUBI_HOME"/kyuubi-hive-beeline/target/*.jar "$DISTDIR/beeline-jars/"