apache / paimon

Apache Paimon is a lake format that enables building a Realtime Lakehouse Architecture with Flink and Spark for both streaming and batch operations.
https://paimon.apache.org/
Apache License 2.0
2.43k stars 954 forks source link

[Bug] The branch options set by flink hints are not applicable to all branch system tables. #4526

Closed liming30 closed 1 week ago

liming30 commented 1 week ago

Search before asking

Paimon version

paimon-1.0-SNAPSHOT

Compute Engine

flink

Minimal reproduce step

  1. create a branch for table.
  2. write some data to the branch and create a tag.
  3. use flink hints to query the tag system table of the branch. SELECT tag_name,snapshot_id,record_count FROM t$tags /*+ OPTIONS('branch'='b1') */

What doesn't meet your expectations?

Unable to find the tag of this branch, only the tag of the main branch can be found.

Anything else?

The branch information of system tables such as ManifestsTable / StatisticTable / FilesTable can be queried normally using flink hints, but system tables such as AggregationFieldsTable / ConsumersTable / TagsTable cannot be queried normally.

Are you willing to submit a PR?