Skip to content

Commit 7c349dc

Browse files
committed
disable failing tests with linked bug tickets
1 parent 758cda4 commit 7c349dc

File tree

3 files changed

+62
-63
lines changed

3 files changed

+62
-63
lines changed

test/sql-server-cdc-old-syntax/alter-source.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ INSERT INTO table_f VALUES (3, 'var1');
349349
# TODO: This should work
350350
# > SELECT regexp_match(create_sql, 'TEXT COLUMNS = \((.*?)\)')[1] FROM (SHOW CREATE SOURCE mz_source);
351351
# "dbo.table_f.f2, dbo.table_i.f2"
352-
#
352+
#
353353
# > SELECT regexp_match(create_sql, 'TEXT COLUMNS = \((.*?)\)')[1] FROM (SHOW CREATE SOURCE table_i);
354354
# f2
355355

test/sql-server-cdc-old-syntax/correctness-property-2.td

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,54 @@
77
# the Business Source License, use of this software will be governed
88
# by the Apache License, Version 2.0.
99

10-
$ postgres-execute connection=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
11-
ALTER SYSTEM SET unsafe_enable_unorchestrated_cluster_replicas = true
10+
$ nop
1211

13-
$ sql-server-connect name=sql-server
14-
server=tcp:sql-server,1433;IntegratedSecurity=true;TrustServerCertificate=true;User ID=${arg.default-sql-server-user};Password=${arg.default-sql-server-password};Database=test
15-
16-
> CREATE SECRET IF NOT EXISTS sql_server_pass AS '${arg.default-sql-server-password}'
17-
18-
> DROP CONNECTION IF EXISTS sql_server_test_connection CASCADE
19-
> CREATE CONNECTION sql_server_test_connection TO SQL SERVER (
20-
HOST 'sql-server',
21-
PORT 1433,
22-
DATABASE test,
23-
USER '${arg.default-sql-server-user}',
24-
PASSWORD = SECRET sql_server_pass
25-
);
26-
27-
> VALIDATE CONNECTION sql_server_test_connection;
28-
29-
$ sql-server-execute name=sql-server
30-
CREATE TABLE t1 (pk INT IDENTITY(1,1) PRIMARY KEY, f2 BIGINT);
31-
EXEC sys.sp_cdc_enable_table @source_schema = 'dbo', @source_name = 't1', @role_name = 'SA', @supports_net_changes = 0;
32-
33-
WITH numbers AS (SELECT 1 AS x UNION ALL SELECT x + 1 FROM numbers WHERE x + 1 <= 10000) INSERT INTO t1 (f2) SELECT x FROM numbers OPTION (MAXRECURSION 0);
34-
35-
# Create a cluster with no replicas so that we have time to submit queries at the minimum frontier.
36-
> CREATE CLUSTER storage REPLICAS ()
37-
38-
> CREATE SOURCE mz_source
39-
FROM SQL SERVER CONNECTION sql_server_test_connection
40-
FOR ALL TABLES
41-
WITH (RETAIN HISTORY = FOR '365000 days');
42-
43-
# Grab a cursor at timestamp 0
44-
> BEGIN
45-
46-
> DECLARE c CURSOR FOR SELECT 1, COUNT(*) FROM t1 AS OF 0
47-
48-
# Start ingestion by adding a replica to the cluster. We must do this from a
49-
# different connection to not disturbe the transaction we're in.
50-
$ postgres-execute connection=postgres://materialize:materialize@${testdrive.materialize-sql-addr}
51-
CREATE CLUSTER REPLICA storage.r1 SIZE = 'scale=1,workers=1';
52-
53-
# Verify that at timestamp 0 there is only one record whose value is the final value
54-
> FETCH 1 c WITH (timeout = '1d');
55-
1 10000
56-
57-
> COMMIT
12+
# FIXME(ptravers): https://github.com/MaterializeInc/database-issues/issues/9575
13+
# $ postgres-execute connection=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
14+
# ALTER SYSTEM SET unsafe_enable_unorchestrated_cluster_replicas = true
15+
#
16+
# $ sql-server-connect name=sql-server
17+
# server=tcp:sql-server,1433;IntegratedSecurity=true;TrustServerCertificate=true;User ID=${arg.default-sql-server-user};Password=${arg.default-sql-server-password};Database=test
18+
#
19+
# > CREATE SECRET IF NOT EXISTS sql_server_pass AS '${arg.default-sql-server-password}'
20+
#
21+
# > DROP CONNECTION IF EXISTS sql_server_test_connection CASCADE
22+
# > CREATE CONNECTION sql_server_test_connection TO SQL SERVER (
23+
# HOST 'sql-server',
24+
# PORT 1433,
25+
# DATABASE test,
26+
# USER '${arg.default-sql-server-user}',
27+
# PASSWORD = SECRET sql_server_pass
28+
# );
29+
#
30+
# > VALIDATE CONNECTION sql_server_test_connection;
31+
#
32+
# $ sql-server-execute name=sql-server
33+
# CREATE TABLE t1 (pk INT IDENTITY(1,1) PRIMARY KEY, f2 BIGINT);
34+
# EXEC sys.sp_cdc_enable_table @source_schema = 'dbo', @source_name = 't1', @role_name = 'SA', @supports_net_changes = 0;
35+
#
36+
# WITH numbers AS (SELECT 1 AS x UNION ALL SELECT x + 1 FROM numbers WHERE x + 1 <= 10000) INSERT INTO t1 (f2) SELECT x FROM numbers OPTION (MAXRECURSION 0);
37+
#
38+
# # Create a cluster with no replicas so that we have time to submit queries at the minimum frontier.
39+
# > CREATE CLUSTER storage REPLICAS ()
40+
#
41+
# > CREATE SOURCE mz_source
42+
# FROM SQL SERVER CONNECTION sql_server_test_connection
43+
# FOR ALL TABLES
44+
# WITH (RETAIN HISTORY = FOR '365000 days');
45+
#
46+
# # Grab a cursor at timestamp 0
47+
# > BEGIN
48+
#
49+
# > DECLARE c CURSOR FOR SELECT 1, COUNT(*) FROM t1 AS OF 0
50+
#
51+
# # Start ingestion by adding a replica to the cluster. We must do this from a
52+
# # different connection to not disturbe the transaction we're in.
53+
# $ postgres-execute connection=postgres://materialize:materialize@${testdrive.materialize-sql-addr}
54+
# CREATE CLUSTER REPLICA storage.r1 SIZE = 'scale=1,workers=1';
55+
#
56+
# # Verify that at timestamp 0 there is only one record whose value is the final value
57+
# > FETCH 1 c WITH (timeout = '1d');
58+
# 1 10000
59+
#
60+
# > COMMIT

