Skip to content

Commit 7223bb9

Browse files
committed
update
1 parent b0d0b00 commit 7223bb9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

be/src/vec/exec/format/parquet/schema_desc.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,12 @@ std::pair<DataTypePtr, bool> FieldDescriptor::convert_to_doris_type(
306306
} else if (logicalType.__isset.JSON) {
307307
ans.first = DataTypeFactory::instance().create_data_type(TYPE_STRING, nullable);
308308
} else if (logicalType.__isset.UUID) {
309-
ans.first =
310-
DataTypeFactory::instance().create_data_type(TYPE_VARBINARY, nullable, -1, -1, 16);
309+
if (_enable_mapping_varbinary) {
310+
ans.first = DataTypeFactory::instance().create_data_type(TYPE_VARBINARY, nullable, -1,
311+
-1, 16);
312+
} else {
313+
ans.first = DataTypeFactory::instance().create_data_type(TYPE_STRING, nullable);
314+
}
311315
} else if (logicalType.__isset.FLOAT16) {
312316
ans.first = DataTypeFactory::instance().create_data_type(TYPE_FLOAT, nullable);
313317
} else {

0 commit comments

Comments
 (0)