Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/16677#discussion_r204221009
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
@@ -204,6 +204,13 @@ object SQLConf {
.intConf
.createWithDefault(4)
+ val LIMIT_FLAT_GLOBAL_LIMIT =
buildConf("spark.sql.limit.flatGlobalLimit")
+ .internal()
+ .doc("During global limit, try to evenly distribute limited rows
across data " +
+ "partitions. If disabled, scanning data partitions sequentially
until reaching limit number.")
+ .booleanConf
+ .createWithDefault(true)
--- End diff --
@hvanhovell Should we set it false by default?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]