Skip to content

[GLUTEN-11402][VL] Fix decimal partition key serialization to preserve scale#11618

Open
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/decimalPartition
Open

[GLUTEN-11402][VL] Fix decimal partition key serialization to preserve scale#11618
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/decimalPartition

Conversation

@acvictor
Copy link
Contributor

@acvictor acvictor commented Feb 15, 2026

What changes are proposed in this pull request?

This PR fixes decimal partition value serialization by replacing toJavaBigInteger.toString with toJavaBigDecimal.unscaledValue().toString, removes fallback guard that was added by #11518 and adds additional test cases to SQLQuerySuite covering small decimals, zero-scale decimals, negative values, and multi-partition pruning.

How was this patch tested?

Extended the existing Incorrect decimal casting for partition read test

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

No

Related issue: #11402

@github-actions github-actions bot added CORE works for Gluten Core VELOX labels Feb 15, 2026
@github-actions
Copy link

Run Gluten Clickhouse CI on x86

@acvictor acvictor force-pushed the acvictor/decimalPartition branch from 8d961b0 to d0172fa Compare February 15, 2026 15:22
@github-actions
Copy link

Run Gluten Clickhouse CI on x86

@acvictor acvictor force-pushed the acvictor/decimalPartition branch from d0172fa to f97d6e1 Compare February 15, 2026 16:46
@github-actions
Copy link

Run Gluten Clickhouse CI on x86

@acvictor acvictor marked this pull request as ready for review February 15, 2026 18:33
@acvictor
Copy link
Contributor Author

acvictor commented Feb 15, 2026

@baibaichen @zhouyuan can you please review? Thanks!

@acvictor
Copy link
Contributor Author

cc @Surbhi-Vijay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant