Skip to content

Data: Add Variant Support for file format tck - #17617

Open
Guosmilesmile wants to merge 2 commits into
apache:mainfrom
Guosmilesmile:variant_file_format
Open

Data: Add Variant Support for file format tck#17617
Guosmilesmile wants to merge 2 commits into
apache:mainfrom
Guosmilesmile:variant_file_format

Conversation

@Guosmilesmile

Copy link
Copy Markdown
Contributor

Add a support variant type for file format tck

@nssalian nssalian mentioned this pull request Aug 12, 2026
6 tasks

@anoopj anoopj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"Unsupported binary value class: " + value.getClass().getName());
}

private static VariantVal toVariantVal(Variant variant) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: looks like this code is duplicate? Not a big deal since it's test code, optionally extract it to a shared helper?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is duplicated with a few Spark variant paths, but there isn’t an existing shared helper to reuse. The closest implementations are private helpers inside StructInternalRow / SparkParquetReaders, and RandomData has similar test-only logic.
Since this is test code and the helper is small, I think keeping it local is acceptable. I will extract a test-only helper and reuse it from both InternalRowConverter and RandomData.

@uros-b

uros-b commented Aug 13, 2026

Copy link
Copy Markdown
Member

LGTM, thank you @Guosmilesmile!

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.

3 participants