cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Spark SQL query won't allow limiter

jcastelo
New Contributor

When I try to run a simple limit number of rows in Spark using a pushdown query,  I receive an error back from spark with a where clause of 1= 0.  Meaning it won't return the results and the original sql query was appended by spark.

This seems very odd that spark won't allow a "SELECT TOP 100 * From Table" or "SELECT * FROM Table Limit 100"  both of these queries return nothing.  It appears spark wants me to bring in the 10 M records then limit them in the data frame.  This is crazy and very taxing on the DB. 

 

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group