Mryange opened a new pull request, #62488:
URL: https://github.com/apache/doris/pull/62488
### What problem does this PR solve?
Issue Number: N/A
Problem Summary:
The regression test
`datatype_p0/nested_types/base_cases/one_level_nestedtypes_with_s3data` was
failing with a `CHAR result mismatch` on the `order_qt_sql_s3` tag.
Root-cause analysis:
1. The S3 source files (`one_level_array.parquet`, `.orc`, `.csv`) in
`oss://doris-regression-hk/regression/datalake/` have **not changed since
2024-07-27** (confirmed via `ossutil stat`). The parquet `c_bool` column is
`list<bool>` (verified with pyarrow). The column type (`array<boolean>`) in the
test plugin has also never changed.
2. On **2025-09-12**, commit `074d88b` (PR #55896, "fix cases from s3")
added `WHERE k1 IS NOT NULL` to the query and regenerated the `.out`. At that
time, Doris had a bug in reading parquet `list<bool>` values inside nested
arrays, producing incorrect boolean values (e.g. `[0, 0, 1, 0, ...]` instead of
the correct `[0, 0, 0, 1, 1, ...]`).
3. On **2025-12-16**, commit `0031179b1e6` (PR #58785, "fix parquet topn
lazy mat complex data error result") refactored `ColumnChunkReader` to use
`IN_COLLECTION`/`OFFSET_INDEX` template parameters, giving nested-array columns
a distinct and correct read path. This fix incidentally corrected the boolean
array reading for columns like `c_bool`.
4. After PR #58785 landed, Doris now reads parquet `list<bool>` correctly
(matching pyarrow), but the `.out` file was never updated, causing the test to
fail.
Fix: force-regenerate `one_level_nestedtypes_with_s3data.out` using the
current correct Doris behavior against the unchanged S3 data.
### 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]