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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now