bhollis-dbx commented on code in PR #59283:
URL: https://github.com/apache/spark/pull/59283#discussion_r4262332643
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/package.scala:
##########
@@ -90,6 +90,9 @@ package object util extends Logging {
private def usePrettyExpression(
e: Expression,
shouldTrimTempResolvedColumn: Boolean = false): Expression = e transform
{
+ case u: UpdateFields if
u.fieldOps.exists(_.isInstanceOf[UpdateNestedField]) =>
+ PrettyAttribute(
+ u.sqlString(toPrettySQL(_, shouldTrimTempResolvedColumn), identity),
u.dataType)
Review Comment:
Fixed in 719f8ac53. Error rendering now checks the update’s input types
before reading its data type. Added regressions for withField/dropFields on
non-struct inputs and deeper paths through non-struct intermediate fields,
checking the classified analysis error and query context.
--
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]