viirya commented on code in PR #46953:
URL: https://github.com/apache/spark/pull/46953#discussion_r1636903164
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala:
##########
@@ -104,7 +104,20 @@ abstract class LogicalPlan
*/
lazy val resolved: Boolean = expressions.forall(_.resolved) &&
childrenResolved
- override protected def statePrefix = if (!resolved) "'" else
super.statePrefix
+ override protected def statePrefix = {
+ if (!resolved) {
+ "'"
+ } else {
+ val prefixFromSuper = super.statePrefix
+ // Ancestor class could mark something on the prefix, including
'invalid'. Add a marker for
+ // `streaming` only when there is no marker from ancestor class.
+ if (prefixFromSuper.isEmpty && isStreaming) {
+ "~"
Review Comment:
Should we append it instead of using `prefixFromSuper`?
--
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]