@@ -33,9 +33,9 @@ public static void addExpressionErrors(ExpectedErrors errors) {
3333 errors .add ("expected -9223372036854775809 to be of type int, found type decimal" );
3434 errors .add ("to be of type int4, found type decimal" );
3535
36- errors .add ("as type bool: invalid bool value " );
37- errors .add ("as type int: strconv.ParseInt " );
38- errors .add ("as type float: strconv.ParseFloat: parsing " );
36+ errors .add ("as type bool" );
37+ errors .add ("as type int" );
38+ errors .add ("as type float" );
3939
4040 errors .add ("is not in select list" );
4141 errors .add ("non-integer constant in ORDER BY" );
@@ -68,9 +68,7 @@ public static void addExpressionErrors(ExpectedErrors errors) {
6868 errors .add ("unsupported comparison operator: <string> = <bytes>" );
6969 errors .add ("unsupported comparison operator: <string> <= <bytes>" );
7070 errors .add ("to be of type string, found type bytes" );
71- errors .add ("unknown signature: left(string, int) (desired <bytes>)" );
7271 errors .add ("unknown signature: bit_length(collatedstring" );
73- errors .add ("ERROR: unknown signature: left(collatedstring" );
7472 errors .add ("unsupported comparison operator: <string> !~ <collatedstring{" );
7573 errors .add ("unsupported comparison operator: <collatedstring" );
7674 errors .add (" unsupported comparison operator: <string> NOT LIKE <collatedstring{" );
@@ -109,11 +107,10 @@ public static void addExpressionErrors(ExpectedErrors errors) {
109107 errors .add ("as int4, found type: decimal" );
110108 errors .add ("to be of type int2, found type decimal" );
111109 errors .add ("to be of type int, found type decimal" ); // arithmetic overflows
112- errors .add ("unknown signature: left(string, decimal)" );
113- errors .add ("unknown signature: left(bytes, decimal) (desired <bytes>)" );
110+ errors .add ("unknown signature: left" );
114111 errors .add ("numeric constant out of int64 range" );
115- errors .add ("unknown signature: overlay(string, string, decimal) " );
116- errors .add ("unknown signature: substring(string, int, decimal) " );
112+ errors .add ("unknown signature: overlay" );
113+ errors .add ("unknown signature: substring" );
117114 errors .add ("unsupported binary operator: <unknown> + <decimal> (desired <int>)" );
118115 errors .add ("unsupported comparison operator" );
119116 errors .add ("unknown signature: chr(decimal) (desired <string>)" );
@@ -122,25 +119,20 @@ public static void addExpressionErrors(ExpectedErrors errors) {
122119 errors .add ("incompatible value type: expected rowid to be of type decimal, found type int" );
123120 errors .add ("unknown signature: to_english(decimal)" );
124121 errors .add ("unknown signature: chr(decimal)" );
125- errors .add (" unknown signature: left(string, int2) (desired <bytes>)" );
126- errors .add ("unknown signature: split_part(string, string, decimal) (desired <string>)" );
127- errors .add (" unknown signature: substring(string, " );
122+ errors .add ("unknown signature: split_part" );
128123 errors .add ("division by zero" );
129124 errors .add ("as int, found type: decimal" );
130125 errors .add ("value type decimal doesn't match type int2 " );
131126 errors .add ("has type decimal" );
132127 errors .add ("to be of type decimal, found type int" );
133128 errors .add ("value type decimal doesn't match type int" );
134- errors .add ("unknown signature: substring(string, decimal, int)" );
135129 errors .add ("unsupported binary operator: <int> / <int> (desired <int4>)" );
136130 errors .add ("(desired <int>)" );
137131 errors .add ("(desired <int2>)" );
138132 errors .add ("(desired <int4>)" );
139133 errors .add ("found type: decimal" );
140134 errors .add ("(desired <decimal>)" );
141135 errors .add ("unknown signature: to_hex(decimal)" );
142- errors .add ("unknown signature: split_part(string, string, decimal)" );
143- errors .add ("unknown signature: left(bytes, decimal)" );
144136 errors .add ("division undefined" );
145137 errors .add ("decimal out of range" );
146138 errors .add ("unknown signature: xor_agg(decimal)" );
@@ -155,14 +147,45 @@ public static void addExpressionErrors(ExpectedErrors errors) {
155147 errors .add ("could not parse JSON: unable to decode JSON: EOF" );
156148 errors .add ("could not parse JSON: unable to decode JSON: unexpected EOF" );
157149 errors .add ("can't order by column type jsonb" );
150+ errors .add ("odd length hex string" );
158151
159152 // TODO: better control what is generated in a view
160153 errors .add ("aggregate functions are not allowed in GROUP BY" );
161154 errors .add (" must appear in the GROUP BY clause or be used in an aggregate function" );
162155
163- if (CockroachDBBugs .bug44757 ) {
156+ if (CockroachDBBugs .bug83874 ) {
164157 errors .add ("no builtin aggregate" );
165158 }
159+ if (CockroachDBBugs .bug83792 ) {
160+ errors .add ("comparison overload not found" );
161+ }
162+ if (CockroachDBBugs .bug83973 ) {
163+ errors .add ("invalid memory address" );
164+ }
165+ if (CockroachDBBugs .bug83976 ) {
166+ errors .add ("cannot execute distinct on no columns" );
167+ }
168+ if (CockroachDBBugs .bug85356 ) {
169+ errors .add ("inconsistent Case return types" );
170+ }
171+ if (CockroachDBBugs .bug85371 ) {
172+ errors .add ("index out of range" );
173+ }
174+ if (CockroachDBBugs .bug85389 ) {
175+ errors .add ("no volatility for cast decimal" );
176+ }
177+ if (CockroachDBBugs .bug85390 ) {
178+ errors .add ("lookup for ComparisonExpr" );
179+ }
180+ if (CockroachDBBugs .bug85393 ) {
181+ errors .add ("no output column equivalent to" );
182+ }
183+ if (CockroachDBBugs .bug85441 ) {
184+ errors .add ("cannot cast jsonb numeric to type bool" );
185+ }
186+ if (CockroachDBBugs .bug85499 ) {
187+ errors .add ("estimated row count must be non-zero" );
188+ }
166189
167190 errors .add ("unable to vectorize execution plan" ); // SET vectorize=experimental_always;
168191 errors .add (" mismatched physical types at index" ); // SET vectorize=experimental_always;
@@ -223,7 +246,7 @@ private static void addArrayErrors(ExpectedErrors errors) {
223246 errors .add ("unimplemented: nested arrays not supported" ); // e.g., casting a string {{1}} to an array
224247 errors .add ("malformed array" );
225248
226- errors .add ("https://github.com/cockroachdb/cockroach/issues/35707" ); // arrays don't support ORDER BY
249+ // errors.add("https://github.com/cockroachdb/cockroach/issues/35707"); // arrays don't support ORDER BY
227250
228251 errors .add ("as bytes[], found type: varbit[]" );
229252 errors .add ("to be of type decimal[], found type float[]" );
@@ -234,7 +257,7 @@ private static void addArrayErrors(ExpectedErrors errors) {
234257
235258 private static void addIntervalTypeErrors (ExpectedErrors errors ) {
236259 errors .add ("overflow during Encode" );
237- errors .add ("as type interval" );
260+ errors .add ("type interval" );
238261 }
239262
240263 private static void addJoinTypes (ExpectedErrors errors ) {
@@ -269,7 +292,6 @@ private static void addFunctionErrors(ExpectedErrors errors) {
269292 // functions
270293 errors .add ("abs of min integer value (-9223372036854775808) not defined" ); // ABS
271294 errors .add ("the input string must not be empty" ); // ASCII
272- errors .add ("unknown signature: substring(string, decimal)" ); // overflow
273295 errors .add ("overlay(): non-positive substring length not allowed" ); // overlay
274296 errors .add ("non-positive substring length not allowed" ); // overlay
275297 errors .add ("lpad(): requested length too large" ); // lpad
0 commit comments