viirya commented on pull request #32448: URL: https://github.com/apache/spark/pull/32448#issuecomment-844334849
> It had something to do with `sortStructFieldsInWithFields`. Changing the order of the fields in a `CreateNamedStruct` corrupted the parent or children expressions in the tree. If you change the `transformUp` to `transformDown`, you get the schemas correctly resolve but they actually have the wrong value in the field (i.e. the value of a.aa is actually in column b.ba). But I can't say I fully understand it Yea, yesterday I also found it was happened during `sortStructFieldsInWithFields` after some debugging. Still need some time to look what's going wrong with it. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
