<?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 Spark SQL query won't allow limiter in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/spark-sql-query-won-t-allow-limiter/m-p/36262#M290</link>
    <description>&lt;P&gt;When I try to run a simple limit number of rows in Spark using a pushdown query,&amp;nbsp; I receive an error back from spark with a where clause of 1= 0.&amp;nbsp; Meaning it won't return the results and the original sql query was appended by spark.&lt;/P&gt;&lt;P&gt;This seems very odd that spark won't allow a "SELECT TOP 100 * From Table" or "SELECT * FROM Table Limit 100"&amp;nbsp; both of these queries return nothing.&amp;nbsp; It appears spark wants me to bring in the 10 M records then limit them in the data frame.&amp;nbsp; This is crazy and very taxing on the DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 18:54:49 GMT</pubDate>
    <dc:creator>jcastelo</dc:creator>
    <dc:date>2023-06-29T18:54:49Z</dc:date>
    <item>
      <title>Spark SQL query won't allow limiter</title>
      <link>https://community.databricks.com/t5/get-started-discussions/spark-sql-query-won-t-allow-limiter/m-p/36262#M290</link>
      <description>&lt;P&gt;When I try to run a simple limit number of rows in Spark using a pushdown query,&amp;nbsp; I receive an error back from spark with a where clause of 1= 0.&amp;nbsp; Meaning it won't return the results and the original sql query was appended by spark.&lt;/P&gt;&lt;P&gt;This seems very odd that spark won't allow a "SELECT TOP 100 * From Table" or "SELECT * FROM Table Limit 100"&amp;nbsp; both of these queries return nothing.&amp;nbsp; It appears spark wants me to bring in the 10 M records then limit them in the data frame.&amp;nbsp; This is crazy and very taxing on the DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 18:54:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/spark-sql-query-won-t-allow-limiter/m-p/36262#M290</guid>
      <dc:creator>jcastelo</dc:creator>
      <dc:date>2023-06-29T18:54:49Z</dc:date>
    </item>
  </channel>
</rss>

