Skip to content

Commit

Permalink
Remove TestHiveDistributedQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo authored and hashhar committed May 21, 2021
1 parent 4faddaf commit 7975de7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
import static io.trino.sql.planner.planprinter.IoPlanPrinter.FormattedMarker.Bound.ABOVE;
import static io.trino.sql.planner.planprinter.IoPlanPrinter.FormattedMarker.Bound.EXACTLY;
import static io.trino.sql.planner.planprinter.PlanPrinter.textLogicalPlan;
import static io.trino.sql.tree.ExplainType.Type.DISTRIBUTED;
import static io.trino.testing.MaterializedResult.resultBuilder;
import static io.trino.testing.QueryAssertions.assertEqualsIgnoreOrder;
import static io.trino.testing.TestingAccessControlManager.TestingPrivilegeType.DELETE_TABLE;
Expand Down Expand Up @@ -7653,6 +7654,14 @@ public void testUseColumnAddDrop(HiveStorageFormat format, boolean formatUseColu
assertUpdate("DROP TABLE " + tableName);
}

@Test
public void testExplainOfCreateTableAs()
{
String query = "CREATE TABLE copy_orders AS SELECT * FROM orders";
MaterializedResult result = computeActual("EXPLAIN " + query);
assertEquals(getOnlyElement(result.getOnlyColumnAsSet()), getExplainPlan(query, DISTRIBUTED));
}

private static final Set<HiveStorageFormat> NAMED_COLUMN_ONLY_FORMATS = ImmutableSet.of(HiveStorageFormat.AVRO, HiveStorageFormat.JSON);

@DataProvider
Expand Down

This file was deleted.

0 comments on commit 7975de7

Please sign in to comment.