diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java index e7694b7..7c0cef0 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java @@ -846,7 +846,7 @@ public void visit(LeafNode node) throws MetaException { } // This is a workaround for DERBY-6358; as such, it is pretty horrible. - tableValue = "(case when \"TBLS\".\"TBL_NAME\" = ? and \"DBS\".\"NAME\" = ? then " + tableValue = "(case when TBLS.TBL_NAME = ? and DBS.NAME = ? and " + "FILTER" + partColIndex + ".PART_ID = PARTITIONS.PART_ID then " + tableValue + " else null end)"; params.add(table.getTableName().toLowerCase()); params.add(table.getDbName().toLowerCase());