Skip to content

Commit 39dfa73

Browse files
authored
Merge branch 'main' into float
2 parents ff212c4 + 7480daa commit 39dfa73

File tree

5 files changed

+30
-19
lines changed

5 files changed

+30
-19
lines changed

.github/actions/test_sqllogic_cluster_linux/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ runs:
2828
run: |
2929
docker run --rm --tty --net=host \
3030
--user $(id -u):$(id -g) \
31+
--env BUILD_PROFILE \
3132
--volume "${PWD}:/workspace" \
3233
--workdir "/workspace" \
3334
datafuselabs/build-tool:sqllogic \

.github/actions/test_sqllogic_standalone_linux/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ runs:
2828
run: |
2929
docker run --rm --tty --net=host \
3030
--user $(id -u):$(id -g) \
31+
--env BUILD_PROFILE \
3132
--volume "${PWD}:/workspace" \
3233
--workdir "/workspace" \
3334
datafuselabs/build-tool:sqllogic \

.github/actions/test_sqllogic_standalone_macos/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,3 @@ runs:
3232
shell: bash
3333
run: |
3434
bash ./scripts/ci/ci-run-sqllogic-tests.sh ${{ inputs.dirs }}
35-
36-
# - name: Upload failure
37-
# if: failure()
38-
# uses: ./.github/actions/artifact_failure
39-
# with:
40-
# name: test-sqllogic-standalone-macos

src/query/service/src/servers/mysql/mysql_federated.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ impl MySQLFederated {
236236
None,
237237
),
238238
("(?i)^(/\\* ApplicationName=(.*)SHOW VARIABLES(.*))", None),
239+
// pt-toolkit
240+
("(?i)^(/\\*!40101 SET(.*) \\*/)$", None),
241+
("(?i)^(SET character_set_connection(.*))", None),
239242
];
240243

241244
FederatedHelper::block_match_rule(query, rules)
Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,61 @@
11
statement ok
2-
/*!40101*/select number from numbers_mt(2) ORDER BY number;
2+
/*!40101*/select number from numbers_mt(2) ORDER BY number
33

44
-- statement ok
5-
-- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
5+
-- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */
66

77
statement ok
8-
/*!40101*/select number from numbers_mt(1) ORDER BY number;
8+
/*!40101*/select number from numbers_mt(1) ORDER BY number
99

1010
onlyif mysql
1111
statement ok
12-
COMMIT;
12+
/*!40101 SET @@SQL_MODE := @OLD_SQL_MODE, @@SQL_QUOTE_SHOW_CREATE := @OLD_QUOTE */
1313

1414
onlyif mysql
1515
statement ok
16-
ROLLBACK;
16+
/*!40101 SET character_set_connection = utf8mb4 */
1717

1818
onlyif mysql
1919
statement ok
20-
START;
20+
SET @@SQL_QUOTE_SHOW_CREATE = 1/*!40101, @@SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'*/
2121

2222
onlyif mysql
2323
statement ok
24-
SET SQL_LOG_BIN=0;
24+
COMMIT
2525

2626
onlyif mysql
2727
statement ok
28-
SHOW MASTER STATUS;
28+
ROLLBACK
2929

3030
onlyif mysql
3131
statement ok
32-
SHOW ALL SLAVES STATUS;
32+
START
3333

3434
onlyif mysql
3535
statement ok
36-
SET SQL_SELECT_LIMIT=1000;
36+
SET SQL_LOG_BIN=0
3737

3838
onlyif mysql
3939
statement ok
40-
SHOW CHARSET;
40+
SHOW MASTER STATUS
4141

4242
onlyif mysql
4343
statement ok
44-
SHOW COLLATION;
44+
SHOW ALL SLAVES STATUS
4545

4646
onlyif mysql
4747
statement ok
48-
SET net_write_timeout=600;
48+
SET SQL_SELECT_LIMIT=1000
49+
50+
onlyif mysql
51+
statement ok
52+
SHOW CHARSET
53+
54+
onlyif mysql
55+
statement ok
56+
SHOW COLLATION
57+
58+
onlyif mysql
59+
statement ok
60+
SET net_write_timeout=600
4961

0 commit comments

Comments
 (0)