spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Mahmoud <>
Subject Multiple filters vs multiple conditions
Date Tue, 03 Oct 2017 12:14:21 GMT
Hi All,

Just a quick question from an optimisation point of view:

Approach 1:
.filter (t-> t.x=1 && t.y=2)

Approach 2:
.filter (t-> t.x=1)
.filter (t-> t.y=2)

Is there a difference or one is better than the other  or both are same?

Ahmed Mahmoud

View raw message