Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Add test for Arrow UDF with VariantType

Why are the changes needed?

Arrow UDF natively support all datatypes which is arrow-compatible, so it should support VariantType.
This PR adds tests to guard it.

Does this PR introduce any user-facing change?

no, test-only

How was this patch tested?

ci

Was this patch authored or co-authored using generative AI tooling?

no

@zhengruifeng zhengruifeng deleted the array_test_variant branch August 29, 2025 03:49
@zhengruifeng
Copy link
Contributor Author

merged to master

HyukjinKwon added a commit that referenced this pull request Sep 2, 2025
… 15.0.0

### What changes were proposed in this pull request?

This PR is a followup of #52172 that makes the test compatible with PyArrow 0.15.

### Why are the changes needed?

Tests fail with PyArrow 0.15 https://github.com/apache/spark/actions/runs/17355567623/job/49268068508

`StructArray.from_arrays(..., type=...)` is available from PyArrow 15.0.0 (https://arrow.apache.org/docs/18.0/python/generated/pyarrow.StructArray.html#pyarrow.StructArray.from_arrays).

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #52186 from HyukjinKwon/SPARK-53433-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
a0x8o added a commit to a0x8o/spark that referenced this pull request Sep 2, 2025
… 15.0.0

### What changes were proposed in this pull request?

This PR is a followup of apache/spark#52172 that makes the test compatible with PyArrow 0.15.

### Why are the changes needed?

Tests fail with PyArrow 0.15 https://github.com/apache/spark/actions/runs/17355567623/job/49268068508

`StructArray.from_arrays(..., type=...)` is available from PyArrow 15.0.0 (https://arrow.apache.org/docs/18.0/python/generated/pyarrow.StructArray.html#pyarrow.StructArray.from_arrays).

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #52186 from HyukjinKwon/SPARK-53433-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants