I have a json file in the below format:
{Continent: Asia, Description: Biggest continent in the WORLD},
{Continent: Europe, Description: Coldest countries in the world}
{Continent: Africa, Description: Second continent in the WorLD}
{Continent: Australia, Description: The only country & continent in the world}
I am trying to filter the rows of the dataframe that contains the string world in it.
I wrote the following code for it.
val continents = spark.read.json("path/to/input.json")
To filter the rows containing the word world in the column Description
continents.filter($"Description".contains("world"))
The above line only filters the rows only if world is completely in lower case.
Is there any way I can apply a filter where case is ignored ?