<?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 Shortcut shows different data in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4037320#M2969</link>
    <description>&lt;P&gt;I have a shortcut in the silver lakehouse to a table in the bronze lakehouse.&lt;/P&gt;&lt;P&gt;However it seems like the data is not updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look at the SQL endpoint of the bronze lakehouse I get the below result for one specific example, which has the correct EndDate (2024-06-30)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SergioPerdiz_0-1720706523649.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130661i52BDF4EBD934AD75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SergioPerdiz_0-1720706523649.png" alt="SergioPerdiz_0-1720706523649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I use the shortcut in the silver lakehouse to the same table from the bronze lakehouse it shows a EndDate of (2024-07-30).&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="SergioPerdiz_1-1720706658244.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130662i7EAB37F972A39EE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SergioPerdiz_1-1720706658244.png" alt="SergioPerdiz_1-1720706658244.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;This post, &lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Datalake-shortcut-is-not-showing-the-same-data-i-e-row-count-as/td-p/3440375" target="_blank"&gt;Datalake shortcut is not showing the same data (i.... - Microsoft Fabric Community&lt;/A&gt;, seems to be the same issue, but there isn't a clear solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 14:07:01 GMT</pubDate>
    <dc:creator>SergioPerdiz</dc:creator>
    <dc:date>2024-07-11T14:07:01Z</dc:date>
    <item>
      <title>Shortcut shows different data</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4037320#M2969</link>
      <description>&lt;P&gt;I have a shortcut in the silver lakehouse to a table in the bronze lakehouse.&lt;/P&gt;&lt;P&gt;However it seems like the data is not updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look at the SQL endpoint of the bronze lakehouse I get the below result for one specific example, which has the correct EndDate (2024-06-30)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SergioPerdiz_0-1720706523649.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130661i52BDF4EBD934AD75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SergioPerdiz_0-1720706523649.png" alt="SergioPerdiz_0-1720706523649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I use the shortcut in the silver lakehouse to the same table from the bronze lakehouse it shows a EndDate of (2024-07-30).&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="SergioPerdiz_1-1720706658244.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1130662i7EAB37F972A39EE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SergioPerdiz_1-1720706658244.png" alt="SergioPerdiz_1-1720706658244.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;This post, &lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Datalake-shortcut-is-not-showing-the-same-data-i-e-row-count-as/td-p/3440375" target="_blank"&gt;Datalake shortcut is not showing the same data (i.... - Microsoft Fabric Community&lt;/A&gt;, seems to be the same issue, but there isn't a clear solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 14:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4037320#M2969</guid>
      <dc:creator>SergioPerdiz</dc:creator>
      <dc:date>2024-07-11T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut shows different data</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4038428#M2987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/555418"&gt;@SergioPerdiz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think this should be related to the setting which define the ‘data time zone’, by default datetime values will be stored with UTC format.&lt;/P&gt;
&lt;P&gt;For the first one , your SQL statement get the records from table. For the second one that run in notebook, you have set the time zone offset which may affect the datetime values.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 03:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4038428#M2987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-12T03:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut shows different data</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4038882#M2991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, that was indeed the issue!&lt;/P&gt;&lt;P&gt;Then I have another question how can I handle the following.&lt;/P&gt;&lt;P&gt;The notebook is executed around 01:00 AM GMT +2, which is 11:00 PM UTC, however for some calculations I use the below code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Get today's date 
today_date = current_date().cast("string")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that means that for last night's run it would return 2024/07/11, but it should be 2024/07/12.&lt;/P&gt;&lt;P&gt;A solution could be to change the code to the below, but I'm wondering if this would be the correct/best way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Get today's date 
today_date = (current_date() +1).cast("string")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 08:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4038882#M2991</guid>
      <dc:creator>SergioPerdiz</dc:creator>
      <dc:date>2024-07-12T08:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut shows different data</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4041846#M3023</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/555418"&gt;@SergioPerdiz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you had to calculate with specific time zone datetime, you can add a new column to the table to calculate with the offset between UTC and local time zone. Than you can use the new column to work as local datetime.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 07:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-shows-different-data/m-p/4041846#M3023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-15T07:02:33Z</dc:date>
    </item>
  </channel>
</rss>

