Commit 4aaf05a
Merge #37057
37057: sql: Fix issues causing failures in SQLSmith r=andy-kimball a=andy-kimball
There are (at least) 3 issues that are currently causing the SQLSmith nightly
test to fail:
1. Issue #36830 - panic: windowNode can't be run in local mode
2. Panic when calling builtin functions with ANY parameters
3. Panic when json_build_object is called with DBitArray datum
This commit fixes #2 and #3:
2. SQLSmith now generates a random datum type when it encounters an ANY param.
3. Add DBitArray to the list of datums handled by the json_build_object function.
In addition, the fix for #2 exposed a SQLSmith bug, where it ws unable to
parse the type names of existing tables. The fix is to change typeFromName to
use parser.ParseType.
After these fixes, and once issue #36830 is fixed, the SQLSmith tests should
start passing again in nightlies.
Release note (sql change): Fix panic when json_build_object is called with
BIT/VARBIT values.
Co-authored-by: Andrew Kimball <andyk@cockroachlabs.com>File tree
4 files changed
+16
-26
lines changed- pkg
- internal/sqlsmith
- sql
- logictest/testdata/logic_test
- sem/builtins
- sqlbase
4 files changed
+16
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 24 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
48 | 28 | | |
49 | 29 | | |
50 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4473 | 4473 | | |
4474 | 4474 | | |
4475 | 4475 | | |
4476 | | - | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
4477 | 4479 | | |
4478 | 4480 | | |
4479 | 4481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
0 commit comments