Skip to content

Commit 5d11c16

Browse files
committed
replaced spaces with tabs in python tests
1 parent 3ea8474 commit 5d11c16

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

tests/python/partitioning_test.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ def test_foreign_table(self):
354354
master.psql('postgres', 'create extension pg_pathman')
355355
master.psql('postgres', 'create extension postgres_fdw')
356356

357-
# RANGE partitioning test with FDW:
358-
# - create range partitioned table in master
359-
# - create foreign server
360-
# - create foreign table and insert some data into it
361-
# - attach foreign table to partitioned one
362-
# - try inserting data into foreign partition via parent
363-
# - drop partitions
357+
# RANGE partitioning test with FDW:
358+
# - create range partitioned table in master
359+
# - create foreign server
360+
# - create foreign table and insert some data into it
361+
# - attach foreign table to partitioned one
362+
# - try inserting data into foreign partition via parent
363+
# - drop partitions
364364
master.psql(
365365
'postgres',
366366
'''create table abc(id serial, name text);
@@ -413,33 +413,33 @@ def test_foreign_table(self):
413413
# Testing drop partitions (including foreign partitions)
414414
master.safe_psql('postgres', 'select drop_partitions(\'abc\')')
415415

416-
# HASH partitioning with FDW:
417-
# - create hash partitioned table in master
418-
# - create foreign table
419-
# - replace local partition with foreign one
420-
# - insert data
421-
# - drop partitions
422-
master.psql(
423-
'postgres',
424-
'''create table hash_test(id serial, name text);
425-
select create_hash_partitions('hash_test', 'id', 2)''')
426-
fserv.safe_psql('postgres', 'create table f_hash_test(id serial, name text)')
427-
428-
master.safe_psql(
429-
'postgres',
430-
'''import foreign schema public limit to (f_hash_test)
431-
from server fserv into public'''
432-
)
433-
master.safe_psql(
434-
'postgres',
435-
'select replace_hash_partition(\'hash_test_1\', \'f_hash_test\')')
436-
master.safe_psql('postgres', 'insert into hash_test select generate_series(1,10)')
437-
438-
self.assertEqual(
439-
master.safe_psql('postgres', 'select * from hash_test'),
440-
'1|\n2|\n5|\n6|\n8|\n9|\n3|\n4|\n7|\n10|\n'
441-
)
442-
master.safe_psql('postgres', 'select drop_partitions(\'hash_test\')')
416+
# HASH partitioning with FDW:
417+
# - create hash partitioned table in master
418+
# - create foreign table
419+
# - replace local partition with foreign one
420+
# - insert data
421+
# - drop partitions
422+
master.psql(
423+
'postgres',
424+
'''create table hash_test(id serial, name text);
425+
select create_hash_partitions('hash_test', 'id', 2)''')
426+
fserv.safe_psql('postgres', 'create table f_hash_test(id serial, name text)')
427+
428+
master.safe_psql(
429+
'postgres',
430+
'''import foreign schema public limit to (f_hash_test)
431+
from server fserv into public'''
432+
)
433+
master.safe_psql(
434+
'postgres',
435+
'select replace_hash_partition(\'hash_test_1\', \'f_hash_test\')')
436+
master.safe_psql('postgres', 'insert into hash_test select generate_series(1,10)')
437+
438+
self.assertEqual(
439+
master.safe_psql('postgres', 'select * from hash_test'),
440+
'1|\n2|\n5|\n6|\n8|\n9|\n3|\n4|\n7|\n10|\n'
441+
)
442+
master.safe_psql('postgres', 'select drop_partitions(\'hash_test\')')
443443

444444
def test_parallel_nodes(self):
445445
"""Test parallel queries under partitions"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy