You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "KKcorps (via GitHub)" <gi...@apache.org> on 2023/04/13 14:39:25 UTC
[GitHub] [pinot] KKcorps commented on a diff in pull request #10593: Check EV not exist before allowing creating the table
KKcorps commented on code in PR #10593:
URL: https://github.com/apache/pinot/pull/10593#discussion_r1165627796
##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSchemaRestletResource.java:
##########
@@ -450,20 +451,26 @@ private void deleteSchemaInternal(String schemaName) {
}
// If the schema is associated with a table, we should not delete it.
- List<String> tableNames = _pinotHelixResourceManager.getAllRealtimeTables();
- for (String tableName : tableNames) {
- TableConfig config = _pinotHelixResourceManager.getRealtimeTableConfig(tableName);
- String tableSchema = config.getValidationConfig().getSchemaName();
-
- if (schemaName.equals(tableSchema)) {
+ // TODO: Check OFFLINE tables as well
Review Comment:
What is the blocker for not implementing for OFFLINE tables?
--
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-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org