Skip to content

[fix](nested-type) fix cases from s3 #55896

Merged
eldenmoon merged 1 commit intoapache:masterfrom
amorynan:fix-case-nested-s3
Sep 12, 2025
Merged

[fix](nested-type) fix cases from s3 #55896
eldenmoon merged 1 commit intoapache:masterfrom
amorynan:fix-case-nested-s3

Conversation

@amorynan
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • 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
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Sep 11, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@amorynan
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions
Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/base_cases/one_level_nestedtypes_with_s3data.out

Consider using git-lfs to manage large files.

@github-actions github-actions Bot added the lfs-detected! Warning Label for use when LFS is detected in the commits of a Pull Request label Sep 11, 2025
eldenmoon
eldenmoon previously approved these changes Sep 11, 2025
Copy link
Copy Markdown
Member

@eldenmoon eldenmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Copy Markdown
Contributor

Possible file(s) that should be tracked in LFS detected: 🚨

The following file(s) exceeds the file size limit: 1048576 bytes, as set in the .yml configuration files:

  • regression-test/data/datatype_p0/nested_types/base_cases/one_level_nestedtypes_with_s3data.out

Consider using git-lfs to manage large files.

@amorynan
Copy link
Copy Markdown
Contributor Author

run buildall

@amorynan amorynan requested a review from eldenmoon September 12, 2025 02:22
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Sep 12, 2025
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

Copy link
Copy Markdown
Member

@eldenmoon eldenmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eldenmoon eldenmoon merged commit 074d88b into apache:master Sep 12, 2025
28 of 30 checks passed
Mryange added a commit that referenced this pull request Apr 15, 2026
…_with_s3data (#62488)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. lfs-detected! Warning Label for use when LFS is detected in the commits of a Pull Request reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants