Skip to content
Snippets Groups Projects
Commit 79fe7634 authored by Cheng Hao's avatar Cheng Hao Committed by Michael Armbrust
Browse files

[SPARK-2615] [SQL] Add Equal Sign "==" Support for HiveQl

Currently, the "==" in HiveQL expression will cause exception thrown, this patch will fix it.

Author: Cheng Hao <hao.cheng@intel.com>

Closes #1522 from chenghao-intel/equal and squashes the following commits:

f62a0ff [Cheng Hao] Add == Support for HiveQl
parent 85d3596e
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 0 deletions
...@@ -932,6 +932,7 @@ private[hive] object HiveQl { ...@@ -932,6 +932,7 @@ private[hive] object HiveQl {
/* Comparisons */ /* Comparisons */
case Token("=", left :: right:: Nil) => EqualTo(nodeToExpr(left), nodeToExpr(right)) case Token("=", left :: right:: Nil) => EqualTo(nodeToExpr(left), nodeToExpr(right))
case Token("==", left :: right:: Nil) => EqualTo(nodeToExpr(left), nodeToExpr(right))
case Token("!=", left :: right:: Nil) => Not(EqualTo(nodeToExpr(left), nodeToExpr(right))) case Token("!=", left :: right:: Nil) => Not(EqualTo(nodeToExpr(left), nodeToExpr(right)))
case Token("<>", left :: right:: Nil) => Not(EqualTo(nodeToExpr(left), nodeToExpr(right))) case Token("<>", left :: right:: Nil) => Not(EqualTo(nodeToExpr(left), nodeToExpr(right)))
case Token(">", left :: right:: Nil) => GreaterThan(nodeToExpr(left), nodeToExpr(right)) case Token(">", left :: right:: Nil) => GreaterThan(nodeToExpr(left), nodeToExpr(right))
......
103 val_103 103 val_103 4 4
104 val_104 104 val_104 4 4
105 val_105 105 val_105 1 1
111 val_111 111 val_111 1 1
113 val_113 113 val_113 4 4
114 val_114 114 val_114 1 1
116 val_116 116 val_116 1 1
118 val_118 118 val_118 4 4
119 val_119 119 val_119 9 9
103 val_103 103 val_103 4 4
104 val_104 104 val_104 4 4
105 val_105 105 val_105 1 1
111 val_111 111 val_111 1 1
113 val_113 113 val_113 4 4
114 val_114 114 val_114 1 1
116 val_116 116 val_116 1 1
118 val_118 118 val_118 4 4
119 val_119 119 val_119 9 9
103 103 4 4
104 104 4 4
105 105 1 1
111 111 1 1
113 113 4 4
114 114 1 1
116 116 1 1
118 118 4 4
119 119 9 9
103 103 4 4
104 104 4 4
105 105 1 1
111 111 1 1
113 113 4 4
114 114 1 1
116 116 1 1
118 118 4 4
119 119 9 9
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment