File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll {
211
211
212
212
test(" use backticks in output of Generator" ) {
213
213
val plan = parser.parsePlan(
214
- """ SELECT `gentab2`.`gencol2`
214
+ """
215
+ |SELECT `gentab2`.`gencol2`
215
216
|FROM `default`.`src`
216
217
|LATERAL VIEW explode(array(array(1, 2, 3))) `gentab1` AS `gencol1`
217
218
|LATERAL VIEW explode(`gentab1`.`gencol1`) `gentab2` AS `gencol2`
@@ -220,9 +221,10 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll {
220
221
221
222
test(" use escaped backticks in output of Generator" ) {
222
223
val plan = parser.parsePlan(
223
- """ SELECT `gen``tab2`.`gen``col2`
224
+ """
225
+ |SELECT `gen``tab2`.`gen``col2`
224
226
|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`
226
228
|LATERAL VIEW explode(`gen``tab1`.`gen``col1`) `gen``tab2` AS `gen``col2`
227
229
""" .stripMargin)
228
230
}
Original file line number Diff line number Diff line change @@ -265,8 +265,10 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
265
265
266
266
checkAnswer(
267
267
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`
270
272
""" .stripMargin),
271
273
Row (1 ) :: Row (2 ) :: Row (3 ) :: Nil )
272
274
}
You can’t perform that action at this time.
0 commit comments