> On April 12, 2017, 5:52 p.m., Ashutosh Chauhan wrote: > > ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/SqlFunctionConverter.java > > Lines 355 (patched) > > <https://reviews.apache.org/r/58181/diff/5/?file=1689483#file1689483line355> > > > > Do we need to register _is distinct from_ as well ?
No we don't since we won't have IS_DISTINCT_FROM. Hive will transform IS_DISTINCT_FROM to NOT EQUAL_NS > On April 12, 2017, 5:52 p.m., Ashutosh Chauhan wrote: > > ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java > > Lines 719-726 (patched) > > <https://reviews.apache.org/r/58181/diff/5/?file=1689485#file1689485line719> > > > > Won't we have this when user directly uses not <=> in query. How is > > that handled without this special map? If we have "not <=>" text in query then corresponding AST tokens will have 'not' and '<=>' have as text and function lookup will work but if we do rewrite then text created is 'KW_NOT' and 'EQUAL_NS' so function lookup (which is based on text) won't work hence we use this map. I am not sure why our UDF lookup is based on text. Lookup based on AST token type would be much better. - Vineet ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/58181/#review171761 ----------------------------------------------------------- On April 12, 2017, 11:26 p.m., Vineet Garg wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/58181/ > ----------------------------------------------------------- > > (Updated April 12, 2017, 11:26 p.m.) > > > Review request for hive, Ashutosh Chauhan, Jesús Camacho Rodríguez, and > Pengcheng Xu. > > > Bugs: HIVE-15986 > https://issues.apache.org/jira/browse/HIVE-15986 > > > Repository: hive-git > > > Description > ------- > > This patch adds support for 'is distinct from' and 'is not distinct from'. > > > Diffs > ----- > > itests/src/test/resources/testconfiguration.properties fb85b9ece2 > > ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/SqlFunctionConverter.java > 85450c999f > ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g 8c4ee8a38b > ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java > f979c1432e > ql/src/test/queries/clientpositive/is_distinct_from.q PRE-CREATION > ql/src/test/queries/clientpositive/join_is_not_distinct_from.q PRE-CREATION > ql/src/test/results/clientpositive/llap/is_distinct_from.q.out PRE-CREATION > ql/src/test/results/clientpositive/llap/join_is_not_distinct_from.q.out > PRE-CREATION > > > Diff: https://reviews.apache.org/r/58181/diff/6/ > > > Testing > ------- > > Added new tests > Pre-commit testing > > > Thanks, > > Vineet Garg > >
