cloud-fan commented on code in PR #36094:
URL: https://github.com/apache/spark/pull/36094#discussion_r855730647
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala:
##########
@@ -157,6 +158,10 @@ trait CheckAnalysis extends PredicateHelper with
LookupCatalog {
case _: ShowTableExtended =>
throw QueryCompilationErrors.commandUnsupportedInV2TableError("SHOW
TABLE EXTENDED")
+ case operator: LogicalPlan
+ if !Utils.isTesting &&
operator.output.exists(_.dataType.isInstanceOf[TimestampNTZType]) =>
Review Comment:
Ah, a requirement is we should call `dataType` only on resolved attributes,
so the check should be
```
operator.output.exists(attr => attr.resolved &&
attr.dataType.isInstanceOf[TimestampNTZType])
```
--
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]