Skip to content

Commit 4167bf1

Browse files
committed
Fix lint
1 parent b48982e commit 4167bf1

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/RewriteTimeCastToTimestampNTZSuite.scala

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
117

218
package org.apache.spark.sql.catalyst.optimizer
319

@@ -7,7 +23,7 @@ import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, OneRowRelation,
723
import org.apache.spark.sql.catalyst.rules.RuleExecutor
824
import org.apache.spark.sql.types.{TimestampNTZType, TimeType}
925

10-
class RewriteTimeCastToTimestampNTZSuite extends PlanTest{
26+
class RewriteTimeCastToTimestampNTZSuite extends PlanTest {
1127

1228
object Optimizer extends RuleExecutor[LogicalPlan] {
1329
val batches =
@@ -20,8 +36,8 @@ class RewriteTimeCastToTimestampNTZSuite extends PlanTest{
2036
val plan = Project(Seq(Alias(castExpr, "ts")()), OneRowRelation())
2137

2238
val optimized = Optimizer.execute(plan)
23-
val expected = Project(Seq(Alias(MakeTimestampNTZ(CurrentDate(), timeLiteral), "ts")()),
24-
OneRowRelation())
39+
val expected =
40+
Project(Seq(Alias(MakeTimestampNTZ(CurrentDate(), timeLiteral), "ts")()), OneRowRelation())
2541
comparePlans(optimized, expected)
2642
}
2743
}

0 commit comments

Comments
 (0)