Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColumnarBatch cannot be cast to class InternalRow #1314

Open
andygrove opened this issue Jan 20, 2025 · 0 comments
Open

ColumnarBatch cannot be cast to class InternalRow #1314

andygrove opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

Describe the bug

See the following test added to CometArrayExpressionSuite in #1308

test("array_remove - test all types (convert from Parquet)")

The test fails when trying to create an array of structs and then pass that array into array_remove.

java.lang.ClassCastException: class org.apache.spark.sql.vectorized.ColumnarBatch cannot be cast to class org.apache.spark.sql.catalyst.InternalRow 

I added a workaround to skip testing with structs until this issue is resolved.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

@andygrove andygrove added the bug Something isn't working label Jan 20, 2025
@andygrove andygrove changed the title SparkToColumnar class cast exception when reading structs ColumnarBatch cannot be cast to class InternalRow Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant