-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
close #43284
- Loading branch information
1 parent
4b8ac1a
commit fe7bcf1
Showing
7 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tikv-importer] | ||
backend = 'local' | ||
|
||
# here we're verifying that routes does not panic for csv data load. | ||
[[routes]] | ||
schema-pattern = "test1" | ||
table-pattern = "d*" | ||
target-schema = "test" | ||
target-table = "u" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
insert into dump_test values (1.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
insert into dump_test values (6.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
insert into dump_test values (36.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Basic check for whether routing rules work | ||
|
||
set -eux | ||
|
||
run_sql 'DROP DATABASE IF EXISTS test1;' | ||
run_sql 'DROP DATABASE IF EXISTS test;' | ||
|
||
run_sql 'CREATE DATABASE test1;' | ||
run_sql 'CREATE DATABASE test;' | ||
run_sql 'CREATE TABLE test1.dump_test (x real primary key);' | ||
run_sql 'CREATE TABLE test.u (x real primary key);' | ||
|
||
run_lightning | ||
|
||
run_sql 'SELECT sum(x) FROM test.u;' | ||
check_contains 'sum(x): 43' |