Skip to content

Commit 7ed8ef7

Browse files
committed
Fix style
1 parent ba6411a commit 7ed8ef7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveQlSuite.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll {
211211

212212
test("use backticks in output of Generator") {
213213
val plan = parser.parsePlan(
214-
"""SELECT `gentab2`.`gencol2`
214+
"""
215+
|SELECT `gentab2`.`gencol2`
215216
|FROM `default`.`src`
216217
|LATERAL VIEW explode(array(array(1, 2, 3))) `gentab1` AS `gencol1`
217218
|LATERAL VIEW explode(`gentab1`.`gencol1`) `gentab2` AS `gencol2`
@@ -220,9 +221,10 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll {
220221

221222
test("use escaped backticks in output of Generator") {
222223
val plan = parser.parsePlan(
223-
"""SELECT `gen``tab2`.`gen``col2`
224+
"""
225+
|SELECT `gen``tab2`.`gen``col2`
224226
|FROM `default`.`src`
225-
|LATERAL VIEW explode(array(array(1, 2, 3))) `gen``tab1` AS `gen``col1`
227+
|LATERAL VIEW explode(array(array(1, 2, 3))) `gen``tab1` AS `gen``col1`
226228
|LATERAL VIEW explode(`gen``tab1`.`gen``col1`) `gen``tab2` AS `gen``col2`
227229
""".stripMargin)
228230
}

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
265265

266266
checkAnswer(
267267
sql(
268-
"""SELECT `weird``tab`.`weird``col`
269-
|FROM nestedArray LATERAL VIEW explode(a.b) `weird``tab` AS `weird``col`
268+
"""
269+
|SELECT `weird``tab`.`weird``col`
270+
|FROM nestedArray
271+
|LATERAL VIEW explode(a.b) `weird``tab` AS `weird``col`
270272
""".stripMargin),
271273
Row(1) :: Row(2) :: Row(3) :: Nil)
272274
}

0 commit comments

Comments
 (0)