Skip to content

Conversation

@chenhao-db
Copy link
Contributor

What changes were proposed in this pull request?

This is a cherry-pick of #50913

Increase variant size limit from 16MiB to 128MiB. It is difficult to control the size limit with a flag, because the limit is accessed in many places where the SQL config is not available (e.g., VariantVal.toString). Future memory instability is possible, but this change won't break any existing workload.

Why are the changes needed?

It enhances the ability of the variant data type to process larger data.

Does this PR introduce any user-facing change?

Yes, as stated above.

How was this patch tested?

Unit test.

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

No.

chenhao-db and others added 2 commits May 16, 2025 15:28
Increase variant size limit from 16MiB to 128MiB. It is difficult to control the size limit with a flag, because the limit is accessed in many places where the SQL config is not available (e.g., `VariantVal.toString`). Future memory instability is possible, but this change won't break any existing workload.

It enhances the ability of the variant data type to process larger data.

Yes, as stated above.

Unit test.

No.

Closes apache#50913 from chenhao-db/variant_large_size_limit.

Lead-authored-by: Chenhao Li <[email protected]>
Co-authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
@github-actions github-actions bot added the SQL label May 16, 2025
@chenhao-db
Copy link
Contributor Author

@cloud-fan This is the backport to 4.0. Thanks!

@cloud-fan
Copy link
Contributor

The failed test is unrelated to this PR and has been fixed by #50928

@cloud-fan
Copy link
Contributor

thanks, merging to 4.0!

cloud-fan pushed a commit that referenced this pull request May 17, 2025
### What changes were proposed in this pull request?

This is a cherry-pick of #50913

Increase variant size limit from 16MiB to 128MiB. It is difficult to control the size limit with a flag, because the limit is accessed in many places where the SQL config is not available (e.g., `VariantVal.toString`). Future memory instability is possible, but this change won't break any existing workload.

### Why are the changes needed?

It enhances the ability of the variant data type to process larger data.

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

Yes, as stated above.

### How was this patch tested?

Unit test.

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

No.

Closes #50927 from chenhao-db/variant_large_size_limit_4.0.

Authored-by: Chenhao Li <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
@cloud-fan cloud-fan closed this May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants