Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18843#discussion_r132148869
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
    @@ -844,24 +844,39 @@ object SQLConf {
           .stringConf
           .createWithDefaultFunction(() => TimeZone.getDefault.getID)
     
    +  val WINDOW_EXEC_BUFFER_IN_MEMORY_THRESHOLD =
    +    buildConf("spark.sql.windowExec.buffer.in.memory.threshold")
    +      .internal()
    +      .doc("Threshold for number of rows guaranteed to be held in memory 
by the window operator")
    +      .intConf
    +      .createWithDefault(4096)
    +
       val WINDOW_EXEC_BUFFER_SPILL_THRESHOLD =
         buildConf("spark.sql.windowExec.buffer.spill.threshold")
           .internal()
    -      .doc("Threshold for number of rows buffered in window operator")
    +      .doc("Threshold for number of rows to be spilled by window operator")
           .intConf
    -      .createWithDefault(4096)
    +      
.createWithDefault(UnsafeExternalSorter.DEFAULT_NUM_ELEMENTS_FOR_SPILL_THRESHOLD.toInt)
    +
    +  val SORT_MERGE_JOIN_EXEC_BUFFER_IN_MEMORY_THRESHOLD =
    +    buildConf("spark.sql.sortMergeJoinExec.buffer.in.memory.threshold")
    +      .internal()
    +      .doc("Threshold for number of rows guaranteed to be held in memory 
by the sort merge " +
    +        "join operator")
    +      .intConf
    +      .createWithDefault(Int.MaxValue)
    --- End diff --
    
    is this a reasonable default value? won't it lead to OOM according to the 
document?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to