From 95ac13d8d8f8a76ad485bd9fd4f223d1c0128792 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 25 Sep 2023 11:29:24 +0200 Subject: [PATCH] Fix scala style --- .../plans/logical/basicLogicalOperators.scala | 3 +- .../scala/org/apache/spark/sql/Dataset.scala | 28 +++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala index af30d59efb5ba..e4316ae645255 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala @@ -1985,7 +1985,8 @@ case class CollectMetrics( copy(child = newChild) } -case class ShowMetrics(label: Option[String], metricsIds: Seq[Long], child: LogicalPlan) extends UnaryNode { +case class ShowMetrics(label: Option[String], metricsIds: Seq[Long], child: LogicalPlan) + extends UnaryNode { override def output: Seq[Attribute] = child.output override protected def withNewChildInternal(newChild: LogicalPlan): ShowMetrics = diff --git a/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala b/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala index 93c0fcebd5c6c..dabeaca5a6f64 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala @@ -2262,13 +2262,13 @@ class Dataset[T] private[sql]( * * The query plan in the Spark UI then contains this node: * - * ↓ - * ╔═════════════╗ - * ║ShowMetrics ║ - * ║ ║ - * ║ sum: 45 ║ - * ╚══════╤══════╝ - * ↓ + * | + * +======+======+ + * |ShowMetrics | + * | | + * | sum: 45 | + * +======+======+ + * | * * * @group typedrel @@ -2292,13 +2292,13 @@ class Dataset[T] private[sql]( * * The query plan in the Spark UI then contains this node: * - * ↓ - * ╔═════════════╗ - * ║My metrics ║ - * ║ ║ - * ║ sum: 45 ║ - * ╚══════╤══════╝ - * ↓ + * | + * +======+======+ + * |My metrics | + * | | + * | sum: 45 | + * +======+======+ + * | * * * @group typedrel