HyukjinKwon commented on a change in pull request #35735:
URL: https://github.com/apache/spark/pull/35735#discussion_r821232236
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -3562,6 +3562,18 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val HISTOGRAM_NUMERIC_PROPAGATE_INPUT_TYPE =
+ buildConf("spark.sql.legacy.histogramNumericPropagateInputType")
+ .internal()
+ .doc("The histogram_numeric function computes a histogram on numeric
'expr' using nb bins. " +
+ "The return value is an array of (x,y) pairs representing the centers
of the histogram's " +
+ "bins. If this config is set to true, the output type of the 'x' field
in the return " +
+ "value is propagated from the input value consumed in the aggregate
function. Otherwise, " +
+ "'x' always has double type.")
+ .version("3.4.0")
+ .booleanConf
+ .createWithDefault(true)
Review comment:
If this gets enabled by default, let's note this in the migration guide.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]