<?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 Reading bigquery data using a query in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/reading-bigquery-data-using-a-query/m-p/41124#M27297</link>
    <description>&lt;P&gt;To read Bigquery data using spark.read, i'm using a query. This query executes and creates a table on the materializationDataset.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;df = spark.read.format("bigquery") \&lt;BR /&gt;.option("query", query) \&lt;BR /&gt;.option("materializationProject", materializationProject) \&lt;BR /&gt;.option("materializationExpirationTimeInMinutes", materializationExpirationTimeInMinutes) \&lt;BR /&gt;.option("materializationDataset", materializationDataset) \&lt;BR /&gt;.load()&lt;BR /&gt;df.write.mode("overwrite").format("delta").saveAsTable(deltaTableName)&lt;/PRE&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="https://docs.gcp.databricks.com/external-data/bigquery.html" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; on databricks says, the spark.read will create a Materialized View, however i see a table. Is the documentation accurate? Or is there a way to select if spark can create a table or a materialized view?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 09:59:30 GMT</pubDate>
    <dc:creator>naga_databricks</dc:creator>
    <dc:date>2023-08-23T09:59:30Z</dc:date>
    <item>
      <title>Reading bigquery data using a query</title>
      <link>https://community.databricks.com/t5/data-engineering/reading-bigquery-data-using-a-query/m-p/41124#M27297</link>
      <description>&lt;P&gt;To read Bigquery data using spark.read, i'm using a query. This query executes and creates a table on the materializationDataset.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;df = spark.read.format("bigquery") \&lt;BR /&gt;.option("query", query) \&lt;BR /&gt;.option("materializationProject", materializationProject) \&lt;BR /&gt;.option("materializationExpirationTimeInMinutes", materializationExpirationTimeInMinutes) \&lt;BR /&gt;.option("materializationDataset", materializationDataset) \&lt;BR /&gt;.load()&lt;BR /&gt;df.write.mode("overwrite").format("delta").saveAsTable(deltaTableName)&lt;/PRE&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="https://docs.gcp.databricks.com/external-data/bigquery.html" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; on databricks says, the spark.read will create a Materialized View, however i see a table. Is the documentation accurate? Or is there a way to select if spark can create a table or a materialized view?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 09:59:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reading-bigquery-data-using-a-query/m-p/41124#M27297</guid>
      <dc:creator>naga_databricks</dc:creator>
      <dc:date>2023-08-23T09:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading bigquery data using a query</title>
      <link>https://community.databricks.com/t5/data-engineering/reading-bigquery-data-using-a-query/m-p/41518#M27367</link>
      <description>&lt;P&gt;Thanks Kaniz for the explanation. It sounds good to me that i'm working with tables here.&lt;/P&gt;&lt;P&gt;For me the only cause of confusion was the underlined writing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naga_databricks_1-1692970117627.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3262iDD4A3EBBD7CE5AEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="naga_databricks_1-1692970117627.png" alt="naga_databricks_1-1692970117627.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 13:30:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reading-bigquery-data-using-a-query/m-p/41518#M27367</guid>
      <dc:creator>naga_databricks</dc:creator>
      <dc:date>2023-08-25T13:30:56Z</dc:date>
    </item>
  </channel>
</rss>

