Skip to content

Commit

Permalink
Reformat TestPrestoSparkQueryRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Apr 15, 2021
1 parent e4c9e77 commit 7aa7331
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public void testTableWrite()
// some basic tests
assertUpdate(
"CREATE TABLE hive.hive_test.hive_orders AS " +
"SELECT orderkey, custkey, orderstatus, totalprice, orderdate, orderpriority, clerk, shippriority, comment " +
"FROM orders",
"SELECT orderkey, custkey, orderstatus, totalprice, orderdate, orderpriority, clerk, shippriority, comment " +
"FROM orders",
15000);

assertUpdate(
Expand Down Expand Up @@ -311,19 +311,19 @@ public void testCrossJoin()

// 22 buckets UNION ALL 11 buckets
assertQuery("SELECT o.regionkey, l.orderkey " +
"FROM (SELECT * FROM lineitem WHERE linenumber = 4) l " +
"CROSS JOIN (" +
" SELECT * FROM hive.hive_test.partitioned_nation_22 " +
" UNION ALL " +
" SELECT * FROM hive.hive_test.partitioned_nation_11 " +
") o",
"FROM (SELECT * FROM lineitem WHERE linenumber = 4) l " +
"CROSS JOIN (" +
" SELECT * FROM hive.hive_test.partitioned_nation_22 " +
" UNION ALL " +
" SELECT * FROM hive.hive_test.partitioned_nation_11 " +
") o",
"SELECT o.regionkey, l.orderkey " +
"FROM (SELECT * FROM lineitem WHERE linenumber = 4) l " +
"CROSS JOIN (" +
" SELECT * FROM nation " +
" UNION ALL " +
" SELECT * FROM nation" +
") o");
"FROM (SELECT * FROM lineitem WHERE linenumber = 4) l " +
"CROSS JOIN (" +
" SELECT * FROM nation " +
" UNION ALL " +
" SELECT * FROM nation" +
") o");

// 11 buckets UNION ALL 22 buckets
assertQuery("SELECT o.regionkey, l.orderkey " +
Expand Down

0 comments on commit 7aa7331

Please sign in to comment.