aboutsummaryrefslogtreecommitdiff
path: root/sql/core
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2015-07-01 21:14:13 -0700
committerReynold Xin <rxin@databricks.com>2015-07-01 21:14:13 -0700
commit9fd13d5613b6d16a78d97d4798f085b56107d343 (patch)
tree9687bc3c9da9a72e5ae3814972f5a72c0bb7181f /sql/core
parent3a342dedc04799948bf6da69843bd1a91202ffe5 (diff)
downloadspark-9fd13d5613b6d16a78d97d4798f085b56107d343.tar.gz
spark-9fd13d5613b6d16a78d97d4798f085b56107d343.tar.bz2
spark-9fd13d5613b6d16a78d97d4798f085b56107d343.zip
[SPARK-8770][SQL] Create BinaryOperator abstract class.
Our current BinaryExpression abstract class is not for generic binary expressions, i.e. it requires left/right children to have the same type. However, due to its name, contributors build new binary expressions that don't have that assumption (e.g. Sha) and still extend BinaryExpression. This patch creates a new BinaryOperator abstract class, and update the analyzer o only apply type casting rule there. This patch also adds the notion of "prettyName" to expressions, which defines the user-facing name for the expression. Author: Reynold Xin <rxin@databricks.com> Closes #7174 from rxin/binary-opterator and squashes the following commits: f31900d [Reynold Xin] [SPARK-8770][SQL] Create BinaryOperator abstract class. fceb216 [Reynold Xin] Merge branch 'master' of github.com:apache/spark into binary-opterator d8518cf [Reynold Xin] Updated Python tests.
Diffstat (limited to 'sql/core')
0 files changed, 0 insertions, 0 deletions