This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git
The following commit(s) were added to refs/heads/main by this push:
new e1dd6d87 GH-55: [Gandiva] Re-enable tests (#595)
e1dd6d87 is described below
commit e1dd6d87b27e2e52939c0cefae6ca378dbfe45dd
Author: lriggs <[email protected]>
AuthorDate: Wed Feb 19 15:24:32 2025 -0800
GH-55: [Gandiva] Re-enable tests (#595)
Fixes GH-55.
### Rationale for this change
I fixed the linking error here:
https://github.com/apache/arrow/pull/45114/
### What changes are included in this PR?
Reenabling some disabled tests.
### Are these changes tested?
Yes, they are tests.
### Are there any user-facing changes?
No.
---
.env | 2 +-
.github/workflows/rc.yml | 32 +++++++++++-----------
compose.yaml | 4 +--
.../arrow/gandiva/evaluator/FilterProjectTest.java | 2 --
.../apache/arrow/gandiva/evaluator/FilterTest.java | 8 ------
.../gandiva/evaluator/ProjectorDecimalTest.java | 11 --------
.../arrow/gandiva/evaluator/ProjectorTest.java | 1 -
7 files changed, 19 insertions(+), 41 deletions(-)
diff --git a/.env b/.env
index 5398249b..d3e1c1d6 100644
--- a/.env
+++ b/.env
@@ -54,4 +54,4 @@ MAVEN=3.9.9
# Keep in sync with apache/arrow
ARROW_REPO_ROOT=./arrow
PYTHON=3.9
-VCPKG="943c5ef1c8f6b5e6ced092b242c8299caae2ff01" # 2024.04.26 Release
+VCPKG="f7423ee180c4b7f40d43402c2feb3859161ef625" # 2024.06.15 Release
diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml
index faad5983..4f240e67 100644
--- a/.github/workflows/rc.yml
+++ b/.github/workflows/rc.yml
@@ -107,12 +107,12 @@ jobs:
- name: Extract source archive
run: |
tar -xf apache-arrow-java-*.tar.gz --strip-components=1
- - name: Download the latest Apache Arrow C++
- if: github.event_name != 'schedule'
- run: |
- ci/scripts/download_cpp.sh
+ # - name: Download the latest Apache Arrow C++
+ # if: github.event_name != 'schedule'
+ # run: |
+ # ci/scripts/download_cpp.sh
- name: Checkout Apache Arrow C++
- if: github.event_name == 'schedule'
+ # if: github.event_name == 'schedule'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
with:
repository: apache/arrow
@@ -174,12 +174,12 @@ jobs:
- name: Extract source archive
run: |
tar -xf apache-arrow-java-*.tar.gz --strip-components=1
- - name: Download the latest Apache Arrow C++
- if: github.event_name != 'schedule'
- run: |
- ci/scripts/download_cpp.sh
+ # - name: Download the latest Apache Arrow C++
+ # if: github.event_name != 'schedule'
+ # run: |
+ # ci/scripts/download_cpp.sh
- name: Checkout Apache Arrow C++
- if: github.event_name == 'schedule'
+ # if: github.event_name == 'schedule'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
with:
repository: apache/arrow
@@ -299,13 +299,13 @@ jobs:
shell: bash
run: |
tar -xf apache-arrow-java-*.tar.gz --strip-components=1
- - name: Download the latest Apache Arrow C++
- if: github.event_name != 'schedule'
- shell: bash
- run: |
- ci/scripts/download_cpp.sh
+ # - name: Download the latest Apache Arrow C++
+ # if: github.event_name != 'schedule'
+ # shell: bash
+ # run: |
+ # ci/scripts/download_cpp.sh
- name: Checkout Apache Arrow C++
- if: github.event_name == 'schedule'
+ # if: github.event_name == 'schedule'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
with:
repository: apache/arrow
diff --git a/compose.yaml b/compose.yaml
index 58a19676..b125c3c9 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -92,12 +92,12 @@ services:
# Usage:
# docker compose build vcpkg-jni
# docker compose run vcpkg-jni
- image: ${REPO}:${ARCH}-vcpkg-jni
+ image: ${REPO}:${ARCH}-vcpkg-jni-${VCPKG}
build:
context: .
dockerfile: ci/docker/vcpkg-jni.dockerfile
cache_from:
- - ${REPO}:${ARCH}-vcpkg-jni
+ - ${REPO}:${ARCH}-vcpkg-jni-${VCPKG}
args:
base:
${ARROW_REPO}:${ARCH}-python-${PYTHON}-wheel-manylinux-2014-vcpkg-${VCPKG}
volumes:
diff --git
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterProjectTest.java
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterProjectTest.java
index 75169a37..80427de0 100644
---
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterProjectTest.java
+++
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterProjectTest.java
@@ -34,13 +34,11 @@ import org.apache.arrow.vector.ipc.message.ArrowFieldNode;
import org.apache.arrow.vector.ipc.message.ArrowRecordBatch;
import org.apache.arrow.vector.types.pojo.Field;
import org.apache.arrow.vector.types.pojo.Schema;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class FilterProjectTest extends BaseEvaluatorTest {
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleSV16() throws GandivaException, Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
diff --git
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterTest.java
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterTest.java
index a98a7cb6..7563465f 100644
--- a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterTest.java
+++ b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/FilterTest.java
@@ -34,7 +34,6 @@ import org.apache.arrow.vector.ipc.message.ArrowRecordBatch;
import org.apache.arrow.vector.types.pojo.ArrowType;
import org.apache.arrow.vector.types.pojo.Field;
import org.apache.arrow.vector.types.pojo.Schema;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class FilterTest extends BaseEvaluatorTest {
@@ -73,7 +72,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleInString() throws GandivaException, Exception {
Field c1 = Field.nullable("c1", new ArrowType.Utf8());
TreeNode l1 = TreeBuilder.makeLiteral(1L);
@@ -137,7 +135,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleInInt() throws GandivaException, Exception {
Field c1 = Field.nullable("c1", int32);
@@ -181,7 +178,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleSV16() throws GandivaException, Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
@@ -203,7 +199,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleSV16_AllMatched() throws GandivaException, Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
@@ -233,7 +228,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleSV16_GreaterThan64Recs() throws GandivaException,
Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
@@ -265,7 +259,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleSV32() throws GandivaException, Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
@@ -287,7 +280,6 @@ public class FilterTest extends BaseEvaluatorTest {
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testSimpleFilterWithNoOptimisation() throws GandivaException,
Exception {
Field a = Field.nullable("a", int32);
Field b = Field.nullable("b", int32);
diff --git
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorDecimalTest.java
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorDecimalTest.java
index 74180c0f..39160512 100644
---
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorDecimalTest.java
+++
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorDecimalTest.java
@@ -42,13 +42,11 @@ import org.apache.arrow.vector.types.pojo.ArrowType;
import org.apache.arrow.vector.types.pojo.ArrowType.Decimal;
import org.apache.arrow.vector.types.pojo.Field;
import org.apache.arrow.vector.types.pojo.Schema;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.BaseEvaluatorTest {
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void test_add() throws GandivaException {
int precision = 38;
int scale = 8;
@@ -116,7 +114,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void test_add_literal() throws GandivaException {
int precision = 2;
int scale = 0;
@@ -178,7 +175,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void test_multiply() throws GandivaException {
int precision = 38;
int scale = 8;
@@ -248,7 +244,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCompare() throws GandivaException {
Decimal aType = new Decimal(38, 3, 128);
Decimal bType = new Decimal(38, 2, 128);
@@ -343,7 +338,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testRound() throws GandivaException {
Decimal aType = new Decimal(38, 2, 128);
Decimal aWithScaleZero = new Decimal(38, 0, 128);
@@ -486,7 +480,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCastToDecimal() throws GandivaException {
Decimal decimalType = new Decimal(38, 2, 128);
Decimal decimalWithScaleOne = new Decimal(38, 1, 128);
@@ -613,7 +606,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCastToLong() throws GandivaException {
Decimal decimalType = new Decimal(38, 2, 128);
Field dec = Field.nullable("dec", decimalType);
@@ -666,7 +658,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCastToDouble() throws GandivaException {
Decimal decimalType = new Decimal(38, 2, 128);
Field dec = Field.nullable("dec", decimalType);
@@ -721,7 +712,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCastToString() throws GandivaException {
Decimal decimalType = new Decimal(38, 2, 128);
Field dec = Field.nullable("dec", decimalType);
@@ -783,7 +773,6 @@ public class ProjectorDecimalTest extends
org.apache.arrow.gandiva.evaluator.Bas
}
@Test
- @Disabled("GH-43576 - Fix and enable this test")
public void testCastStringToDecimal() throws GandivaException {
Decimal decimalType = new Decimal(4, 2, 128);
Field dec = Field.nullable("dec", decimalType);
diff --git
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorTest.java
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorTest.java
index 0d86bd9e..f2590226 100644
---
a/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorTest.java
+++
b/gandiva/src/test/java/org/apache/arrow/gandiva/evaluator/ProjectorTest.java
@@ -62,7 +62,6 @@ import org.apache.arrow.vector.types.pojo.Schema;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
-@Disabled("Disabled until GH-43981 is solved")
public class ProjectorTest extends BaseEvaluatorTest {
private Charset utf8Charset = Charset.forName("UTF-8");