<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Spark SQL Query errors - Case Sensitivity issues in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534244#M1342</link>
    <description>&lt;P&gt;All of a sudden as of almost 2 weeks ago our spark sql notebooks have been failing due to case sensitivity in the table and field names.&amp;nbsp; This has always worked fine in Synapse before, so I'm not sure if Fabric configs were changed or not.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm getting errors like&amp;nbsp;&lt;SPAN&gt;&lt;FONT color="#FFFF00"&gt;T&lt;FONT color="#000000"&gt;able or view not found: &lt;STRONG&gt;customers&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;,&lt;/FONT&gt; when I'm running a spark sql query on the customers table&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;j = spark.read.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).load(f&lt;/SPAN&gt;&lt;SPAN&gt;"Files/{storage_account}/silver/Customers/"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;j.createOrReplaceTempView(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;STRONG&gt;Customers&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df=spark.sql(""" SELECT * FROM &lt;STRONG&gt;customers&lt;/STRONG&gt; """)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The table name is lower case &lt;STRONG&gt;customers &lt;/STRONG&gt;in my spark sql query and the view name is Camelcase&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;but this query works perfectly fine in Synapse spark sql.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm also getting the same error on different case field names.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure what I'm missing here as it has worked fine before in Fabric.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Nov 2023 03:07:52 GMT</pubDate>
    <dc:creator>12angrymentiger</dc:creator>
    <dc:date>2023-11-15T03:07:52Z</dc:date>
    <item>
      <title>Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534244#M1342</link>
      <description>&lt;P&gt;All of a sudden as of almost 2 weeks ago our spark sql notebooks have been failing due to case sensitivity in the table and field names.&amp;nbsp; This has always worked fine in Synapse before, so I'm not sure if Fabric configs were changed or not.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm getting errors like&amp;nbsp;&lt;SPAN&gt;&lt;FONT color="#FFFF00"&gt;T&lt;FONT color="#000000"&gt;able or view not found: &lt;STRONG&gt;customers&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;,&lt;/FONT&gt; when I'm running a spark sql query on the customers table&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;j = spark.read.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"delta"&lt;/SPAN&gt;&lt;SPAN&gt;).load(f&lt;/SPAN&gt;&lt;SPAN&gt;"Files/{storage_account}/silver/Customers/"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;j.createOrReplaceTempView(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;STRONG&gt;Customers&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df=spark.sql(""" SELECT * FROM &lt;STRONG&gt;customers&lt;/STRONG&gt; """)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The table name is lower case &lt;STRONG&gt;customers &lt;/STRONG&gt;in my spark sql query and the view name is Camelcase&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;but this query works perfectly fine in Synapse spark sql.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm also getting the same error on different case field names.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure what I'm missing here as it has worked fine before in Fabric.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Nov 2023 03:07:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534244#M1342</guid>
      <dc:creator>12angrymentiger</dc:creator>
      <dc:date>2023-11-15T03:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534247#M1343</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp; I wanted to check with you regarding this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please let me know if you have heard of any fixes for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 03:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534247#M1343</guid>
      <dc:creator>12angrymentiger</dc:creator>
      <dc:date>2023-11-15T03:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534453#M1344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/641067"&gt;@12angrymentiger&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community. Apologies for the issue you have been facing.&lt;BR /&gt;Can you please confirm which Spark Version are you using?&amp;nbsp;&lt;BR /&gt;I have confirmed from the internal team that there were no changes done to the case sensitivity. Did you set any spark configurations? If yes can you please give the details about it.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 06:34:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534453#M1344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T06:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534729#M1345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/641067"&gt;@12angrymentiger&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I tried to repro the scenario, but did not get any error. I have attached the screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_1-1700039523778.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/997222i1A6EF08409CD926F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_1-1700039523778.png" alt="vnikhilanmsft_1-1700039523778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to check the Spark version which you ar using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_2-1700039588419.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/997224i4DDB02AFB03D495B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_2-1700039588419.png" alt="vnikhilanmsft_2-1700039588419.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you use the Spark 1.2 version.&amp;nbsp;&lt;BR /&gt;Hope this helps. Please let me know if you have any further queries.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 09:14:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3534729#M1345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535024#M1346</link>
      <description>&lt;P&gt;By the way this is still in My Workspace and under the Fabric Trial, but I did change the workspace to use Runtime 1.2 and I'm still getting the error table or view not found.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 12:21:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535024#M1346</guid>
      <dc:creator>12angrymentiger</dc:creator>
      <dc:date>2023-11-15T12:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535760#M1348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/641067"&gt;@12angrymentiger&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apologies for the issue you have been facing.&amp;nbsp;At this time, we are reaching out to the internal team to get some help on this. We will update you once we hear back from them.&lt;BR /&gt;&lt;BR /&gt;A simple workaround to fix this issue is to run the below piece of code before executing the main code.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;spark.conf.set('spark.sql.caseSensitive', False)&lt;/LI-CODE&gt;
&lt;P&gt;Hope this helps. Please let me know if you have any further questions. Glad to help.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:51:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535760#M1348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535762#M1349</link>
      <description>&lt;P&gt;We figured out when you call another notebook and start using spark sql further down in the main notebook the spark sql caseSensitive is True.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have moved this code to run after the 2nd notebook call to make sure the main notebook&amp;nbsp; spark sql is caseInsensitive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;spark.conf.set('spark.sql.caseSensitive', False)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:56:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3535762#M1349</guid>
      <dc:creator>12angrymentiger</dc:creator>
      <dc:date>2023-11-15T19:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spark SQL Query errors - Case Sensitivity issues</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3850493#M1350</link>
      <description>&lt;P&gt;Hi. I am experiencing a similar issue when running an SQL query in an SQL endpoint on some tables I have in a lakehouse within Microsoft Fabric. to my knowledge SQL isnt a case sensetive languaje so not sure why im having issues on the Fabric endpoint yet my queries run fine on apps such as SSMS.&lt;BR /&gt;&lt;BR /&gt;Can anyone help??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql case sensetive issue apr24.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1081654iBE7166A064FED1C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sql case sensetive issue apr24.PNG" alt="sql case sensetive issue apr24.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 15:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-SQL-Query-errors-Case-Sensitivity-issues/m-p/3850493#M1350</guid>
      <dc:creator>Leachyboy_007</dc:creator>
      <dc:date>2024-04-18T15:16:19Z</dc:date>
    </item>
  </channel>
</rss>

