Skip to content

Commit

Permalink
fixed "File line length exceeds 100 characters"
Browse files Browse the repository at this point in the history
  • Loading branch information
uzadude committed Nov 7, 2017
1 parent 76aa258 commit 7a9bc96
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ class PlanParserSuite extends AnalysisTest {
assertEqual(
"select * from t lateral view explode(x) expl as x",
table("t")
.generate(explode, join = true, outer = false, omitGeneratorChild = false, Some("expl"), Seq("x"))
.generate(explode, join = true, outer = false, omitGeneratorChild = false,
Some("expl"), Seq("x"))
.select(star()))

// Multiple lateral views
Expand All @@ -286,12 +287,15 @@ class PlanParserSuite extends AnalysisTest {
|lateral view explode(x) expl
|lateral view outer json_tuple(x, y) jtup q, z""".stripMargin,
table("t")
.generate(explode, join = true, outer = false, omitGeneratorChild = false, Some("expl"), Seq.empty)
.generate(jsonTuple, join = true, outer = true, omitGeneratorChild = false, Some("jtup"), Seq("q", "z"))
.generate(explode, join = true, outer = false, omitGeneratorChild = false,
Some("expl"), Seq.empty)
.generate(jsonTuple, join = true, outer = true, omitGeneratorChild = false,
Some("jtup"), Seq("q", "z"))
.select(star()))

// Multi-Insert lateral views.
val from = table("t1").generate(explode, join = true, outer = false, omitGeneratorChild = false, Some("expl"), Seq("x"))
val from = table("t1").generate(explode, join = true, outer = false,
omitGeneratorChild = false, Some("expl"), Seq("x"))
assertEqual(
"""from t1
|lateral view explode(x) expl as x
Expand All @@ -303,7 +307,8 @@ class PlanParserSuite extends AnalysisTest {
|where s < 10
""".stripMargin,
Union(from
.generate(jsonTuple, join = true, outer = false, omitGeneratorChild = false, Some("jtup"), Seq("q", "z"))
.generate(jsonTuple, join = true, outer = false, omitGeneratorChild = false,
Some("jtup"), Seq("q", "z"))
.select(star())
.insertInto("t2"),
from.where('s < 10).select(star()).insertInto("t3")))
Expand Down

0 comments on commit 7a9bc96

Please sign in to comment.