linrrzqqq commented on code in PR #68853:
URL: https://github.com/apache/doris/pull/68853#discussion_r4665539418


##########
be/src/core/data_type/data_type_factory.cpp:
##########
@@ -573,7 +587,26 @@ DataTypePtr DataTypeFactory::create_data_type(const 
std::vector<TTypeNode>& type
                 create_data_type(types, idx, node.contains_nulls[0]));
         break;
     }
+    case TTypeNodeType::FILE:
     case TTypeNodeType::STRUCT: {
+        if (node.type == TTypeNodeType::FILE &&
+            (node.struct_fields.size() != DataTypeFile::FIELD_COUNT ||
+             types.size() - static_cast<size_t>(*idx) <= 
DataTypeFile::FIELD_COUNT)) {
+            throw Exception(ErrorCode::INVALID_ARGUMENT, "Invalid FILE type 
descriptor");
+        }
+        if (node.type == TTypeNodeType::FILE) {
+            constexpr TPrimitiveType::type child_types[] = {
+                    TPrimitiveType::STRING, TPrimitiveType::BIGINT, 
TPrimitiveType::BIGINT,

Review Comment:
   都是先升级 be 的, 不存在新 be 旧 fe 的情况



-- 
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]

Reply via email to