alfozan commented on issue #25028: [SPARK-28227][SQL] Support TRANSFORM with aggregation. URL: https://github.com/apache/spark/pull/25028#issuecomment-547250946 Follow up - I think It's even better to always use a manual aliasing function and not just for a subset of expressions: ``` val aliasFunc = (position: Int, e: Expression) => s"gen_alias_${position}" val namedExpressions = expressions.zipWithIndex.map { case (e: NamedExpression, _) => e case (e: Expression, index) => UnresolvedAlias(e, Some(aliasFunc(index, _))) } ```
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
