aokolnychyi commented on code in PR #55623:
URL: https://github.com/apache/spark/pull/55623#discussion_r3204103581
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -1124,8 +1123,17 @@ class Analyzer(
case other => i.copy(table = other)
}
- case write: StreamingV2WriteCommand =>
- resolveWriteTarget(write, write.table, write.withNewTable)
+ case write: V2StreamingWriteCommand =>
+ write.table match {
+ case ref: V2TableReference =>
+ relationResolution.resolveReference(ref) match {
+ case r: NamedRelation => write.withNewTable(r)
+ case other => throw SparkException.internalError(
Review Comment:
Is this guaranteed? What do we do in other places?
--
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]