Add missing test for explain analyze with type specified
@@ -1570,6 +1570,14 @@ public class TestSqlParser
new Explain(simpleQuery(selectList(new AllColumns()), table(QualifiedName.of("t"))), true, ImmutableList.of()));
}
+ @Test
+ public void testExplainAnalyzeTypeDistributed()
+ throws Exception
+ {
+ assertStatement("EXPLAIN ANALYZE (type DISTRIBUTED) SELECT * FROM t",
+ new Explain(simpleQuery(selectList(new AllColumns()), table(QualifiedName.of("t"))), true, ImmutableList.of(new ExplainType(ExplainType.Type.DISTRIBUTED))));
+ }
+
@Test
public void testJoinPrecedence()
{
