From cc08d6029fc0fced162aa150f7948ffa54ed79f8 Mon Sep 17 00:00:00 2001 From: Eric Tschetter Date: Wed, 20 Mar 2013 12:03:07 -0500 Subject: [PATCH] 1) getDimensionCardinality() on QueryIndexStorageAdapter wasn't case insensitive. --- .../druid/index/v1/QueryableIndexStorageAdapter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/metamx/druid/index/v1/QueryableIndexStorageAdapter.java b/server/src/main/java/com/metamx/druid/index/v1/QueryableIndexStorageAdapter.java index 9f159eb7aeb..0dfded54178 100644 --- a/server/src/main/java/com/metamx/druid/index/v1/QueryableIndexStorageAdapter.java +++ b/server/src/main/java/com/metamx/druid/index/v1/QueryableIndexStorageAdapter.java @@ -83,8 +83,11 @@ public class QueryableIndexStorageAdapter extends BaseStorageAdapter @Override public int getDimensionCardinality(String dimension) { - Column column = null; - column = index.getColumn(dimension); + if (dimension == null) { + return 0; + } + + Column column = index.getColumn(dimension.toLowerCase()); if (column == null) { return 0; }