Github user MaxGekk commented on a diff in the pull request:
https://github.com/apache/spark/pull/22316#discussion_r217476618
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/RelationalGroupedDataset.scala ---
@@ -416,7 +426,7 @@ class RelationalGroupedDataset protected[sql](
new RelationalGroupedDataset(
df,
groupingExprs,
- RelationalGroupedDataset.PivotType(pivotColumn.expr,
values.map(Literal.apply)))
+ RelationalGroupedDataset.PivotType(pivotColumn.expr,
values.map(lit(_).expr)))
--- End diff --
> Looks at least there's one case of a potential behaviour change about
scale and precision.
Could you explain, please. Why do you expect some behavior change?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]