Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipbiswal committed Mar 9, 2016
1 parent ba6411a commit 7ed8ef7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ class HiveQlSuite extends SparkFunSuite with BeforeAndAfterAll {

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

test("use escaped backticks in output of Generator") {
val plan = parser.parsePlan(
"""SELECT `gen``tab2`.`gen``col2`
"""
|SELECT `gen``tab2`.`gen``col2`
|FROM `default`.`src`
|LATERAL VIEW explode(array(array(1, 2, 3))) `gen``tab1` AS `gen``col1`
|LATERAL VIEW explode(array(array(1, 2, 3))) `gen``tab1` AS `gen``col1`
|LATERAL VIEW explode(`gen``tab1`.`gen``col1`) `gen``tab2` AS `gen``col2`
""".stripMargin)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {

checkAnswer(
sql(
"""SELECT `weird``tab`.`weird``col`
|FROM nestedArray LATERAL VIEW explode(a.b) `weird``tab` AS `weird``col`
"""
|SELECT `weird``tab`.`weird``col`
|FROM nestedArray
|LATERAL VIEW explode(a.b) `weird``tab` AS `weird``col`
""".stripMargin),
Row(1) :: Row(2) :: Row(3) :: Nil)
}
Expand Down

0 comments on commit 7ed8ef7

Please sign in to comment.