In Hive, if we call the limit clause it will give a faster response. Same thing if we run in Spark SQL it is taking more time. Could you please explain in depth?
In Hive
SELECT * FROM employee LIMIT 10;
In Spark SQL,
spark.sql("SELECT * FROM employee LIMIT 10").show()
How limit query will work for partitioned table?