title: SPARK SQL - case when then
body: <p>I'm new to SPARK-SQL. Is there an equivalent to "CASE WHEN 'CONDITION' THEN 0 ELSE 1 END" in SPARK SQL ?</p>
  
  <p><code>select case when 1=1 then 1 else 0 end from table</code></p>
  
  <p>Thanks
  Sridhar</p>