<?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 create flow for streaming table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-flow-for-streaming-table/m-p/119158#M45808</link>
    <description>&lt;P&gt;Hi Team.&lt;BR /&gt;I'm following the example code to create flows, which is &lt;A href="https://docs.databricks.com/aws/en/dlt-ref/dlt-sql-ref-create-flow" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;When I create the streaming table without a query (see code below):&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt;&lt;SPAN class=""&gt; REFRESH STREAMING &lt;/SPAN&gt;&lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt;&lt;SPAN class=""&gt; target_table&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I get the error "&lt;SPAN&gt;The operation CREATE WITHOUT A QUERY is not allowed: The operation is not supported on Streaming Tables.&lt;/SPAN&gt;".&lt;BR /&gt;&lt;BR /&gt;Does anyone know what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 10:49:54 GMT</pubDate>
    <dc:creator>bigger_dave</dc:creator>
    <dc:date>2025-05-14T10:49:54Z</dc:date>
    <item>
      <title>create flow for streaming table</title>
      <link>https://community.databricks.com/t5/data-engineering/create-flow-for-streaming-table/m-p/119158#M45808</link>
      <description>&lt;P&gt;Hi Team.&lt;BR /&gt;I'm following the example code to create flows, which is &lt;A href="https://docs.databricks.com/aws/en/dlt-ref/dlt-sql-ref-create-flow" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;When I create the streaming table without a query (see code below):&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt;&lt;SPAN class=""&gt; REFRESH STREAMING &lt;/SPAN&gt;&lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt;&lt;SPAN class=""&gt; target_table&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I get the error "&lt;SPAN&gt;The operation CREATE WITHOUT A QUERY is not allowed: The operation is not supported on Streaming Tables.&lt;/SPAN&gt;".&lt;BR /&gt;&lt;BR /&gt;Does anyone know what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 10:49:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-flow-for-streaming-table/m-p/119158#M45808</guid>
      <dc:creator>bigger_dave</dc:creator>
      <dc:date>2025-05-14T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: create flow for streaming table</title>
      <link>https://community.databricks.com/t5/data-engineering/create-flow-for-streaming-table/m-p/119188#M45815</link>
      <description>&lt;DIV class="paragraph"&gt;The error "The operation CREATE WITHOUT A QUERY is not allowed: The operation is not supported on Streaming Tables" occurs because the &lt;CODE&gt;CREATE OR REFRESH STREAMING TABLE&lt;/CODE&gt; statement requires a query to define the data source for the streaming table. Streaming tables necessitate a query that specifies how their data is populated, rather than being created without a query specification.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Here are the key points related to this issue:&lt;/DIV&gt;
&lt;OL start="1"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;Streaming tables are designed for handling incremental or streaming data processing. The &lt;CODE&gt;CREATE STREAMING TABLE&lt;/CODE&gt; command must include an &lt;CODE&gt;AS query&lt;/CODE&gt; clause that provides a streaming query to process and populate the table. Omitting the query is not supported.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;The &lt;CODE&gt;CREATE OR REFRESH STREAMING TABLE&lt;/CODE&gt; statement is valid for refreshing existing streaming tables with new data from the defined query, but still requires the query to be specified during creation.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;For initialization, examples of valid syntax include: &lt;CODE&gt;sql
CREATE OR REFRESH STREAMING TABLE example_table AS SELECT * FROM STREAM read_files('&amp;lt;path_to_file&amp;gt;', '&amp;lt;options&amp;gt;');
&lt;/CODE&gt; This type of statement specifies the data source and streaming query configuration.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;If you simply want to refresh an existing table, use the &lt;CODE&gt;REFRESH STREAMING TABLE &amp;lt;table_name&amp;gt;&lt;/CODE&gt; command or explicitly define it with a query for a full refresh.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;You need to revise your statement to include a streaming query when creating the table. Let me know if you'd like help constructing it!&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;DLT uses a simple declaritive language when using SQL. In short, it is essentially a CTAS statement like you would use in SQL.&amp;nbsp; &amp;nbsp;Check out our &lt;A href="https://docs.databricks.com/gcp/en/getting-started/data-pipeline-get-started" target="_self"&gt;documenation&lt;/A&gt;.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps.&amp;nbsp; Lou.&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 May 2025 13:56:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-flow-for-streaming-table/m-p/119188#M45815</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-14T13:56:57Z</dc:date>
    </item>
  </channel>
</rss>

