Skip to content

Commit d86b0ce

Browse files
committed
limit number of shards
1 parent aa5bd13 commit d86b0ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bwc/test_upgrade.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
CREATE_DYNAMIC_TABLE = '''
7575
CREATE TABLE dynamic (
7676
o object
77-
) WITH (column_policy = 'dynamic')
77+
) CLUSTERED INTO 1 SHARDS
78+
WITH (column_policy = 'dynamic', number_of_replicas = 0)
7879
'''
7980

8081
CREATE_DOC_TABLE = '''
@@ -313,7 +314,7 @@ def assert_data_persistence(self,
313314

314315
# to trigger `alter` stmt bug(https://github.com/crate/crate/pull/17178) that falsely updated the table's
315316
# version created setting that resulted in oids instead of column names in resultsets
316-
cursor.execute('ALTER TABLE doc.dynamic SET ("refresh_interval" = 900)')
317+
cursor.execute('ALTER TABLE doc.dynamic SET ("refresh_interval" = 9000)')
317318
cursor.execute('INSERT INTO doc.dynamic (o) values (?)', [{version: True}])
318319
cursor.execute('REFRESH TABLE doc.dynamic')
319320
accumulated_dynamic_column_names.append(version)

0 commit comments

Comments
 (0)