Skip to content
Snippets Groups Projects
  • Davies Liu's avatar
    7fb5ae50
    [SPARK-8573] [SPARK-8568] [SQL] [PYSPARK] raise Exception if column is used in booelan expression · 7fb5ae50
    Davies Liu authored
    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
    7fb5ae50
    History
    [SPARK-8573] [SPARK-8568] [SQL] [PYSPARK] raise Exception if column is used in booelan expression
    Davies Liu authored
    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