Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/13471#discussion_r65613435
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LocalRelation.scala
---
@@ -57,7 +57,13 @@ case class LocalRelation(output: Seq[Attribute], data:
Seq[InternalRow] = Nil)
LocalRelation(output.map(_.newInstance()),
data).asInstanceOf[this.type]
}
- override protected def stringArgs = Iterator(output)
+ override protected def stringArgs: Iterator[Any] = {
+ if (data.isEmpty) {
+ Iterator("Empty", output)
--- End diff --
Good point... How about just "<empty>"? Both "Empty" and "EmptyRelation"
look like some class name, while "<empty>" reads more like an annotation. (This
is pretty subjective though.)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]