OIiveirra commented on code in PR #69032:
URL: https://github.com/apache/doris/pull/69032#discussion_r4428751545


##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnectorMetadata.java:
##########
@@ -1146,6 +1146,15 @@ public void createTable(ConnectorSession session, 
ConnectorCreateTableRequest re
         rejectReservedRowLineageColumns(request);
         validateSortOrder(request);
         Schema schema = IcebergSchemaBuilder.buildSchema(request.getColumns());
+        boolean spatial = false;
+        for (Types.NestedField field : schema.columns()) {
+            spatial |= 
IcebergSpatialSchemaValidator.containsSpatial(field.type());
+        }
+        if (spatial) {

Review Comment:
   Validate the complete pinned schema and V3/Parquet requirements before 
data-file writes, including partial INSERTs that omit spatial columns. 
Delete-only operations and ordinary-key/spatial-value writes remain supported; 
added regression coverage.
   
   Commit: 
[5e8792357496](https://github.com/apache/doris/commit/5e8792357496315bdb67d0ce43666d3cf3d59cf3).



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