JingsongLi commented on code in PR #6340:
URL: https://github.com/apache/paimon/pull/6340#discussion_r2381295726
##########
paimon-api/src/main/java/org/apache/paimon/types/RowType.java:
##########
@@ -310,6 +304,33 @@ public RowType project(List<String> names) {
.copy(isNullable());
}
+ public Pair<RowType, RowType> splitBlob() {
Review Comment:
Don't add here.
##########
paimon-api/src/main/java/org/apache/paimon/types/RowType.java:
##########
@@ -310,6 +304,33 @@ public RowType project(List<String> names) {
.copy(isNullable());
}
+ public Pair<RowType, RowType> splitBlob() {
+ List<DataField> fields = getFields();
+ List<DataField> normalFields = new ArrayList<>();
+ List<DataField> blobFields = new ArrayList<>();
+
+ for (DataField field : fields) {
+ DataTypeRoot type = field.type().getTypeRoot();
+ if (type == DataTypeRoot.BLOB) {
+ blobFields.add(field);
+ } else {
+ normalFields.add(field);
+ }
+ }
+
+ return Pair.of(new RowType(normalFields), new RowType(blobFields));
+ }
+
+ public boolean containsBlobType() {
Review Comment:
Don't add here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]