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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to