Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
aarongiust
Frequent Visitor

Dataflow retains case sensitivity but not anywhere else

I created a Lakehouse table using a dataflow and it retains the camel casing I used for the table and column names but if I try to do that myself in a notebook using a CREATE TABLE statement, it just makes it all lowercase. Why is that?

1 ACCEPTED SOLUTION
v-gchenna-msft
Community Support
Community Support

Hi @aarongiust , @govindarajan_d 

Spark is not case sensitive by default.

 

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.

Hope this is helpful. Please let me know incase of further queries.

View solution in original post

2 REPLIES 2
v-gchenna-msft
Community Support
Community Support

Hi @aarongiust , @govindarajan_d 

Spark is not case sensitive by default.

 

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.

Hope this is helpful. Please let me know incase of further queries.

govindarajan_d
Solution Supplier
Solution Supplier

Hi @aarongiust,

 

I tried it but it creates Sentence case for me:

govindarajan_d_0-1706770024847.png

 

Any other specific config that you are passing?

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

Top Kudoed Authors