Skip to content

Apache DataFusion SQL Query Engine

ARROW-7502: [Integration] Remove Spark patch not needed

Bryan Cutler517b5e37d731
diff --git a/ci/docker/conda-python-spark.dockerfile b/ci/docker/conda-python-spark.dockerfile
index ece62ca56d..d863ef3727 100644
--- a/ci/docker/conda-python-spark.dockerfile
+++ b/ci/docker/conda-python-spark.dockerfile
@@ -32,7 +32,6 @@ RUN conda install -q \
# installing specific version of spark
ARG spark=master
COPY ci/scripts/install_spark.sh /arrow/ci/scripts/
-COPY ci/etc/ARROW-6429.patch /arrow/ci/etc/
RUN /arrow/ci/scripts/install_spark.sh ${spark} /spark /arrow/ci/etc
# build cpp with tests
diff --git a/ci/etc/ARROW-6429.patch b/ci/etc/ARROW-6429.patch
deleted file mode 100644
index e614084711..0000000000
--- a/ci/etc/ARROW-6429.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowConverters.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowConverters.scala
-index 1a6f4ac..42d555b 100644
---- a/sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowConverters.scala
-+++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowConverters.scala
-@@ -26,7 +26,7 @@ import org.apache.arrow.flatbuf.MessageHeader
- import org.apache.arrow.memory.BufferAllocator
- import org.apache.arrow.vector._
- import org.apache.arrow.vector.ipc.{ArrowStreamWriter, ReadChannel, WriteChannel}
--import org.apache.arrow.vector.ipc.message.{ArrowRecordBatch, MessageSerializer}
-+import org.apache.arrow.vector.ipc.message.{ArrowRecordBatch, IpcOption, MessageSerializer}
-
- import org.apache.spark.TaskContext
- import org.apache.spark.api.java.JavaRDD
-@@ -64,7 +64,7 @@ private[sql] class ArrowBatchStreamWriter(
- * End the Arrow stream, does not close output stream.
- */
- def end(): Unit = {
-- ArrowStreamWriter.writeEndOfStream(writeChannel)
-+ ArrowStreamWriter.writeEndOfStream(writeChannel, new IpcOption)
- }
- }
-
-@@ -252,7 +252,7 @@ private[sql] object ArrowConverters {
- if (msgMetadata.getMessage.headerType() == MessageHeader.RecordBatch) {
-
- // Buffer backed output large enough to hold the complete serialized message
-- val bbout = new ByteBufferOutputStream(4 + msgMetadata.getMessageLength + bodyLength)
-+ val bbout = new ByteBufferOutputStream(8 + msgMetadata.getMessageLength + bodyLength)
-
- // Write message metadata to ByteBuffer output stream
- MessageSerializer.writeMessageBuffer(
diff --git a/ci/scripts/install_spark.sh b/ci/scripts/install_spark.sh
index ec3e77f177..43f2f58c02 100755
--- a/ci/scripts/install_spark.sh
+++ b/ci/scripts/install_spark.sh
@@ -30,6 +30,3 @@ patches=${3}
mkdir "${target}"
wget -q -O - https://github.com/apache/spark/archive/${spark}.tar.gz | tar -xzf - --strip-components=1 -C "${target}"
-
-# Patch spark to build with current Arrow Java
-# patch -d "${target}" -p1 -i "${patches}/ARROW-6429.patch"
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index 64481e82b3..deadc82abc 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -144,7 +144,6 @@ dev/tasks/linux-packages/apache-arrow/debian/source/format
dev/tasks/linux-packages/apache-arrow/debian/watch
dev/tasks/conda-recipes/*
docs/requirements.txt
-ci/etc/ARROW-6429.patch
go/arrow/go.sum
go/arrow/Gopkg.lock
go/arrow/internal/cpu/*