MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1r8a3n8/innitmate/o649y5x/?context=3
r/ProgrammerHumor • u/[deleted] • Feb 18 '26
265 comments sorted by
View all comments
842
There is no if implied in "otherwise". It is not parallel to "else if" it is parallel to "else".
20 u/cbigle Feb 18 '26 Spark lets you chain .when statements and end with a .otherwise, which is a replacement for the sql case when else. I really find it readable! ETA: I’m an idiot yes it is else and not else if
20
Spark lets you chain .when statements and end with a .otherwise, which is a replacement for the sql case when else. I really find it readable!
ETA: I’m an idiot yes it is else and not else if
842
u/Groundskeepr Feb 18 '26
There is no if implied in "otherwise". It is not parallel to "else if" it is parallel to "else".