Skip to content

[core] Skip partition-specific table-default options for non-partitioned tables#7681

Merged
JingsongLi merged 5 commits intoapache:masterfrom
XiaoHongbo-Hope:table_default_fix
Apr 26, 2026
Merged

[core] Skip partition-specific table-default options for non-partitioned tables#7681
JingsongLi merged 5 commits intoapache:masterfrom
XiaoHongbo-Hope:table_default_fix

Conversation

@XiaoHongbo-Hope
Copy link
Copy Markdown
Contributor

@XiaoHongbo-Hope XiaoHongbo-Hope commented Apr 21, 2026

Purpose

When catalog-level table-default options include partition-specific options (e.g. table-default.partition.expiration-time), creating a non-partitioned table fails with "Can not set 'partition.expiration-time' for non-partitioned table".

Tests

@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as draft April 21, 2026 14:33
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review April 22, 2026 13:05
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as draft April 22, 2026 13:08
@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review April 22, 2026 13:34
continue;
}
throw new IllegalArgumentException(
"Can not set 'partition.expiration-time' for non-partitioned table.");
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.

Just remove this?

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.

Just remove this?

Updated

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 9f9b8db into apache:master Apr 26, 2026
12 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