diff options
author | Davies Liu <davies@databricks.com> | 2015-06-23 15:51:16 -0700 |
---|---|---|
committer | Davies Liu <davies@databricks.com> | 2015-06-23 15:51:35 -0700 |
commit | 13f7b0a910557fb5564636031f43c2674a7dfa28 (patch) | |
tree | 6e01732932528057d7adaa08926cdad7c5298e63 /network/common | |
parent | 8d6e3636e9599db0e45e9e6f4e71a08cdc91e11f (diff) | |
download | spark-13f7b0a910557fb5564636031f43c2674a7dfa28.tar.gz spark-13f7b0a910557fb5564636031f43c2674a7dfa28.tar.bz2 spark-13f7b0a910557fb5564636031f43c2674a7dfa28.zip |
[SPARK-8573] [SPARK-8568] [SQL] [PYSPARK] raise Exception if column is used in booelan expression
It's a common mistake that user will put Column in a boolean expression (together with `and` , `or`), which does not work as expected, we should raise a exception in that case, and suggest user to use `&`, `|` instead.
Author: Davies Liu <davies@databricks.com>
Closes #6961 from davies/column_bool and squashes the following commits:
9f19beb [Davies Liu] update message
af74bd6 [Davies Liu] fix tests
07dff84 [Davies Liu] address comments, fix tests
f70c08e [Davies Liu] raise Exception if column is used in booelan expression
(cherry picked from commit 7fb5ae5024284593204779ff463bfbdb4d1c6da5)
Signed-off-by: Davies Liu <davies@databricks.com>
Diffstat (limited to 'network/common')
0 files changed, 0 insertions, 0 deletions