Skip to content

Commit 65b832b

Browse files
jimsimon-wkhantangwangd
authored andcommitted
Add Test for QualifiedObjectName Regression in 0.292
1 parent 3da0e14 commit 65b832b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

presto-main-base/src/test/java/com/facebook/presto/sql/planner/TestLogicalPlanner.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,4 +1906,11 @@ public void testCorrelatedSubqueriesWithOuterJoins()
19061906
anyTree(
19071907
tableScan("supplier", ImmutableMap.of("suppkey_4", "suppkey")))))))));
19081908
}
1909+
1910+
@Test
1911+
public void testSubselectQualifiedObjectNameContainsDot()
1912+
{
1913+
String query = "SELECT min((SELECT totalprice FROM orders WHERE orderstatus = \"Outer.Table\".\"orderstatus\")) as min FROM orders AS \"Outer.Table\"";
1914+
assertPlanSucceeded(query, this.getQueryRunner().getDefaultSession());
1915+
}
19091916
}

0 commit comments

Comments
 (0)