<?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 Re: Data discrepancy between lakehouse view and SQL endpoint view in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4710082#M9697</link>
    <description>&lt;P&gt;OK, here the (not a) solution.&lt;BR /&gt;I opened a ticket to Microsoft for this.&lt;BR /&gt;It seems to be a known issue that is already in progress for a fix.&lt;BR /&gt;This issue only affects the cell value rendering in the Fabric UI and not the actual content of the cell.&lt;BR /&gt;Affected datatypes are "Date" and "Timestamp".&lt;/P&gt;&lt;P&gt;Looking forward for a fix.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 07:56:07 GMT</pubDate>
    <dc:creator>_maclura_</dc:creator>
    <dc:date>2025-05-28T07:56:07Z</dc:date>
    <item>
      <title>Data discrepancy between lakehouse view and SQL endpoint view</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4704575#M9524</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a delta table in a lakehouse. This table contains several Date columns.&lt;/P&gt;&lt;P&gt;If I preview the table content from the lakehouse, this is what I see for some Date columns&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_maclura__0-1747980418892.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1270673i373549A47494A62C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_maclura__0-1747980418892.png" alt="_maclura__0-1747980418892.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I preview the same table content from the lakehouse SQL analytics endpoint, this is what I see for exactly the same Date columns and rows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_maclura__1-1747980586785.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1270675iC45C6D5EFAE0F19F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_maclura__1-1747980586785.png" alt="_maclura__1-1747980586785.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 06:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4704575#M9524</guid>
      <dc:creator>_maclura_</dc:creator>
      <dc:date>2025-05-23T06:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data discrepancy between lakehouse view and SQL endpoint view</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4705575#M9551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/851023"&gt;@_maclura_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reproduced your scenario and understood that in many Spark and Delta Lake environments, DateType columns are internally stored as dates (without time), but when displayed, especially in some UIs or query outputs, they often show with a timestamp part like 00:00:00 or sometimes an offset (e.g., 01:00:00). This is a formatting artifact and does not mean the time is actually stored or used the data itself represents date only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to display dates without the time portion explicitly, the recommended approach is to convert the DateType column to a formatted string. you can use below code for conversion :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from pyspark.sql.functions import date_format&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;withColumn&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"MPSDate_Str"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;date_format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"MPSDate"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"yyyy-MM-dd"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P data-start="856" data-end="962"&gt;This string column will show just the date&lt;SPAN&gt;&amp;nbsp;consistently both in Spark notebooks and SQL queries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;&lt;SPAN&gt;Accepting as solution&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;SPAN&gt;"Kudos"&lt;/SPAN&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 19:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4705575#M9551</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-23T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data discrepancy between lakehouse view and SQL endpoint view</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4708496#M9645</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/851023"&gt;@_maclura_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if the provided solution helped in resolving the issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 08:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4708496#M9645</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-27T08:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data discrepancy between lakehouse view and SQL endpoint view</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4708712#M9662</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249529"&gt;@v-sathmakuri&lt;/a&gt; for taking the time to dig into this issue.&lt;BR /&gt;Unfortunately your suggested workaround is not an option for my needs: I need a "date" datatype and not a string.&lt;BR /&gt;By the way, I also noticed that in all other deltatables where I have a "Timestamp" datatype column, all the values are truncated in the datalake preview, and all you see is the portion hh:mm:ss.&lt;BR /&gt;My point is: if I have an "Apple" datatype, I should see an "Apple" whatever is the point of view I look at it. And not seeing an "Apple" from one point of view and an "Orange" from another. Right?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 09:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4708712#M9662</guid>
      <dc:creator>_maclura_</dc:creator>
      <dc:date>2025-05-27T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data discrepancy between lakehouse view and SQL endpoint view</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4710082#M9697</link>
      <description>&lt;P&gt;OK, here the (not a) solution.&lt;BR /&gt;I opened a ticket to Microsoft for this.&lt;BR /&gt;It seems to be a known issue that is already in progress for a fix.&lt;BR /&gt;This issue only affects the cell value rendering in the Fabric UI and not the actual content of the cell.&lt;BR /&gt;Affected datatypes are "Date" and "Timestamp".&lt;/P&gt;&lt;P&gt;Looking forward for a fix.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 07:56:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Data-discrepancy-between-lakehouse-view-and-SQL-endpoint-view/m-p/4710082#M9697</guid>
      <dc:creator>_maclura_</dc:creator>
      <dc:date>2025-05-28T07:56:07Z</dc:date>
    </item>
  </channel>
</rss>

