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 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!