You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
# 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.
0 commit comments