spark is case sensitive?
Spark is not case sensitive by default. If you have same column name in different case (Name, name), if you try to select either "Name" or "name" column you will get column ambiguity error.
There is a way to handle this issue by adding spark config , using a SparkSession object named spark:
spark.conf.set('spark.sql.caseSensitive', True)
By default it is False.