cloud-fan commented on PR #40206:
URL: https://github.com/apache/spark/pull/40206#issuecomment-1447605704
This is a good catch! I think the fix can be simpler: we encode the raw type
information in the root `StructField`, so we don't need to decode it
recursively. We can restore the raw type at the very beginning:
```
def resolveOutputColumns(
...,
expected: Seq[Attribute],
...) {
val actualExpectedCols = expected.map { attr =>
attr.withDataType(restore(attr.metadata))
}
}
```
--
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]