This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new ade5d201c9 [core] Improve error message for fallback branch schema
mismatch (#7633)
ade5d201c9 is described below
commit ade5d201c994fbe668a446acc502c6f2741f8007
Author: LsomeYeah <[email protected]>
AuthorDate: Mon Apr 13 18:53:54 2026 +0800
[core] Improve error message for fallback branch schema mismatch (#7633)
---
.../java/org/apache/paimon/table/FallbackReadFileStoreTable.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/table/FallbackReadFileStoreTable.java
b/paimon-core/src/main/java/org/apache/paimon/table/FallbackReadFileStoreTable.java
index 1d1c6214ce..addca008d1 100644
---
a/paimon-core/src/main/java/org/apache/paimon/table/FallbackReadFileStoreTable.java
+++
b/paimon-core/src/main/java/org/apache/paimon/table/FallbackReadFileStoreTable.java
@@ -215,11 +215,15 @@ public class FallbackReadFileStoreTable extends
DelegatedFileStoreTable {
RowType otherRowType = other.schema().logicalRowType();
Preconditions.checkArgument(
sameRowTypeIgnoreNullable(mainRowType, otherRowType),
- "Branch %s and %s does not have the same row type.\n"
+ "Branch %s and %s does not have the same row type. "
+ + "This validation is triggered because '%s' is
configured to '%s'. "
+ + "The fallback branch must have the same schema as
the main branch.\n"
+ "Row type of branch %s is %s.\n"
+ "Row type of branch %s is %s.",
mainBranch,
otherBranch,
+ CoreOptions.SCAN_FALLBACK_BRANCH.key(),
+ otherBranch,
mainBranch,
mainRowType,
otherBranch,