Skip to content

branch-4.1: [feat](tvf) add Parquet metadata TVF (#58972)(#60938)(#56603) - #61446

Closed
morningman wants to merge 3 commits into
apache:branch-4.1from
morningman:41_bp58972
Closed

morningman wants to merge 3 commits into
apache:branch-4.1from
morningman:41_bp58972

Conversation

@morningman

@morningman morningman commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

Expose Parquet file metadata via a table-valued function for inspection
and debugging.

- Add a Parquet metadata TVF so users can query Parquet file metadata
via SQL.
- Backend adds a Parquet metadata reader and scan path; frontend wires
the TVF definition.
- Enables easy inspection of partitions/row groups/column stats to aid
troubleshooting.
@morningman
morningman requested a review from yiguolei as a code owner March 17, 2026 18:11
@hello-stephen

Copy link
Copy Markdown
Contributor

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?

…kets (apache#60938)

## Summary
- adjust `test_parquet_meta_tvf` S3-mode checks to compare only stable
columns
- avoid asserting `file_name` / full S3 URI fields that vary by pipeline
bucket
- update the corresponding `.out` baseline for the changed query
projections

## Why
Different CI pipelines may use different bucket names, which causes
false failures when full URI/file name columns are compared.

## Test
- attempted: `./run-regression-test.sh --run -f
external_table_p0/tvf/test_parquet_meta_tvf -forceGenOut`
- in this environment it failed with S3 `FORBIDDEN` while reading
regression parquet files
@morningman morningman changed the title branch-4.1: [feat] add Parquet metadata TVF (#58972) branch-4.1: [feat](tvf) add Parquet metadata TVF (#58972) Mar 17, 2026
@morningman

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.15% (1788/2259)
Line Coverage 64.41% (31933/49580)
Region Coverage 65.25% (15983/24496)
Branch Coverage 55.83% (8505/15234)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 2.39% (5/209) 🎉
Increment coverage report
Complete coverage report

…pache#56603)

 go through whole be/ and find all const_cast

Issue Number: apache#55057

Problem Summary:
1. remove useless const_cast
2. explain why using const_cast does not result in undefined behavior
3. don't modify some const_cast
    (1) some code in DBUG_EXECUTE_IF or test file
    (2) underlying data structures, such as cow
    (3) const_cast<const T*>
@morningman morningman changed the title branch-4.1: [feat](tvf) add Parquet metadata TVF (#58972) branch-4.1: [feat](tvf) add Parquet metadata TVF (#58972)(#60938)(#56603) Mar 18, 2026
@morningman

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

Copy link
Copy Markdown

Cloud UT Coverage Report

Increment line coverage 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 79.15% (1788/2259)
Line Coverage 64.42% (31938/49580)
Region Coverage 65.27% (15989/24496)
Branch Coverage 55.83% (8505/15234)

@morningman morningman closed this Mar 18, 2026
morningman pushed a commit that referenced this pull request Mar 19, 2026
) (#61474)

Replacement for #61446 because the original PR head branch could not be
updated from this environment.

This branch contains:
- [feat] add Parquet metadata TVF (#58972)
- [fix](regression) stabilize parquet_meta tvf assertions across s3
buckets (#60938)
- [fix] remove useless const_cast and explain const_cast for vec (4)
(#56603)
- [fix] fix parquet metadata TVF compile on branch-4.1

Please review this PR instead of #61446.

---------

Co-authored-by: admiring_xm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants