forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCitusTableGenerator.java
More file actions
23 lines (18 loc) · 1 KB
/
CitusTableGenerator.java
File metadata and controls
23 lines (18 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package sqlancer.citus.gen;
import sqlancer.common.query.SQLQueryAdapter;
import sqlancer.postgres.PostgresGlobalState;
import sqlancer.postgres.PostgresSchema;
import sqlancer.postgres.gen.PostgresTableGenerator;
public class CitusTableGenerator extends PostgresTableGenerator {
public CitusTableGenerator(String tableName, PostgresSchema newSchema, boolean generateOnlyKnown,
PostgresGlobalState globalState) {
super(tableName, newSchema, generateOnlyKnown, globalState);
CitusCommon.addCitusErrors(errors);
errors.add("columnar_parallelscan_estimate not implemented"); // see
// https://github.com/sqlancer/sqlancer/issues/402
}
public static SQLQueryAdapter generate(String tableName, PostgresSchema newSchema, boolean generateOnlyKnown,
PostgresGlobalState globalState) {
return new CitusTableGenerator(tableName, newSchema, generateOnlyKnown, globalState).generate();
}
}