<?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: pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11041#M6082</link>
    <description>&lt;P&gt;Please give us the whole code by that we can understand what exactly you are doing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can connect with me in my LinkedIN and we can setup meeting.My LinkedIn URL is in my profile&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2023 14:34:38 GMT</pubDate>
    <dc:creator>Aviral-Bhardwaj</dc:creator>
    <dc:date>2023-01-21T14:34:38Z</dc:date>
    <item>
      <title>pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets</title>
      <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11040#M6081</link>
      <description>&lt;P&gt;pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting this error while writing can any one please tell how we can resolve it&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 09:57:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11040#M6081</guid>
      <dc:creator>Gaurav_784295</dc:creator>
      <dc:date>2023-01-20T09:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets</title>
      <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11041#M6082</link>
      <description>&lt;P&gt;Please give us the whole code by that we can understand what exactly you are doing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can connect with me in my LinkedIN and we can setup meeting.My LinkedIn URL is in my profile&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 14:34:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11041#M6082</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2023-01-21T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets</title>
      <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11042#M6083</link>
      <description>&lt;P&gt;I'm trying to run query on some table and then storing that result in some table .&lt;/P&gt;&lt;P&gt;query = stream&lt;/P&gt;&lt;P&gt;    .writeStream &lt;/P&gt;&lt;P&gt;    .format("delta") &lt;/P&gt;&lt;P&gt;    .foreachBatch(batch_function) \&lt;/P&gt;&lt;P&gt;    .option('checkpointLocation', self.checkpoint_loc)&lt;/P&gt;&lt;P&gt;    .trigger(processingTime=self.trigger_interval)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in that query I'm first using union function and then using window function.  Their I'm facing this error &lt;B&gt;pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataFrames/Datasets&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 16:57:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/11042#M6083</guid>
      <dc:creator>Gaurav_784295</dc:creator>
      <dc:date>2023-01-21T16:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataF</title>
      <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/142721#M52015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/31807"&gt;@Gaurav_784295&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In Spark, In case of streaming, please use a time based column in window function. Because, In streaming we cant say "last 10 rows", "limit 10" etc. Because streaming never ends. So when you use window, please dont use columns like item_id or anything. Please make sure its event_time or any time based column.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 05:07:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/142721#M52015</guid>
      <dc:creator>preetmdata</dc:creator>
      <dc:date>2025-12-31T05:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark.sql.utils.AnalysisException: Non-time-based windows are not supported on streaming DataF</title>
      <link>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/142856#M52035</link>
      <description>&lt;DIV&gt;I share the same perspective as &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/125523"&gt;@preetmdata&lt;/a&gt;&amp;nbsp;on this&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jan 2026 15:06:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyspark-sql-utils-analysisexception-non-time-based-windows-are/m-p/142856#M52035</guid>
      <dc:creator>siva-anantha</dc:creator>
      <dc:date>2026-01-02T15:06:37Z</dc:date>
    </item>
  </channel>
</rss>

