From 4aa9381f6ad953582fd52a3f2b18d4bb4cdcfcac Mon Sep 17 00:00:00 2001 From: Himanshu Gupta Date: Wed, 29 Apr 2015 17:09:35 -0500 Subject: [PATCH] fixing the typo for audit table (type, created_date) index creation --- .../src/main/java/io/druid/metadata/SQLMetadataConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) );