You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by ri...@apache.org on 2026/04/10 08:21:29 UTC
(auron) 15/15: add kdev-build-deploy.sh
This is an automated email from the ASF dual-hosted git repository.
richox pushed a commit to branch dev-v6.0.0-fix-decimal-cast
in repository https://gitbox.apache.org/repos/asf/auron.git
commit 8e1d6a23461ba68ebd62e450f8976f3d54ce247c
Author: zhangli20 <ri...@gmail.com>
AuthorDate: Thu Mar 19 11:12:32 2026 +0800
add kdev-build-deploy.sh
---
kdev-build.sh | 21 ++++++++++++++++
kdev-deploy-to-hdfs-staging.sh | 32 +++++++++++++++++++++++++
native-engine/datafusion-ext-commons/src/lib.rs | 4 ++--
3 files changed, 55 insertions(+), 2 deletions(-)
diff --git a/kdev-build.sh b/kdev-build.sh
new file mode 100755
index 00000000..4f17a067
--- /dev/null
+++ b/kdev-build.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+set -e
+
+export http_proxy=http://10.74.176.8:11080
+export https_proxy=http://10.74.176.8:11080
+export no_proxy=localhost,127.0.0.1,localaddress,localdomain.com,internal,corp.kuaishou.com,test.gifshow.com,staging.kuaishou.com,kwaidc.com
+
+# install rust
+curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >rustup-init.sh
+sh rustup-init.sh -y --default-toolchain none
+export PATH="$PATH:$HOME/.cargo/bin"
+rustup toolchain install
+
+# disable some broken maven plugins
+perl -0777 -pe 's/<!-- spotless -->.*?<\/plugin>//gs' -i pom.xml
+perl -0777 -pe 's/<!-- scalafix -->.*?<\/plugin>//gs' -i pom.xml
+
+# build auron package
+mvn package -Pspark-241kwaiae -Prelease -Dmaven.test.skip
+mvn package -Pspark-3.5 -Prelease -Dmaven.test.skip
diff --git a/kdev-deploy-to-hdfs-staging.sh b/kdev-deploy-to-hdfs-staging.sh
new file mode 100755
index 00000000..b1bfdef9
--- /dev/null
+++ b/kdev-deploy-to-hdfs-staging.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+hdfs_upload() {
+ hdfs_user_name="$1"
+ local_file_path="$2"
+ hdfs_file_path="$3"
+ curl -# \
+ --verbose \
+ -L \
+ -X PUT \
+ -H Content-Type:application/octet-stream \
+ -T "$local_file_path" \
+ "http://webhdfs-offline-lt.corp.kuaishou.com/webhdfs/v1$hdfs_file_path?op=CREATE&data=true&user.name=$hdfs_user_name&overwrite=true"
+}
+
+blaze_jar_241kwaiae="$(basename target/blaze-engine-spark-241kwaiae-release-*.jar)"
+blaze_jar_35="$(basename target/blaze-engine-spark-3.5-release-*.jar)"
+
+if [ ! -f "target/$blaze_jar_241kwaiae" ]; then
+ echo "builded jar not found: target/$blaze_jar_241kwaiae"
+ exit 1
+fi
+if [ ! -f "target/$blaze_jar_35" ]; then
+ echo "builded jar not found: target/$blaze_jar_35"
+ exit 1
+fi
+
+hdfs_staging_dir="/home/spark/spark_jars/blaze/staging"
+hdfs_release_dir="/home/spark/spark_jars/blaze"
+
+hdfs_upload spark "target/$blaze_jar_241kwaiae" "$hdfs_staging_dir/$blaze_jar_241kwaiae"
+hdfs_upload spark "target/$blaze_jar_35" "$hdfs_staging_dir/$blaze_jar_35"
diff --git a/native-engine/datafusion-ext-commons/src/lib.rs b/native-engine/datafusion-ext-commons/src/lib.rs
index 9aa06aeb..3e68a5ed 100644
--- a/native-engine/datafusion-ext-commons/src/lib.rs
+++ b/native-engine/datafusion-ext-commons/src/lib.rs
@@ -142,7 +142,7 @@ macro_rules! prefetch_read_data {
// safety: use prefetch
#[allow(unused_unsafe)]
unsafe {
- std::intrinsics::prefetch_read_data($e)
+ std::intrinsics::prefetch_read_data::<_, 3>($e)
}
}};
}
@@ -152,7 +152,7 @@ macro_rules! prefetch_write_data {
// safety: use prefetch
#[allow(unused_unsafe)]
unsafe {
- std::intrinsics::prefetch_write_data($e)
+ std::intrinsics::prefetch_write_data::<_, 3>($e)
}
}};
}