Skip to content
  • Home
  • About
|       { One stop for all Spark Examples }
Spark by {Examples}
  • Spark
    • Spark RDD
    • Spark DataFrame
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
  • PySpark
  • Pandas
  • Hive
  • Kafka
  • H2O.ai
  • More
    • Apache Hadoop
    • Apache HBase
    • Apache Cassandra
    • Snowflake Database
    • H2O Sparkling Water
    • Scala Language
    • Python NumPy
    • FAQ’s
Menu Close
  • Spark
    • Spark RDD
    • Spark DataFrame
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
  • PySpark
  • Pandas
  • Hive
  • Kafka
  • H2O.ai
  • More
    • Apache Hadoop
    • Apache HBase
    • Apache Cassandra
    • Snowflake Database
    • H2O Sparkling Water
    • Scala Language
    • Python NumPy
    • FAQ’s
  • Home
  • About
Read more about the article Spark SQL “case when” and “when otherwise”
Apache Spark

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.

8 Comments
February 5, 2019

Categories

  • Apache Hadoop
  • Apache Spark
  • Apache Spark Streaming
  • Apache Kafka
  • Apache HBase
  • Apache Cassandra
  • Snowflake Database
  • H2O Sparkling Water
  • PySpark

Recent Posts

  • Python Dictionary Methods
  • Python Dictionary setdefault() Method
  • Python Dictionary popitem() Method
  • Python Dictionary pop() Method
  • Python Dictionary update() Method
  • Python Dictionary fromkeys() Usage With Example
  • Python Dictionary copy()
  • Python Dictionary keys() Method Usage
  • Python Dictionary Values()
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

About SparkByExamples.com

SparkByExamples.com is a Big Data and Spark examples community page, all examples are simple and easy to understand, and well tested in our development environment Read more ..
Copyright sparkbyexamples.com