cloud-fan commented on code in PR #48881:
URL: https://github.com/apache/spark/pull/48881#discussion_r1847562290
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala:
##########
@@ -530,16 +534,12 @@ object TableOutputResolver extends SQLConfHelper with
Logging {
} else {
tableAttr.dataType
}
- lazy val outputField = if (isCompatible(tableAttr, queryExpr)) {
- if (requiresNullChecks(queryExpr, tableAttr, conf)) {
- val assert = AssertNotNull(queryExpr, colPath)
- Some(Alias(assert, tableAttr.name)(explicitMetadata =
Some(tableAttr.metadata)))
- } else {
- Some(queryExpr)
- }
Review Comment:
I misunderstood the code, I restored it now.
--
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]