@@ -2382,23 +2382,23 @@ private void testWriteSortedTable(Session session)
2382
2382
session ,
2383
2383
"CREATE TABLE create_partitioned_sorted_table (orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus)\n " +
2384
2384
"WITH (partitioned_by = ARRAY['orderstatus'], bucketed_by = ARRAY['custkey'], bucket_count = 11, sorted_by = ARRAY['orderkey']) AS\n " +
2385
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2386
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2385
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2386
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2387
2387
assertQuery (
2388
2388
session ,
2389
2389
"SELECT count(*) FROM create_partitioned_sorted_table" ,
2390
- "SELECT count(*) * 100 FROM orders" );
2390
+ "SELECT count(*) FROM orders" );
2391
2391
2392
2392
assertUpdate (
2393
2393
session ,
2394
2394
"CREATE TABLE create_unpartitioned_sorted_table (orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus)\n " +
2395
2395
"WITH (bucketed_by = ARRAY['custkey'], bucket_count = 11, sorted_by = ARRAY['orderkey']) AS\n " +
2396
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2397
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2396
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2397
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2398
2398
assertQuery (
2399
2399
session ,
2400
2400
"SELECT count(*) FROM create_unpartitioned_sorted_table" ,
2401
- "SELECT count(*) * 100 FROM orders" );
2401
+ "SELECT count(*) FROM orders" );
2402
2402
2403
2403
// insert
2404
2404
assertUpdate (
@@ -2409,12 +2409,12 @@ private void testWriteSortedTable(Session session)
2409
2409
assertUpdate (
2410
2410
session ,
2411
2411
"INSERT INTO insert_partitioned_sorted_table\n " +
2412
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2413
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2412
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2413
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2414
2414
assertQuery (
2415
2415
session ,
2416
2416
"SELECT count(*) FROM insert_partitioned_sorted_table" ,
2417
- "SELECT count(*) * 100 FROM orders" );
2417
+ "SELECT count(*) FROM orders" );
2418
2418
}
2419
2419
finally {
2420
2420
assertUpdate (session , "DROP TABLE IF EXISTS create_partitioned_sorted_table" );
@@ -2441,23 +2441,23 @@ public void testWritePreferredOrderingTable(Session session)
2441
2441
session ,
2442
2442
"CREATE TABLE create_partitioned_ordering_table (orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus)\n " +
2443
2443
"WITH (partitioned_by = ARRAY['orderstatus'], preferred_ordering_columns = ARRAY['orderkey']) AS\n " +
2444
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2445
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2444
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2445
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2446
2446
assertQuery (
2447
2447
session ,
2448
2448
"SELECT count(*) FROM create_partitioned_ordering_table" ,
2449
- "SELECT count(*) * 100 FROM orders" );
2449
+ "SELECT count(*) FROM orders" );
2450
2450
2451
2451
assertUpdate (
2452
2452
session ,
2453
2453
"CREATE TABLE create_unpartitioned_ordering_table (orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus)\n " +
2454
2454
"WITH (preferred_ordering_columns = ARRAY['orderkey']) AS\n " +
2455
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2456
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2455
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2456
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2457
2457
assertQuery (
2458
2458
session ,
2459
2459
"SELECT count(*) FROM create_unpartitioned_ordering_table" ,
2460
- "SELECT count(*) * 100 FROM orders" );
2460
+ "SELECT count(*) FROM orders" );
2461
2461
2462
2462
// insert
2463
2463
assertUpdate (
@@ -2468,12 +2468,12 @@ public void testWritePreferredOrderingTable(Session session)
2468
2468
assertUpdate (
2469
2469
session ,
2470
2470
"INSERT INTO insert_partitioned_ordering_table\n " +
2471
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2472
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2471
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2472
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2473
2473
assertQuery (
2474
2474
session ,
2475
2475
"SELECT count(*) FROM insert_partitioned_ordering_table" ,
2476
- "SELECT count(*) * 100 FROM orders" );
2476
+ "SELECT count(*) FROM orders" );
2477
2477
2478
2478
// invalid
2479
2479
assertQueryFails (
@@ -2644,8 +2644,8 @@ public void testFileRenamingForPartitionedTable()
2644
2644
.build (),
2645
2645
"CREATE TABLE partitioned_ordering_table (orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus)\n " +
2646
2646
"WITH (partitioned_by = ARRAY['orderstatus'], preferred_ordering_columns = ARRAY['orderkey']) AS\n " +
2647
- "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.sf1 .orders" ,
2648
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2647
+ "SELECT orderkey, custkey, totalprice, orderdate, orderpriority, clerk, shippriority, comment, orderstatus FROM tpch.tiny .orders" ,
2648
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2649
2649
2650
2650
// Collect all file names
2651
2651
Map <String , List <Integer >> partitionFileNamesMap = new HashMap <>();
@@ -2683,8 +2683,8 @@ public void testFileRenamingForUnpartitionedTable()
2683
2683
.setSystemProperty ("writer_min_size" , "1MB" )
2684
2684
.setSystemProperty ("task_writer_count" , "1" )
2685
2685
.build (),
2686
- "CREATE TABLE unpartitioned_ordering_table AS SELECT * FROM tpch.sf1 .orders" ,
2687
- (long ) computeActual ("SELECT count(*) FROM tpch.sf1 .orders" ).getOnlyValue ());
2686
+ "CREATE TABLE unpartitioned_ordering_table AS SELECT * FROM tpch.tiny .orders" ,
2687
+ (long ) computeActual ("SELECT count(*) FROM tpch.tiny .orders" ).getOnlyValue ());
2688
2688
2689
2689
// Collect file names of the table
2690
2690
List <Integer > fileNames = new ArrayList <>();
0 commit comments