Spark – explode Array of Struct to rows
Problem: How to explode Array of StructType DataFrame columns to rows using Spark. Solution: Spark…
Problem: How to explode Array of StructType DataFrame columns to rows using Spark. Solution: Spark…
In this article, I will explain how to explode array or list and map DataFrame…
In this article, I will explain the usage of the Spark SQL map functions map(), map_keys(), map_values(), map_contact(), map_from_entries() on DataFrame…
In this tutorial, we will show you a Spark SQL example of how to convert…
In this tutorial, we will show you a Spark SQL example of how to convert…
In this tutorial, we will show you a Dataframe example of how to truncate Date and Time using Scala language and Spark SQL Date and Time functions.
Spark DataFrame example of how to add a day, month and year to a Date column using Scala language and Spark SQL Date and Time functions.
Spark DataFrame example of how to retrieve the last day of a month from a Date using Scala language and Spark SQL Date and Time functions.
Spark SQL Dataframe functions example on getting current system date-time, formatting Date to a String pattern and parsing String to Date using Scala language.
How to calculate the difference between two dates in days, months and years in Spark…