suxiaogang223 commented on code in PR #32438:
URL: https://github.com/apache/doris/pull/32438#discussion_r1529940285
##########
be/src/vec/exec/format/parquet/vparquet_column_reader.cpp:
##########
@@ -759,9 +772,31 @@ Status StructColumnReader::read_column_data(ColumnPtr&
doris_column, DataTypePtr
}
}
+ if (!least_one_reader) {
+ // TODO: support read struct which columns are all missing
+ return Status::Corruption("Not support read struct '{}' which columns
are all missing",
+ _field_schema->name);
+ }
+
+ // fill missing column with null or default value
Review Comment:
It seems that the field of struct in hive does not support not null or
default value
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-ComplexTypes
Can only add comment in struct<>
```txt
STRUCT<col_name : data_type [COMMENT col_comment], ...>
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]