vranes commented on code in PR #58660:
URL: https://github.com/apache/spark/pull/58660#discussion_r3977467773
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala:
##########
@@ -1876,12 +1876,60 @@ case class BinBy(
override def producedAttributes: AttributeSet =
AttributeSet(scaledDistributeColumns ++ appendedAttributes)
+ override protected def stringArgs: Iterator[Any] = {
+ BinBy.explainStringArgs(
+ rangeStart = rangeStart,
+ rangeEnd = rangeEnd,
+ binWidthMicros = binWidthMicros,
+ originMicros = originMicros,
+ distributeColumns = distributeColumns,
+ scaledDistributeColumns = scaledDistributeColumns,
+ appendedAttributes = appendedAttributes,
+ timeZoneId = timeZoneId)
+ }
+
final override val nodePatterns: Seq[TreePattern] = Seq(BIN_BY)
override protected def withNewChildInternal(newChild: LogicalPlan): BinBy =
copy(child = newChild)
}
+object BinBy {
+
+ /**
+ * Builds the `stringArgs` for EXPLAIN. LTZ formats `alignTo` in the
captured zone and appends
+ * `zone=`; NTZ formats in UTC and omits it.
+ */
+ def explainStringArgs(
Review Comment:
Switched to private[sql], thanks!
--
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]