Spark SQL “case when” and “when otherwise”
Like SQL "case when" statement and Swith statement from popular programming languages, Spark SQL Dataframe also supports similar syntax using "when otherwise" or we can also use "case when" statement.
9 Comments
February 5, 2019