Skip to content

[python][ray] Support dynamic_table_options in read_paimon#8195

Merged
JingsongLi merged 7 commits into
apache:masterfrom
XiaoHongbo-Hope:support_dynamic_options
Jun 11, 2026
Merged

[python][ray] Support dynamic_table_options in read_paimon#8195
JingsongLi merged 7 commits into
apache:masterfrom
XiaoHongbo-Hope:support_dynamic_options

Conversation

@XiaoHongbo-Hope

Copy link
Copy Markdown
Contributor

Purpose

read_paimon() cannot dynamically override table options at read time. For example, there is no way to pass blob-as-descriptor=true without setting it at table creation. This PR pass dynamic_table_options into read_paimon.

Tests

read_paimon now accepts a dynamic_table_options parameter that is
merged into the table options via Table.copy() at read time, enabling
use cases like blob-as-descriptor=true without modifying the stored
table options.
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review June 10, 2026 14:07
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as draft June 10, 2026 14:07
…le_options

Reject all conflicting combinations: snapshot_id/tag_name params vs any
time-travel scan key in dynamic_table_options, and multiple time-travel
keys within dynamic_table_options itself.
@XiaoHongbo-Hope

XiaoHongbo-Hope commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@JingsongLi snapshot_id and tag_name are essentially shortcuts for dynamic_table_options["scan.snapshot-id"] /dynamic_table_options["scan.tag-name"]. Since the read_paimon API hasn't been released yet, should we keep both, or remove snapshot_id/tag_name and let users pass them via dynamic_table_options?

@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review June 10, 2026 14:23
limit: Optional[int] = None,
snapshot_id: Optional[int] = None,
tag_name: Optional[str] = None,
dynamic_table_options: Optional[Dict[str, str]] = None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

dynamic_options?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

dynamic_options?

Updated

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 14ab97b into apache:master Jun 11, 2026
6 checks passed
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.

2 participants