The option spark.sql.caseSensitive
controls whether column names etc should be case sensitive or not. It can be set e.g. by
spark_session.sql('set spark.sql.caseSensitive=true')
and is false
per default.
It does not seem to be possible to enable it globally in $SPARK_HOME/conf/spark-defaults.conf
with
spark.sql.caseSensitive: True
though.
Is that intended or is there some other file to set sql options?
Also in the source it is stated that it is highly discouraged to enable this at all. What is the rationale behind that advice?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…