spark-examples / pyspark-examples

Pyspark RDD, DataFrame and Dataset Examples in Python language
https://sparkbyexamples.com
1.17k stars 895 forks source link

Fixed issue in comparison. #23

Open sagarzemosolabs opened 7 months ago

sagarzemosolabs commented 7 months ago

In PySpark, the logical operators & and | have higher precedence than comparison operators like >= and <=. As a result, the expression is being evaluated incorrectly.

sagarzemosolabs commented 7 months ago

image