-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
94 additions
and
13 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
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
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
16 changes: 16 additions & 0 deletions
16
core/src/test/java/com/alibaba/druid/bvt/sql/oceanbase/OceanBaseResourceTest.java
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,16 @@ | ||
package com.alibaba.druid.bvt.sql.oceanbase; | ||
|
||
import com.alibaba.druid.DbType; | ||
import com.alibaba.druid.bvt.sql.SQLResourceTest; | ||
import org.junit.Test; | ||
|
||
public class OceanBaseResourceTest extends SQLResourceTest { | ||
public OceanBaseResourceTest() { | ||
super(DbType.oceanbase); | ||
} | ||
|
||
@Test | ||
public void oceanbase_parse() throws Exception { | ||
fileTest(0, 999, i -> "bvt/parser/oceanbase/" + i + ".txt"); | ||
} | ||
} |
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,38 @@ | ||
CREATE TABLE t2_m_lch(col1 INT,col2 INT) | ||
PARTITION BY LIST COLUMNS(col1) | ||
SUBPARTITION BY HASH(col2) SUBPARTITIONS 5 | ||
(PARTITION p0 VALUES IN(100), | ||
PARTITION p1 VALUES IN(200), | ||
PARTITION p2 VALUES IN(300) | ||
); | ||
-------------------- | ||
CREATE TABLE t2_m_lch ( | ||
col1 INT, | ||
col2 INT | ||
) | ||
PARTITION BY LIST COLUMNS (col1) | ||
SUBPARTITION BY HASH (col2) SUBPARTITIONS 5 ( | ||
PARTITION p0 VALUES IN (100), | ||
PARTITION p1 VALUES IN (200), | ||
PARTITION p2 VALUES IN (300) | ||
); | ||
------------------------------------------------------------------------------------------------------------------------ | ||
CREATE TABLE t2_m_lh (col1 INT NOT NULL,col2 varchar(50),col3 INT NOT NULL) | ||
PARTITION BY LIST (col1) | ||
SUBPARTITION BY HASH(col3) SUBPARTITIONS 3 | ||
(PARTITION p0 VALUES IN(100), | ||
PARTITION p1 VALUES IN(200), | ||
PARTITION p2 VALUES IN(300) | ||
); | ||
-------------------- | ||
CREATE TABLE t2_m_lh ( | ||
col1 INT NOT NULL, | ||
col2 varchar(50), | ||
col3 INT NOT NULL | ||
) | ||
PARTITION BY LIST (col1) | ||
SUBPARTITION BY HASH (col3) SUBPARTITIONS 3 ( | ||
PARTITION p0 VALUES IN (100), | ||
PARTITION p1 VALUES IN (200), | ||
PARTITION p2 VALUES IN (300) | ||
); |
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