test/sql-server-cdc-old-syntax/statistics.td

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ ALTER SYSTEM SET storage_statistics_collection_interval = 1000
3232
ALTER SYSTEM SET storage_statistics_interval = 2000
3333
ALTER SYSTEM SET max_credit_consumption_rate = 2000
3434

35-
3635
$ sql-server-execute name=sql-server
3736
USE test;
3837
CREATE TABLE t1 (f1 VARCHAR(128));
@@ -50,7 +49,6 @@ INSERT INTO t1 VALUES ('two');
5049
> SELECT COUNT(*) > 0 FROM t1;
5150
true
5251

53-
5452
> SELECT
5553
s.name,
5654
SUM(u.offset_committed) > 0,
@@ -71,11 +69,9 @@ SELECT
7169
JOIN mz_internal.mz_source_statistics_raw u ON s.id = u.id
7270
WHERE s.name IN ('mz_source')
7371

74-
7572
$ sql-server-execute name=sql-server
7673
INSERT INTO t1 VALUES ('three');
7774

78-
7975
> SELECT
8076
s.name,
8177
SUM(u.offset_committed) > ${previous-offset-committed},
@@ -117,7 +113,6 @@ INSERT INTO t1 VALUES ('four');
117113
ORDER BY s.name
118114
mz_source true true 2 2
119115

120-
121116
$ sql-server-execute name=sql-server
122117
CREATE TABLE alt (f1 VARCHAR(128));
123118
EXEC sys.sp_cdc_enable_table @source_schema = 'dbo', @source_name = 'alt', @role_name = 'SA', @supports_net_changes = 0;
@@ -128,17 +123,18 @@ INSERT INTO alt VALUES ('one');
128123
> SELECT COUNT(*) > 0 FROM alt;
129124
true
130125

126+
# FIXME(ptravers): https://github.com/MaterializeInc/database-issues/issues/9583
131127
# Ensure snapshot stats are overridden when we add a new table
132-
> SELECT
133-
s.name,
134-
SUM(u.snapshot_records_known),
135-
SUM(u.snapshot_records_staged)
136-
FROM mz_sources s
137-
JOIN mz_internal.mz_source_statistics_raw u ON s.id = u.id
138-
WHERE s.name IN ('mz_source')
139-
GROUP BY s.name
140-
ORDER BY s.name
141-
mz_source 1 1
128+
# > SELECT
129+
# s.name,
130+
# SUM(u.snapshot_records_known),
131+
# SUM(u.snapshot_records_staged)
132+
# FROM mz_sources s
133+
# JOIN mz_internal.mz_source_statistics_raw u ON s.id = u.id
134+
# WHERE s.name IN ('mz_source')
135+
# GROUP BY s.name
136+
# ORDER BY s.name
137+
# mz_source 1 1
142138

143139
# Ensure subsource stats show up, and then are removed when we drop subsources.
144140
> SELECT

0 commit comments

Comments
 (0)