File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,11 +109,11 @@ jobs:
109109 run : mvn -B package -DskipTests=true
110110 - name : Set up CockroachDB
111111 run : |
112- wget -qO- https://binaries.cockroachdb.com/cockroach-v21.1.7 .linux-amd64.tgz | tar xvz
113- cd cockroach-v21.1.7 .linux-amd64/ && ./cockroach start-single-node --insecure &
112+ wget -qO- https://binaries.cockroachdb.com/cockroach-v22.2.0-beta.4 .linux-amd64.tgz | tar xvz
113+ cd cockroach-v22.2.0-beta.4 .linux-amd64/ && ./cockroach start-single-node --insecure &
114114 sleep 10
115115 - name : Create SQLancer user
116- run : cd cockroach-v21.1.7 .linux-amd64/ && ./cockroach sql --insecure -e "CREATE USER sqlancer; GRANT admin to sqlancer" && cd ..
116+ run : cd cockroach-v22.2.0-beta.4 .linux-amd64/ && ./cockroach sql --insecure -e "CREATE USER sqlancer; GRANT admin to sqlancer" && cd ..
117117 - name : Run Tests
118118 run : COCKROACHDB_AVAILABLE=true mvn -Dtest=TestCockroachDB test
119119
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public final class CockroachDBBugs {
5050 // https://github.com/cockroachdb/cockroach/issues/85499
5151 public static boolean bug85499 = true ;
5252
53+ // https://github.com/cockroachdb/cockroach/issues/88037
54+ // TODO: This should be fixed in v22.2.1.
55+ public static boolean bug88037 = true ;
56+
5357 private CockroachDBBugs () {
5458 }
5559
Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ public static void addExpressionErrors(ExpectedErrors errors) {
186186 if (CockroachDBBugs .bug85499 ) {
187187 errors .add ("estimated row count must be non-zero" );
188188 }
189+ if (CockroachDBBugs .bug88037 ) {
190+ errors .add ("expected required columns to be a subset of output columns" );
191+ }
189192
190193 errors .add ("unable to vectorize execution plan" ); // SET vectorize=experimental_always;
191194 errors .add (" mismatched physical types at index" ); // SET vectorize=experimental_always;
@@ -203,6 +206,7 @@ public static void addExpressionErrors(ExpectedErrors errors) {
203206 errors .add ("ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list" );
204207
205208 addArrayErrors (errors );
209+ addComputedColumnErrors (errors );
206210 }
207211
208212 private static void addArrayErrors (ExpectedErrors errors ) {
@@ -308,4 +312,9 @@ public static void addTransactionErrors(ExpectedErrors errors) {
308312 errors .add ("current transaction is aborted" );
309313 }
310314
315+ private static void addComputedColumnErrors (ExpectedErrors errors ) {
316+ // computed columns
317+ errors .add ("computed column expressions cannot reference computed columns" );
318+ }
319+
311320}
You can’t perform that action at this time.
0 commit comments