commit | bfcb83a387979b17cb85919c36724329fa7c8805 | [log] [tgz] |
---|---|---|
author | alexander.behm <alexander.behm@eaa15691-b419-025a-1212-ee371bd00084> | Fri Dec 07 00:26:41 2012 +0000 |
committer | alexander.behm <alexander.behm@eaa15691-b419-025a-1212-ee371bd00084> | Fri Dec 07 00:26:41 2012 +0000 |
tree | af1c2274e97fa111b822eee4254d7bec6efc2eeb | |
parent | e0ffa4cd76250ecf604a6d83d0b514fb3021a260 [diff] |
Took are of Yingyi's review. git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_fix_issue_207@1015 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java index 9878cf3..345f68a 100644 --- a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java +++ b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java
@@ -101,11 +101,11 @@ // Hack to make sure that we will add the func call as is, without wrapping a tokenizer around. IAType type = (IAType) context.getExpressionTypeComputer().getType(inputExp, metadataProvider, env); inputTypeTag = type.getTypeTag(); + // Only auto-tokenize strings. if (inputTypeTag == ATypeTag.STRING) { // Strings will be auto-tokenized. inputTypeTag = ATypeTag.UNORDEREDLIST; - } - if (inputTypeTag == ATypeTag.ORDEREDLIST || inputTypeTag == ATypeTag.UNORDEREDLIST) { + } else { useExprAsIs = true; } inputExprTypes.add(inputTypeTag);