xiangfu0 commented on code in PR #14683:
URL: https://github.com/apache/pinot/pull/14683#discussion_r1890905475


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/TableConfigsRestletResource.java:
##########
@@ -196,7 +196,12 @@ public ConfigSuccessResponse addConfig(
     }
     TableConfigs tableConfigs = tableConfigsAndUnrecognizedProps.getLeft();
     String databaseName = 
DatabaseUtils.extractDatabaseFromHttpHeaders(httpHeaders);
-    validateConfig(tableConfigs, databaseName, typesToSkip);
+    if (typesToSkip == null) {
+      // Skip validate task type for table creation as the schema is not yet 
registered.
+      validateConfig(tableConfigs, databaseName, "TASK");
+    } else {
+      validateConfig(tableConfigs, databaseName, typesToSkip);

Review Comment:
   right, there is only full string match inside, I feel some parsing logic is 
wrong there.



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