Skip to content

Commit

Permalink
[fix](case) update nereids_delete_using to pass run without load data (
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-stephen authored Aug 17, 2023
1 parent abb82b0 commit 96983d7
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 85 deletions.
67 changes: 67 additions & 0 deletions regression-test/suites/nereids_p0/delete/delete_using.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,73 @@
// under the License.

suite('nereids_delete_using') {
sql 'drop table if exists t1'
sql '''
create table t1 (
id int,
id1 int,
c1 bigint,
c2 string,
c3 double,
c4 date
) unique key (id, id1)
distributed by hash(id, id1)
properties(
'replication_num'='1',
"function_column.sequence_col" = "c4",
"enable_unique_key_merge_on_write" = "true"
);
'''

sql 'drop table if exists t2'
sql '''
create table t2 (
id int,
c1 bigint,
c2 string,
c3 double,
c4 date
) unique key (id)
distributed by hash(id)
properties(
'replication_num'='1'
);
'''

sql 'drop table if exists t3'
sql '''
create table t3 (
id int
) distributed by hash(id)
properties(
'replication_num'='1'
);
'''

sql '''
INSERT INTO t1 VALUES
(1, 10, 1, '1', 1.0, '2000-01-01'),
(2, 20, 2, '2', 2.0, '2000-01-02'),
(3, 30, 3, '3', 3.0, '2000-01-03');
'''

sql '''
INSERT INTO t2 VALUES
(1, 10, '10', 10.0, '2000-01-10'),
(2, 20, '20', 20.0, '2000-01-20'),
(3, 30, '30', 30.0, '2000-01-30'),
(4, 4, '4', 4.0, '2000-01-04'),
(5, 5, '5', 5.0, '2000-01-05');
'''

sql '''
INSERT INTO t3 VALUES
(1),
(4),
(5);
'''

sql 'set enable_nereids_planner=true'
sql 'set enable_fallback_to_original_planner=false'
sql 'set enable_nereids_dml=true'
Expand Down
85 changes: 0 additions & 85 deletions regression-test/suites/nereids_p0/delete/load.groovy

This file was deleted.

0 comments on commit 96983d7

Please sign in to comment.