hubgeter opened a new pull request, #67323:
URL: https://github.com/apache/doris/pull/67323
### What problem does this PR solve?
Related PR: #66538
Problem Summary:
Iceberg V3 requires both `initial-default` and `write-default` of a VARIANT
field to be NULL. After adding general Iceberg V3 default-value support, Doris
still needs explicit VARIANT handling to avoid accepting unsupported non-NULL
defaults or reconstructing a compute-V2 VARIANT as the legacy type.
This PR:
- Rejects non-NULL VARIANT `initial-default` and `write-default` values in
FE.
- Adds the same validation to the BE read path for malformed or externally
forged Iceberg metadata.
- Preserves the compute-V2 VARIANT type when reconstructing the current
schema from Thrift metadata.
- Supports typed SQL NULL defaults for optional VARIANT fields, including
VARIANT fields nested inside structs.
- Adds FE and BE unit coverage.
- Adds an external Iceberg regression covering historical Parquet/ORC rows,
INSERT, UPDATE, MERGE, explicit `DEFAULT`, SQL NULL versus JSON null, invalid
DDL, and Spark interoperability.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]