Skip to content

Commit

Permalink
select ut
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Jin <[email protected]>
  • Loading branch information
LantaoJin committed Nov 15, 2024
1 parent 0846f7a commit e1d5c67
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PPLLogicalPlanBasicQueriesTranslatorTestSuite
}

// TODO Do not support 4+ parts table identifier in future (may be reverted this PR in 0.8.0)
test("test describe with backticks with more then 3 parts") {
test("test describe with backticks and more then 3 parts") {
val context = new CatalystPlanContext
val logPlan =
planTransformer.visit(plan(pplParser, "describe `t`.b.`c.d`.`e.f`"), context)
Expand All @@ -65,6 +65,15 @@ class PPLLogicalPlanBasicQueriesTranslatorTestSuite
comparePlans(expectedPlan, logPlan, false)
}

test("test read table with backticks and more then 3 parts") {
val context = new CatalystPlanContext
val logPlan =
planTransformer.visit(plan(pplParser, "source=`t`.b.`c.d`.`e.f`"), context)
val table = UnresolvedRelation(Seq("t", "b", "c.d.e.f"))
val expectedPlan = Project(Seq(UnresolvedStar(None)), table)
comparePlans(expectedPlan, logPlan, false)
}

test("test describe FQN table clause") {
val context = new CatalystPlanContext
val logPlan =
Expand Down

0 comments on commit e1d5c67

Please sign in to comment.