[feat][paimon] support paimon system table #52598
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
...xtensions/paimon-scanner/src/main/java/org/apache/doris/paimon/PaimonSysTableJniScanner.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/tablefunction/PaimonTableValuedFunction.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/tablefunction/PaimonTableValuedFunction.java
Outdated
Show resolved
Hide resolved
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 34049 ms |
TPC-DS: Total hot run time: 184940 ms |
ClickBench: Total hot run time: 30.21 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run p0 |
|
run nonConcurrent |
|
PR approved by anyone and no changes requested. |
|
run nonConcurrent |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 33847 ms |
TPC-DS: Total hot run time: 185033 ms |
ClickBench: Total hot run time: 30.2 s |
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 33255 ms |
TPC-DS: Total hot run time: 186483 ms |
ClickBench: Total hot run time: 29.25 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 33364 ms |
TPC-DS: Total hot run time: 185710 ms |
ClickBench: Total hot run time: 30.21 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
|
PR approved by at least one committer and no changes requested. |
This PR adds support for querying Apache Paimon system tables, enabling users to inspect metadata and operational information about Paimon tables directly through SQL queries. For complete system table reference and advanced usage patterns, see the [Apache Paimon System Tables Documentation](https://paimon.apache.org/docs/master/concepts/system-tables/). ```sql -- Query snapshot information SELECT * FROM my_table$snapshots; ``` ```sql -- Query manifest details SELECT * FROM my_table$manifests; ``` ```sql -- Query schema evolution SELECT * FROM my_table$schemas; ``` ```sql -- Filter snapshots by commit time SELECT snapshot_id, commit_user, commit_time FROM my_table$snapshots WHERE commit_time > '2025-01-01' ORDER BY commit_time DESC; ``` ```sql -- Join snapshots with schemas SELECT s.snapshot_id, sc.fields FROM my_table$snapshots s JOIN my_table$schemas sc ON s.schema_id = sc.schema_id; ``` Sample Output ```sql mysql> SELECT * FROM my_table$snapshots; +-------------+-----------+--------------------------------------+---------------------+-------------+-------------------------+------------------------------------------------------+------------------------------------------------------+-------------------------+--------------------+--------------------+------------------------+----------------------+ | snapshot_id | schema_id | commit_user | commit_identifier | commit_kind | commit_time | base_manifest_list | delta_manifest_list | changelog_manifest_list | total_record_count | delta_record_count | changelog_record_count | watermark | +-------------+-----------+--------------------------------------+---------------------+-------------+-------------------------+------------------------------------------------------+------------------------------------------------------+-------------------------+--------------------+--------------------+------------------------+----------------------+ | 1 | 0 | d7ea4996-92c7-469f-b9ff-c76525954f1c | 9223372036854775807 | APPEND | 2025-03-04 22:48:45.575 | manifest-list-dc5490ba-420c-445a-b6f7-6962d394935c-0 | manifest-list-dc5490ba-420c-445a-b6f7-6962d394935c-1 | NULL | 1 | 1 | 0 | -9223372036854775808 | +-------------+-----------+--------------------------------------+---------------------+-------------+-------------------------+------------------------------------------------------+------------------------------------------------------+-------------------------+--------------------+--------------------+------------------------+----------------------+ ```
Overview
close: #56007
This PR adds support for querying Apache Paimon system tables, enabling users to inspect metadata and operational information about Paimon tables directly through SQL queries.
For complete system table reference and advanced usage patterns, see the Apache Paimon System Tables Documentation.
Usage Examples
Basic System Table Query
Advanced Operations
Sample Output
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)