-
Notifications
You must be signed in to change notification settings - Fork 477
[sql_server] add sql-server-cdc-old-syntax test suite #33265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
adbeb06
to
a7f4bc4
Compare
10b169c
to
381fe99
Compare
d8f3117
to
aceab21
Compare
# SQL Server diverges from Postgres by returning numeric money. | ||
> SELECT pg_typeof(f1) FROM t1 LIMIT 1; | ||
"numeric" | ||
|
||
> SELECT * FROM t1; | ||
"922337203685477.58" | ||
"922337203685477.58" | ||
"-922337203685477.58" | ||
"-922337203685477.58" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are deviating here from postgres. I'm assuming that this should be refactored to return text with dollar symbols?
7c349dc
to
41683db
Compare
@@ -234,7 +234,7 @@ def concurrent_updates(c: Composition) -> None: | |||
args=["--no-reset"], | |||
input=dedent( | |||
f""" | |||
> SELECT COUNT(*) >= {update_rows+initial_rows}, MIN(id), MAX(id) >= {update_rows + update_id_offset - 1} FROM t1; | |||
> SELECT COUNT(*) >= {update_rows + initial_rows}, MIN(id), MAX(id) >= {update_rows + update_id_offset - 1} FROM t1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting changes from ruff when my editor wrote the file to fix some merge conflicts. is it okay to leave them in?
@@ -185,7 +185,7 @@ def workflow_snapshot_consistency( | |||
update_val_offset = 100000 | |||
insert_delete = lambda i: dedent( | |||
f""" | |||
INSERT INTO t1 VALUES (999999999,666666666), ({i+update_id_offset}, {i+update_val_offset}); | |||
INSERT INTO t1 VALUES (999999999,666666666), ({i + update_id_offset}, {i + update_val_offset}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting changes from ruff when my editor wrote the file to fix some merge conflicts. is it okay to leave them in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind
2b53b0b
to
79a6f9c
Compare
# See: <https://github.com/microsoft/mssql-docker/issues/864> | ||
queue: hetzner-x86-64-8cpu-16gb | ||
|
||
- id: sql-server-cdc-old-syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this to nightly once we have the same coverage in the sql-server-cdc (new syntax) tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha. makes sense.
@@ -185,7 +185,7 @@ def workflow_snapshot_consistency( | |||
update_val_offset = 100000 | |||
insert_delete = lambda i: dedent( | |||
f""" | |||
INSERT INTO t1 VALUES (999999999,666666666), ({i+update_id_offset}, {i+update_val_offset}); | |||
INSERT INTO t1 VALUES (999999999,666666666), ({i + update_id_offset}, {i + update_val_offset}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
# This file is not necessary for SQL Server but included for completeness. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think removing it is better, runs faster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should remove the empty mysql files with $nop in them then.
ci/test/pipeline.template.yml
Outdated
depends_on: build-x86_64 | ||
timeout_in_minutes: 30 | ||
inputs: [test/sql-server-cdc-old-syntax] | ||
parallelism: 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also parallelism: 3
ci/test/pipeline.template.yml
Outdated
parallelism: 2 | ||
plugins: | ||
- ./ci/plugins/mzcompose: | ||
composition: sql-server-cdc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same composition as the "SQL Server CDC tests"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, result of a merge conflict
ci/nightly/pipeline.template.yml
Outdated
@@ -695,6 +695,16 @@ steps: | |||
queue: hetzner-aarch64-4cpu-8gb | |||
# the mzbuild postgres version will be used, which depends on the Dockerfile specification | |||
|
|||
- id: sql-server-cdc-old-syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it both in nightly and test pipeline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure where we would want it.
d8ce061
to
1809978
Compare
e4f0718
to
a52b205
Compare
As for the timeout in https://buildkite.com/materialize/test/builds/107879#0198ab1a-f76e-4362-83e8-3b8f834ae588
You can do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the flake
Motivation
This PR adds a known-desirable feature.
https://github.com/MaterializeInc/database-issues/issues/9534
Tips for reviewer
please note this was started on: #32241
Checklist
$T ⇔ Proto$T
mapping (possibly in a backwards-incompatible way), then it is tagged with aT-proto
label.