Closed cockroach-teamcity closed 1 year ago
internal/sqlsmith.TestGenerateParse failed with artifacts on master @ 582880ae2bb5d08e83a9871735deeeb3ed892e7d:
(('24:00:00':::TIME, '52 years 6 mons 220 days 00:56:17.759472':::INTERVAL, '':::VOID))
)
AS "ta?b315" (col556)
ORDER BY
"ta?b315".col556 NULLS FIRST, "ta?b315".col556 DESC
LIMIT
18:::INT8;
STMT: 74
SELECT
'{"a": true, "baz": {"foo": "b", "iQppz1Den": true}, "foobar": "c", "hhRYw3": 1.8955539569131776}':::JSONB AS col559
FROM
(
VALUES
(NULL),
(
(
'{"Fz": "foobar", "c": {"a": false, "bNQe1arB": null, "bar": 1.758961146014182}}':::JSONB::JSONB#>ARRAY[
'.sA':::STRING,
'':::STRING,
e'[5a\x16cL*\b':::STRING,
'"':::STRING
]::STRING[]
)::JSONB
)
)
AS tab316 (col558)
WHERE
true;
STMT: 75
SELECT
2118164442:::OID AS col561
FROM
(VALUES (4256545469:::OID), (NULL), (2844334872:::OID), (1064066424:::OID), (391303601:::OID), (1650925788:::OID))
AS tab317 ("Col}560");
sqlsmith_test.go:201: CREATE FUNCTION func12()
RETURNS SETOF RECORD
IMMUTABLE
LANGUAGE SQL
AS $$SELECT tab318.col563 AS col596, 2818909677:::OID AS col597, 'G)> SG_=':::STRING AS "c'o l598" FROM (VALUES (179070871:::OID, '-42 years -2 mons -181 days -22:11:21.949529':::INTERVAL), (to_regnamespace(NULL::STRING)::REGTYPE, '-13 years -1 mons -549 days -20:38:20.002841':::INTERVAL), (regtype((e'\x0bm':::STRING::STRING || ((-2271323377942952402):::INT8::INT8 + '67c3:fedb:49ef:de70:aca4:fe64:e720:f356/0':::INET::INET)::INET::INET)::STRING::STRING)::REGTYPE, '45 years 5 mons 628 days 11:57:53.130203':::INTERVAL), (NULL, '-58 years -4 mons -749 days -19:26:23.260425':::INTERVAL), (522530429:::OID, NULL), (1193682527:::OID, '-18 years -557 days -22:11:14.090822':::INTERVAL)) AS tab318 (col562, col563), (VALUES (e':\x05A\x0fd':::STRING), ('Icz':::STRING)) AS "!t""ab340" ("cOl595") ORDER BY "!t""ab340"."cOl595" NULLS FIRST, "!t""ab340"."cOl595" DESC NULLS FIRST, "!t""ab340"."cOl595" ASC
SELECT NULL AS col603 FROM (VALUES ((SELECT st_geogfromwkb('\xd9':::BYTES::BYTES, ((-6953655908245459412):::INT8::INT8 >> (-3469207895042307768):::INT8::INT8)::INT8::INT8)::GEOGRAPHY AS "c)ol😈601" FROM (VALUES (0.6566126942634583:::FLOAT8, 'X':::STRING), (1.1024069786071777:::FLOAT8, e'=\n':::STRING), (NULL, e'$$\x11~d\x0b#0':::STRING), (1.3626487255096436:::FLOAT8, e'\x1fpe':::STRING), ((-2.3653311729431152):::FLOAT8, st_ashexwkb('01050000E0E61000000700000001020000C005000000EA88DBFD471F64C078350AC0547456C0B444F83AC5B6F8C1245F939251D9E641E421B9087EE362404F319EEB056D54C080B1003D5EFC9DC188008C62BBCCFE4110923E89D70958406115DCB64F0B4CC020D31DE0CD32B4C18756C0738591F2C12816D6F17E664F40F206CC201BC75240E01F8CCAA538C9410E01D90C5BA1F741D01EFCDDBA333040B8F7698C9F3C3540E044D9770C41C2C1F454975E6C78FBC101020000C00200000010FD642ADBA42AC0CC5E91E39C7B45404478EA536689ECC1E2234016B63CF9410CBD6371815666C00661B91C011F53402C886C8CF2A7FB41805B3C4E77AACB4101020000C00300000020C82730EF2B4CC0F23409430FC74DC031A70E5AA37FF7C160E4D779198FB6411C77EF0B70345D40B1F2C379057E48C0F2EE01788330E2C130294FBE3BB1DDC176A3462C3A98624030878E610DF7154050FF2ADF1A31DD41B087C1BC2AB000C201020000C003000000458EFB6C46EA62C0A625DF45DE663EC0E8D03BDA1CF6EB4100126F9F39379341BE4299D80D846240A0E358A4602602C0F8F6A8D04B90F2C1D614268AFCB40042E454B65F7EF55640E856C3BAAFDA33405C81DE7232430242F6FE96A7A143F44101020000C00200000014994329A40D43C074F87DD8B0B551C02CBEBE5159ECFAC126D172199425F6417A0BAEFEA72D6140CA46717A28144FC01494058F39CFE941E08A0DBE517FB54101020000C003000000D75C801B84B750C0C6A59E953FF140C0554A8766CD6B00C2465FB506C48FFDC138B28AEAFD1639403458DA4084AA43C0F6D15CFC1E3AF5C140E7F8F232B3FB418413A5CCE6D25240B000E27687AF26C078BC3821A514FD41E0931F34D545DC4101020000C00200000098B2A507455B48402D2B4170DED849C08051BE925761C7C1B4A79500B4AAFB41529B646DFF4F6140E4E1DEE01BAC48C07080514A7433CA415F03817EACD000C2':::GEOGRAPHY::GEOGRAPHY)::STRING), (0.7468131184577942:::FLOAT8, e'Hd\x12\x1a0\t\x10':::STRING)) AS tab341 ("co-l599", col600) WHERE false LIMIT 1:::INT8)), ('01070000A0E61000000600000001030000A0E610000001000000090000000BDDBCFEC24859C06800CFC2B31830C0A8D2C2BB8876E7C149524C491DB065C069644F8AD82C51C050ADCFA75FD9D8C140CD59A887502340A80A1D5FB30733C034615FF5DAE3F241F00BB2C49C2860401CE5707474A73F401ADA60B05AC6E9C1C215D5A15A2E6240543BC4150CDA4340F255606F0BACF2C11022F81D96C95E40A87C9033CE4F52403ABCB6A268F1F84120974A2A9BB840400A1E463004B4544090E3FDB65557C741C5001541E2DC63C01E39AFB96AEA5340DBC61A4266B7F2C10BDDBCFEC24859C06800CFC2B31830C0A8D2C2BB8876E7C101050000A0E610000002000000010200008009000000085904BD77E43EC0BCE3015B897D38C0662FB3129493E6C1B4DE9B62998256C038BE05C338DD52C04049769223B5FC41283D480A84293CC0A310A0A15CFF51C0E0B0A660F942B641BAF1179551FA5040CB07272CB2D354C054FC52FB0FF7E1412C6793F850B55E4018E810EBA15A30C088966B9EA1A1D4C19AE3E4FCAC8661409CAAC7D17A6A394020C070C57515EAC1CA618997B8C1644074B7DBAC4390524080C527A480CB9C419083CF2E468B65C0805E5450D22E4840E2D979E70D23FCC160F2683D75554AC0E05691C45D601CC0A457DF9ED451F4C101020000800400000064F8E5F534D54CC0A00B0267837625C09ADA7B5634BEF6C19011977B81BC3D404C1FF53F081634C0B89CD392B590FDC1307820EBAF164D40564FA3E0951649C0AA22B4783CA2E8C124F36B3D5D015D408027F549265127C0C1AD19C47FA201C201010000A0E6100000EC6902CB1E664840985E2F66337950C074784D69EE04FA4101010000A0E6100000DC0E377F98B55240729C23C0D4704FC040BD4DA08ACCB5C101010000A0E61000001CC4BA5C77FD42C0C5EC2A8EB8AD42C0B051AA541793FFC101010000A0E61000002C47757004C25740A067DE304EB94F40B8DC0BF1E81AE141':::GEOGRAPHY), (st_s2covering('01040000A0E6100000080000000101000080A4DB5E2515C050C0CE99A587A7B9404018A719F20531D74101010000806D167E50F31961C06335A386151656C0E0D6D941A122EB410101000080B041EA15936C244080ED73E3E1754140267FACF2668AF0C101010000803C706E3576655C4008C51ADDAA0D3940AED32399747500420101000080484B1D8BF46A34C0E04A7B85B8703840A006CA056E3FCCC101010000801AA90CE7852B5EC024832BB8B1614D40D6B728D1D65A00C201010000801F829189D88962C0C8394F34667D51C092EA9DA86ECBF6C101010000805C4147EE10EB634080EDCC683652F0BF87386CBAD928F5C1':::GEOGRAPHY::GEOGRAPHY)::GEOGRAPHY), (st_segmentize(st_geogfromtext(e'\U00002603':::STRING::STRING)::GEOGRAPHY::GEOGRAPHY, (-1.2416172726014523):::FLOAT8::FLOAT8)::GEOGRAPHY)) AS tab342 (colͪ602) ORDER BY tab342.colͪ602, tab342.colͪ602 DESC NULLS FIRST LIMIT 59:::INT8
WITH with121 ("co�l604") AS (SELECT * FROM (VALUES (3468551557:::OID), (1558997873:::OID), (302318867:::OID), (0:::OID)) AS tab343 ("co�l604")), with122 ("c o\\xcbl605", "c""ol606") AS (SELECT * FROM (VALUES (15401:::INT8, 'BOX(-0.8032976416325961 0.49853900010205443,0.37081259123062094 0.631740584458595)':::BOX2D)) AS tab344 ("c o\\xcbl605", "c""ol606")), with123 ("-col607") AS (SELECT * FROM (VALUES (COALESCE(COALESCE(ARRAY[(-21130):::INT8], ARRAY[(-1):::INT8,11552:::INT8]), ARRAY[31443:::INT8,22566:::INT8,(-10734):::INT8,14003:::INT8,8061:::INT8])), (ARRAY[6026:::INT8]), (ARRAY[(-8921):::INT8,0:::INT8,17403:::INT8]), (ARRAY[19517:::INT8,12993:::INT8,23537:::INT8]), (ARRAY[(-3917):::INT8,(-13012):::INT8]), (ARRAY[(-128):::INT8,3574:::INT8,(-1):::INT8])) AS tab345 ("-col607")) SELECT COALESCE("\\u98ECcte_ref36"."-col607", ARRAY[(-4418):::INT8,820:::INT8,29196:::INT8,(-23225):::INT8,29386:::INT8,(-5691):::INT8]) AS col608, ARRAY[]:::INT2[] AS c😰ol609 FROM with123 AS "\\u98ECcte_ref36", with123 AS cte_ref37 ORDER BY "\\u98ECcte_ref36"."-col607" NULLS LAST LIMIT 29:::INT8
WITH wit_h124 (col610) AS (SELECT * FROM (VALUES (NULL)) AS "tab(346" (col610)), "\\x80with125" (col611) AS (SELECT * FROM (VALUES (B'0000000000000000000000000000000000000000'), (B'0110110101110001011100010011100011010001'), (B'0101000100001110000110000100101011110100')) AS tab347 (col611)) SELECT (-906597767):::INT8 AS col612 FROM wit_h124 AS cte_ref38 WHERE true LIMIT 17:::INT8
SELECT '1973-06-26':::DATE AS "c%qo̳ l617", "ta*b348".c̽ol613 AS col618 FROM (VALUES ('08:18:11.363219+03:28':::TIMETZ)) AS "ta*b348" (c̽ol613), (SELECT tab349."c🙂ol%c8614" AS col615 FROM (VALUES ('1994-07-03':::DATE), ('1988-02-29':::DATE), (parse_date(e'<4\f4:T':::STRING::STRING)::DATE)) AS tab349 ("c🙂ol%c8614") LIMIT 49:::INT8) AS tab350 (col616) WHERE false ORDER BY "ta*b348".c̽ol613 DESC NULLS LAST
SELECT tab351."co%67l619" AS col620 FROM (VALUES ('1995-07-27 21:12:16.000122':::TIMESTAMP), ('1997-11-09 14:40:44.000088':::TIMESTAMP), (('1995-01-10':::DATE::DATE - '-68 years -10 mons -693 days -24:25:02.192954':::INTERVAL::INTERVAL)::TIMESTAMP), ('2017-10-09 01:32:41.000794':::TIMESTAMP)) AS tab351 ("co%67l619") WHERE true$$: at or near "\": syntax error
panic.go:540: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/24a1830a60e8c96e6a05506359144db7/logTestGenerateParse2061257663
--- FAIL: TestGenerateParse (9.01s)
Parameters: TAGS=bazel,gss,race
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
internal/sqlsmith.TestGenerateParse failed with artifacts on master @ 582880ae2bb5d08e83a9871735deeeb3ed892e7d:
),
"wi'th35" ("c ol231")
AS (
SELECT
*
FROM
(
VALUES
('1993-03-02':::DATE),
('1991-12-08':::DATE),
('1974-08-06':::DATE),
('1977-01-25':::DATE),
('1983-10-29':::DATE)
)
AS tab111 ("c ol231")
)
SELECT
"cte_rEf7"."co l230" AS "'col232"
FROM
"wit%v😈h34" AS "cte_rEf7";
STMT: 38
SELECT
tab112."col1_ 2" AS "co%cal233",
tab112."col\\U0008742B1_3" AS col234,
e'\'DeU\' \'NqT\' \'PR\':312B,363A,812A \'UsxcL\' \'cVqgls\':617B,869A \'kLHl\' \'muQTH\' \'wP\':908C':::TSVECTOR
AS "co'l235",
tab112."c""ol1__5" AS col236
FROM
defaultdb.public.table1@"table1_col\\U0008742B1_3_idx" AS tab112
WHERE
false
LIMIT
75:::INT8;
sqlsmith_test.go:201: CREATE FUNCTION "%vfunc4"()
RETURNS RECORD
LANGUAGE SQL
AS $$SELECT (-1171173.475116328636):::DECIMAL AS col237, "ta!b113"."%qcol2_0" AS col238, "ta!b113"."%qcol2_0" AS "col"" 239", "ta!b113".tableoid AS "co,l240", '''FWqhA'' ''FbQQEyzq'' ''HLZlSJ'':787B,939B ''IaH'' ''PMnE'':174B,502C ''i'':338C,564C,610B ''jG'' ''nEDeY'':26B,776B,824A ''uYwfoPU'':20C,419A ''zOIKkZ'':140B,228C,972B':::TSVECTOR AS "ĉo_ l 241" FROM defaultdb.public."table{2"@"table{2_expr_expr1_%qcol2_0_key" AS "ta!b113" WHERE false LIMIT 61:::INT8
WITH "With36" (" col͐242", "c\\xd7o-😽l243", col244, "co%cdl 245") AS (SELECT * FROM (VALUES ('B?.F}f':::STRING, NULL, NULL, '0001-01-01 00:00:00':::TIMESTAMP), (NULL, '''RnDOERziQJ''':::TSQUERY, ARRAY[21755:::INT8,16207:::INT8], '2022-09-25 00:56:20.000263':::TIMESTAMP), (NULL, NULL, ARRAY[14335:::INT8,(-29842):::INT8], '2009-11-22 22:57:58.000753':::TIMESTAMP), (e';\x0b\x02+$s_\t':::STRING, '!''PZ'' | ''dglvnK''':::TSQUERY, ARRAY[23336:::INT8], '1978-04-15 22:41:28.000716':::TIMESTAMP)) AS " tab114" (" col͐242", "c\\xd7o-😽l243", col244, "co%cdl 245")) SELECT '00000000-0000-0000-0000-000000000000':::UUID AS col246, cte_ref8."co%cdl 245" AS co😭l247, tab115.col3_3 AS "col 248", tab115.tableoid AS col249, 19280:::INT8 AS "co/😰l250", cte_ref8." col͐242" AS col251 FROM "With36" AS cte_ref8, defaultdb.public.table3@table3_pkey AS tab115 WHERE (NOT false) ORDER BY tab115."c-ol3_.13" ASC LIMIT 45:::INT8
SELECT tab116.col2_1 AS "'c͟ol252", tab116."%qcol2_0" AS col253, ('1987-11-09':::DATE::DATE || tab116."%qcol2_0"::STRING)::STRING AS "c�ol%\f254", 865292493:::OID AS col255, (-0.04077187492157611293):::DECIMAL AS col256 FROM defaultdb.public."table{2"@[0] AS tab116 WHERE false
SELECT '03:19:43.98226':::TIME AS col257 LIMIT 87:::INT8
SELECT '''C'':644A,667C,821B,835B ''FGT'' ''GWf'' ''JIkEw'':152C,524C,944B ''WX'' ''XCLEUpxb'':44A,88B,439B,617B ''fMpNhyJB'' ''hAvB'':137B,339B ''j'':540B,676A,924C,937C ''mJvPr'':167C,238C':::TSVECTOR AS col258, "tab'117".tableoid AS col259, e'F!H\x01h\x0b\x1a':::STRING AS " col260", "t-%vab118"."\\u0C60col2_2" AS " c̩ol261", NULL AS "c\f😁ol262", "tab'117"."\\u0C60col2_2" AS col263, "t-%vab118"."\\u0C60col2_2" AS col264, "tab'117".col2_1 AS col265, "tab'117".crdb_internal_mvcc_timestamp AS col266, "t-%vab118".tableoid AS col267 FROM defaultdb.public."table{2"@"table{2_expr_expr1_%qcol2_0_key" AS "tab'117", defaultdb.public."table{2"@"table{2_expr_expr1_%qcol2_0_key" AS "t-%vab118" LIMIT 8:::INT8
WITH "wit{h37" (col268) AS (SELECT * FROM (VALUES (2405043353:::OID), (848825175:::OID), (0:::OID), (132212782:::OID), (NULL), (regprocedure('p$$|!T v2':::STRING::STRING)::REGPROCEDURE)) AS "t%pab119" (col268)), with40 (col272, "c%p😆ol273") AS (SELECT * FROM (VALUES ((-1882103446):::INT8, (WITH with38 (col269) AS (SELECT * FROM (VALUES ('a':::STRING), (e'\x10':::STRING)) AS tab120 (col269)), with39 (😃col270) AS (SELECT * FROM (VALUES (('02:14:27.55545':::TIME::TIME + NULL::INTERVAL)::TIME), ('02:37:57.225221':::TIME), (NULL), ('22:15:54.546569':::TIME), ('12:33:56.793441':::TIME)) AS "'tab121" (😃col270)) SELECT ARRAY['2025-11-15 16:44:12.000447':::TIMESTAMP,'1974-10-25 20:43:54.000238':::TIMESTAMP,'2014-01-01 23:44:15.000546':::TIMESTAMP,'2011-01-25 14:05:04.00005':::TIMESTAMP,'2019-06-13 08:10:35.000303':::TIMESTAMP] AS "Col271" FROM defaultdb.public.table3@[0] AS tab122 WHERE true ORDER BY tab122."cO(l3̊_6" ASC, tab122.col3_4 DESC, tab122."col%q3_11" DESC NULLS LAST, tab122."
co'l3_2" DESC NULLS LAST, tab122.col3_4 DESC LIMIT 1:::INT8)), ((-86411724):::INT8, ((ARRAY['1973-06-26 19:43:27.000515':::TIMESTAMP,'0001-01-01 00:00:00':::TIMESTAMP,'1982-01-18 12:07:12.000933':::TIMESTAMP,'2000-07-29 18:50:50.000143':::TIMESTAMP,'2001-11-25 00:20:43.000171':::TIMESTAMP,'1987-05-03 02:09:27.000428':::TIMESTAMP,'2001-12-21 06:43:16.00049':::TIMESTAMP]::TIMESTAMP[] || '2031-09-30 19:05:23.000097':::TIMESTAMP::TIMESTAMP)::TIMESTAMP[]::TIMESTAMP[] || ARRAY['1974-08-03 02:03:46.000384':::TIMESTAMP,'2003-12-21 09:24:51.000607':::TIMESTAMP,'2015-11-22 11:08:17.000506':::TIMESTAMP]::TIMESTAMP[])::TIMESTAMP[]), (1780971159:::INT8, NULL), ((-1978800150):::INT8, ARRAY['2032-08-31 14:36:14.000737':::TIMESTAMP,'2026-03-19 22:44:37.000516':::TIMESTAMP,'2023-11-19 14:44:59.000492':::TIMESTAMP]), (376841296:::INT8, ('1970-03-03 05:31:23.000781':::TIMESTAMP::TIMESTAMP || ARRAY[]:::TIMESTAMP[]::TIMESTAMP[])::TIMESTAMP[])) AS tab123 (col272, "c%p😆ol273")) SELECT tab124.col1_4 AS col274, '1988-09-26 18:05:26.000908+00':::TIMESTAMPTZ AS "co%ql275" FROM defaultdb.public.table1 AS tab124 JOIN defaultdb.public.table1 AS tab125 ON (tab124.col1_4) = (tab125.col1_4) WHERE NULL ORDER BY tab125.col1_4 NULLS LAST, tab125.col1_4 DESC NULLS FIRST, tab125.col1_4 ASC NULLS LAST
SELECT ("ta
b126".col3_4::INT8 % "ta
b126"."
co'l3_2"::INT8)::INT8 AS col276 FROM defaultdb.public.table3@table3_pkey AS "ta
b126", defaultdb.public."table{2"@[0] AS "\vtab127" WHERE true ORDER BY "\vtab127".col2_1 ASC NULLS FIRST$$: at or near "|": syntax error
panic.go:522: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/24a1830a60e8c96e6a05506359144db7/logTestGenerateParse3157273506
--- FAIL: TestGenerateParse (10.06s)
Parameters: TAGS=bazel,gss,deadlock
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
Dupe of #101253
Depending how long it takes to fix may need to disable CREATE FUNCTION
in sqlsmith until it's resolved.
internal/sqlsmith.TestGenerateParse failed with artifacts on master @ 582880ae2bb5d08e83a9871735deeeb3ed892e7d:
Parameters:
TAGS=bazel,gss
Help
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
/cc @cockroachdb/sql-queries
This test on roachdash | Improve this report!
Jira issue: CRDB-26891