HyukjinKwon commented on a change in pull request #35735:
URL: https://github.com/apache/spark/pull/35735#discussion_r825535955
##########
File path: docs/sql-migration-guide.md
##########
@@ -24,6 +24,8 @@ license: |
## Upgrading from Spark SQL 3.2 to 3.3
+ - Since Spark 3.3, the `histogram_numeric` function in Spark SQL returns an
output type of an array of structs (x, y), where the type of the 'x' field in
the return value is propagated from the input values consumed in the aggregate
function. In Spark 3.2 or earlier, 'x' always had double type. Optionally, use
the configuration SQLConf.spark.sql.legacy.histogramNumericPropagateInputType
since Spark 3.3 to revert back to the previous behavior.
Review comment:
```suggestion
- Since Spark 3.3, the `histogram_numeric` function in Spark SQL returns
an output type of an array of structs (x, y), where the type of the 'x' field
in the return value is propagated from the input values consumed in the
aggregate function. In Spark 3.2 or earlier, 'x' always had double type.
Optionally, use the configuration
`spark.sql.legacy.histogramNumericPropagateInputType` since Spark 3.3 to revert
back to the previous behavior.
```
--
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]