diff --git a/server/src/main/java/io/druid/metadata/SQLMetadataConnector.java b/server/src/main/java/io/druid/metadata/SQLMetadataConnector.java index 1cabf4d451f..57c6fc0d07d 100644 --- a/server/src/main/java/io/druid/metadata/SQLMetadataConnector.java +++ b/server/src/main/java/io/druid/metadata/SQLMetadataConnector.java @@ -397,7 +397,7 @@ public abstract class SQLMetadataConnector implements MetadataStorageConnector tableName, getSerialType(), getPayloadType() ), String.format("CREATE INDEX idx_%1$s_key_time ON %1$s(audit_key, created_date)", tableName), - String.format("CREATE INDEX idx_%1$s_type_time ON %1$s(audit_key, created_date)", tableName), + String.format("CREATE INDEX idx_%1$s_type_time ON %1$s(type, created_date)", tableName), String.format("CREATE INDEX idx_%1$s_audit_time ON %1$s(created_date)", tableName) ) );