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 51ed24ab1a [core] Validate blob type should not be defined solely
(#6376)
51ed24ab1a is described below
commit 51ed24ab1a11bcfd0293494e9edf4b7792d6023f
Author: YeJunHao <[email protected]>
AuthorDate: Fri Oct 10 16:12:15 2025 +0800
[core] Validate blob type should not be defined solely (#6376)
---
.../src/main/java/org/apache/paimon/schema/SchemaValidation.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java
b/paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java
index a05d198ffa..f84a277c07 100644
--- a/paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java
+++ b/paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java
@@ -657,6 +657,9 @@ public class SchemaValidation {
checkArgument(
BlobType.splitBlob(schema.logicalRowType()).getRight().getFieldCount() == 1,
"Table with BLOB type column only support one BLOB
column.");
+ checkArgument(
+ schema.fields().size() > 1,
+ "Table with BLOB type column must have other normal
columns.");
}
}