Skip to content

Commit

Permalink
using build/mvn script for spark builds
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanCutler committed Nov 14, 2017
1 parent c87b126 commit 5d398e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions dev/spark_integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ WORKDIR /apache-arrow
# Basic OS utilities
RUN apt-get update && apt-get install -y \
wget \
git \
software-properties-common

git
# This will install conda in /home/ubuntu/miniconda
#RUN wget -O /tmp/miniconda.sh \
# https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
Expand Down
6 changes: 4 additions & 2 deletions dev/spark_integration/spark_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ git clone https://github.com/apache/spark.git
pushd spark
sed -i -e "s/\(.*<arrow.version>\).*\(<\/arrow.version>\)/\1$ARROW_VERSION\2/g" ./pom.xml
echo "Building Spark with Arrow $ARROW_VERSION"
mvn -DskipTests clean package
build/mvn -DskipTests clean package

# Run Arrow related Scala tests only, NOTE: -Dtest=_NonExist_ is to enable surefire test discovery without running any tests so that Scalatest can run
SPARK_SCALA_TESTS="org.apache.spark.sql.execution.arrow,org.apache.spark.sql.execution.vectorized.ColumnarBatchSuite,org.apache.spark.sql.execution.vectorized.ArrowColumnVectorSuite"
echo "Testing Spark $SPARK_SCALA_TESTS"
mvn -Dtest=_NonExist_ -DwildcardSuites="'$SPARK_SCALA_TESTS'" test -pl sql/core
# TODO: should be able to only build spark-sql tests with adding "-pl sql/core" but not currently working
build/mvn -Dtest=none -DwildcardSuites="$SPARK_SCALA_TESTS" test

# Run pyarrow related Python tests only
#SPARK_TESTING=1 bin/pyspark pyspark.sql.tests ArrowTests GroupbyApplyTests VectorizedUDFTests
popd

# Clean up
echo "Cleaning up.."
#rm -rf spark .local
rm -rf spark

Expand Down

0 comments on commit 5d398e8

Please sign in to comment.