/
ClickHouseErrors.java
47 lines (39 loc) · 2.01 KB
/
ClickHouseErrors.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package sqlancer.clickhouse;
import java.util.Set;
public final class ClickHouseErrors {
private ClickHouseErrors() {
}
public static void addExpectedExpressionErrors(Set<String> errors) {
// errors.add("Illegal type (String) of argument of function not");
// errors.add("Illegal type String of column for constant filter. Must be UInt8 or Nullable(UInt8)");
// errors.add("Illegal type Int32 of column for constant filter. Must be UInt8 or Nullable(UInt8)");
// errors.add("Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8)");
// errors.add("Illegal type Int32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of
// them.");
// errors.add("Illegal type String of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of
// them.");
// errors.add("Illegal type Int64 of column for constant filter. Must be UInt8 or Nullable(UInt8)");
errors.add("Illegal type");
errors.add("Argument at index 1 for function like must be constant");
errors.add("Argument at index 1 for function notLike must be constant");
// regex
errors.add("invalid escape sequence");
errors.add("invalid character class range");
errors.add("Memory limit");
errors.add("There is no supertype for types");
errors.add("Bad get: has Int64, requested UInt64");
errors.add("Cannot convert string");
errors.add("Attempt to read after eof: while converting");
errors.add("doesn't exist"); // TODO: consecutive test runs can lead to dropped database
errors.add("is not under aggregate function");
}
public static void addExpressionHavingErrors(Set<String> errors) {
errors.add("Memory limit");
}
public static void addQueryErrors(Set<String> errors) {
errors.add("Memory limit");
}
public static void addGroupingErrors(Set<String> errors) {
errors.add("Memory limit");
}
}