<?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 Querying lakehouse files from warehouse in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4034817#M4498</link>
    <description>&lt;P&gt;I want to create views in my fabric warehouse that are sources from lakehouse files (parquet/json)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do soemthing similar to this but not sure exactly how to write query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;A href="https://onelake....URL" target="_blank"&gt;https://onelake....URL&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WITH&lt;/SPAN&gt;&lt;SPAN&gt; (FILE_TYPE = &lt;/SPAN&gt;&lt;SPAN&gt;'PARQUET'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 Jul 2024 13:53:33 GMT</pubDate>
    <dc:creator>joakimfenno</dc:creator>
    <dc:date>2024-07-10T13:53:33Z</dc:date>
    <item>
      <title>Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4034817#M4498</link>
      <description>&lt;P&gt;I want to create views in my fabric warehouse that are sources from lakehouse files (parquet/json)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do soemthing similar to this but not sure exactly how to write query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;A href="https://onelake....URL" target="_blank"&gt;https://onelake....URL&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WITH&lt;/SPAN&gt;&lt;SPAN&gt; (FILE_TYPE = &lt;/SPAN&gt;&lt;SPAN&gt;'PARQUET'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jul 2024 13:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4034817#M4498</guid>
      <dc:creator>joakimfenno</dc:creator>
      <dc:date>2024-07-10T13:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036043#M4511</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="466155" data-lia-user-login="joakimfenno" class="lia-mention lia-mention-user"&gt;joakimfenno&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a view from a lakehouse file (Parquet/JSON) in the Fabric repository, you can follow these steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Confirm the file location. Make sure you have the URL for the Parquet or JSON file. For example, &lt;A href="https://onelake" target="_blank"&gt;https://onelake&lt;/A&gt;.... URL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connect to the Fabric warehouse. Connect to the Fabric repository using your database client or SQL tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write SQL queries. Write SQL queries based on the file type to create the view. For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/query-warehouse" target="_blank"&gt;Query the SQL analytics endpoint or Warehouse - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/create-reports" target="_blank"&gt;Create reports - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 03:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036043#M4511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-11T03:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036221#M4514</link>
      <description>&lt;P&gt;thank you but those link does not provide any information about how to query lakehouse files from the SQL endpoint&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 05:38:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036221#M4514</guid>
      <dc:creator>joakimfenno</dc:creator>
      <dc:date>2024-07-11T05:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036365#M4516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="466155" data-lia-user-login="joakimfenno" class="lia-mention lia-mention-user"&gt;joakimfenno&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have misunderstood your question. Please allow me to answer your question again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The document states:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-overview#lakehouse-sql-analytics-endpoint" href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-overview#lakehouse-sql-analytics-endpoint" target="_blank" rel="noreferrer noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-overview#lakehouse-sql-analytics-endpoint&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-sql-analytics-endpoint" target="_blank"&gt;What is the SQL analytics endpoint for a lakehouse? - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saving data in the Lakehouse using capabilities such as Load to Tables or methods described in Options to get data into the Fabric Lakehouse, all data is saved in Delta format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-and-delta-tables" target="_blank"&gt;Lakehouse and Delta tables - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write the SQL query as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE VIEW view_name AS
SELECT *
FROM tablename&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&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 06:30:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036365#M4516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-11T06:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036531#M4519</link>
      <description>&lt;P&gt;thanks!&lt;BR /&gt;It might be that I have to load the files to delta tables before processing it to the next layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could external tables be an option?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 07:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036531#M4519</guid>
      <dc:creator>joakimfenno</dc:creator>
      <dc:date>2024-07-11T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036582#M4520</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="466155" data-lia-user-login="joakimfenno" class="lia-mention lia-mention-user"&gt;joakimfenno&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try using an external table to load Parquet data into Lakehouse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the Spark API in your notebook to read Parquet files and load them into Lakehouse. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.read.parquet("location to read from") 

# Keep it if you want to save dataframe as Parquet files to Files section of the default lakehouse 

df.write.mode("overwrite").format("parquet").save("Files/" + parquet_table_name) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;SPAN&gt;You can view the link below for more details:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data" target="_blank" rel="noopener"&gt;Load data into your lakehouse with a notebook - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&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 08:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4036582#M4520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-11T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Querying lakehouse files from warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4043892#M4588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="466155" data-lia-user-login="joakimfenno" class="lia-mention lia-mention-user"&gt;joakimfenno&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Querying-lakehouse-files-from-warehouse/m-p/4043892#M4588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-16T08:22:54Z</dc:date>
    </item>
  </channel>
</rss>

