PDGGK commented on PR #9532: URL: https://github.com/apache/paimon/pull/9532#issuecomment-5549954938
Reproduced your boundary before changing anything: two variant columns at `maxSchemaWidth = 3`, `[null, 5]` then `[null, 6]`, and `b` came back an untyped root instead of `BIGINT`. Fixed in `ab8f8fb6f`. `retainSelectedSchema` now returns a `VariantType` without the second decrement, since the caller has already spent the entry unit and there is no typed child to spend another on. `testRetainedVariantLeafIsNotChargedTwice` asserts your case. Removing only the `VariantType` branch, keeping every other part of this PR, fails that one test and leaves the other 27 green. `mvn test -pl paimon-common -Dtest='org.apache.paimon.data.variant.**'` — 58 tests, all passing; `spotless:check` and `checkstyle:check` clean. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
