maropu commented on a change in pull request #29983:
URL: https://github.com/apache/spark/pull/29983#discussion_r502376968
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -2775,6 +2775,16 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val LEGACY_CENTRAL_MOMENT_AGG_BEHAVIOR =
+ buildConf("spark.sql.legacy.centralMomentAgg.enabled")
+ .internal()
+ .doc("When set to true, stddev_samp and var_samp will return Double.NaN,
" +
+ "if applied to a set with a single element. Otherwise, will return
0.0, " +
+ "which is aligned with TPCDS standard.")
Review comment:
I think we don't need to describe `which is aligned with TPCDS
standard.` here for user documents.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]