Closed cockroach-teamcity closed 2 years ago
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 42e5f9492d0d8d93638241303bca984fe78baae3:
Random syntax error:
rsg_test.go:776: Crash detected: server panic: driver: bad connection
Query:
WITH
with_158258 (col_901735)
AS (
SELECT
*
FROM
(VALUES (3407595982:::OID), (0:::OID), (1745919730:::OID), (NULL), (0:::OID), (4222019534:::OID))
AS tab_387537 (col_901735)
),
with_158259 (col_901736) AS (SELECT '+':::STRING AS col_901736),
with_158260 (col_901737) AS (SELECT * FROM (VALUES ('t':::rand_typ_0)) AS tab_387538 (col_901737))
SELECT
(
WITH
with_158261 (col_901738, col_901739)
AS (
SELECT
*
FROM
(
VALUES
(NULL, 0:::OID),
(
ARRAY[4247769439:::OID,3856732427:::OID,2838309636:::OID,0:::OID,0:::OID],
985129623:::OID
),
(ARRAY[2642535069:::OID], NULL)
)
AS tab_387539 (col_901738, col_901739)
),
with_158262 (col_901740)
AS (
SELECT
*
FROM
(
VALUES
(1761523074792110439:::INT8),
(NULL),
(NULL),
(((-1195619079708105239):::INT8::INT8 & 8307733534922412430:::INT8::INT8)::INT8),
(NULL),
(5290987623530837974:::INT8)
)
AS tab_387540 (col_901740)
INTERSECT
SELECT
*
FROM
(
VALUES
(
((SELECT (-7029832025633519125):::INT8 AS col_901741 LIMIT 1:::INT8)::INT8 << ((-7274565707336508593):::INT8::INT8 & 8605448309932280169:::INT8::INT8)::INT8::INT8)::INT8
),
(6939180640324534610:::INT8),
((-3484725302083541828):::INT8),
((-5943041195556473972):::INT8)
)
AS tab_387541 (col_901742)
)
SELECT
cte_ref_45943.col_901737 AS col_901743
FROM
defaultdb.public.table4@table4_col4_15_col4_0_idx AS tab_387542, with_158262 AS cte_ref_45944
WHERE
true
ORDER BY
tab_387542.col4_10, tab_387542.col4_5, tab_387542.col4_1 DESC
LIMIT
1:::INT8
)
AS col_901744
FROM
with_158260 AS cte_ref_45943
LIMIT
52:::INT8;
Schema:
rsg_test.go:593: To reproduce, use schema:
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 INT4, col1_1 TIME NOT NULL, col1_2 CHAR NOT NULL, col1_3 INTERVAL NOT NULL, col1_4 TIMESTAMP NOT NULL, col1_5 DATE, PRIMARY KEY (col1_2 DESC, col1_1 ASC, col1_3 DESC), col1_6 STRING AS (lower(CAST(col1_5 AS STRING))) VIRTUAL, INDEX (col1_3, col1_0 DESC, col1_5 DESC, col1_2 ASC, lower(CAST(col1_3 AS STRING)), col1_6 DESC) WHERE (table1.col1_5 = '-infinity':::DATE) AND (table1.col1_4 = '294276-12-31 23:59:59.999999':::TIMESTAMP), UNIQUE (col1_6, col1_3, col1_4, col1_0 DESC, col1_1, col1_2 DESC, col1_5 DESC) WHERE table1.col1_6 <= e'\U00002603':::STRING, INDEX (col1_3, col1_6 DESC, lower(CAST(col1_1 AS STRING)) DESC, (col1_0 + 660378943:::INT8) ASC, col1_1) STORING (col1_0, col1_4, col1_5) WHERE (table1.col1_5 = '1970-01-01':::DATE) OR (table1.col1_2 <= e'\x00':::STRING), UNIQUE (col1_1, col1_3, col1_0 ASC, col1_4 ASC, col1_5), UNIQUE (lower(CAST(col1_1 AS STRING)) ASC, col1_1, col1_0 DESC) WHERE ((table1.col1_0 > 0:::INT8) AND (table1.col1_4 = '-4713-11-24 00:00:00':::TIMESTAMP)) OR (table1.col1_6 >= 'X':::STRING), UNIQUE (col1_6 DESC, col1_3 ASC, col1_4 ASC) STORING (col1_0), INDEX (col1_4 ASC) WHERE ((((table1.col1_0 = 1:::INT8) OR (table1.col1_4 != '3000-01-01 00:00:00':::TIMESTAMP)) OR (table1.col1_5 <= '1970-01-01':::DATE)) OR (table1.col1_2 > '"':::STRING)) OR (table1.col1_1 >= '24:00:00':::TIME));
CREATE TABLE table2 (col2_0 INTERVAL NOT NULL, col2_1 BYTES NOT NULL, col2_2 BYTES NOT NULL, PRIMARY KEY (col2_0 ASC, col2_2 DESC, col2_1 ASC), INDEX (col2_1 ASC, col2_2) WHERE (table2.col2_2 > '\x58':::BYTES) OR (table2.col2_1 >= '\xe29883':::BYTES), UNIQUE (col2_0 ASC, col2_2 ASC), INDEX (col2_0 DESC, col2_1) WHERE table2.col2_1 <= '\x':::BYTES, INDEX (col2_1 DESC) WHERE table2.col2_2 > '\xff':::BYTES, UNIQUE (col2_0, col2_2 ASC, col2_1), INDEX (col2_1 ASC, col2_0 ASC, (CASE WHEN col2_1 IS NULL THEN '/{hv':::STRING ELSE '(':::STRING END) ASC), UNIQUE (col2_2 DESC, col2_0 DESC, col2_1));
CREATE TABLE table3 (col3_0 "char" NOT NULL, col3_1 "char" NULL, col3_2 BOOL, col3_3 BOX2D NULL, col3_4 JSONB, col3_5 REGROLE NULL, col3_6 TIME, col3_7 STRING AS (lower(CAST(col3_4 AS STRING))) STORED, col3_8 STRING NULL AS (lower(CAST(col3_5 AS STRING))) STORED, col3_9 STRING AS (lower(CAST(col3_4 AS STRING))) VIRTUAL, UNIQUE (col3_3, col3_1 ASC), INDEX (col3_6 DESC) STORING (col3_0, col3_2, col3_5, col3_8), UNIQUE (col3_1 DESC, col3_5) WHERE (((table3.col3_7 < '':::STRING) OR (table3.col3_8 != 'X':::STRING)) OR (table3.col3_0 < 'X':::STRING)) OR (table3.col3_1 > e'\x00':::STRING));
CREATE TABLE table4 (col4_0 STRING NOT NULL, col4_1 BOX2D, col4_2 "char" NOT NULL, col4_3 REGROLE NULL, col4_4 JSONB NOT NULL, col4_5 GEOMETRY NULL, col4_6 GEOMETRY NULL, col4_7 INT8 NOT NULL, col4_8 UUID NOT NULL, col4_9 INT2 NULL, col4_10 REGCLASS NOT NULL, col4_11 REGNAMESPACE NOT NULL, col4_12 INT2 NULL, col4_13 INT2 NULL AS (col4_9 + col4_7) STORED, col4_14 INT8 NULL AS ((col4_7 + col4_9) + col4_12) STORED, col4_15 INT2 NULL AS ((col4_12 + col4_9) + col4_7) STORED, INDEX (col4_15 ASC, col4_0));
ALTER TABLE table1 INJECT STATISTICS '[{"columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 312, "histo_buckets": [{"distinct_range": 0, "num_eq": 8040857850026419200, "num_range": 0, "upper_bound": "-2000-01-01 00:00:00"}, {"distinct_range": 20528.862433405713, "num_eq": 80000, "num_range": 70000, "upper_bound": "1974-01-03 22:05:05.000761"}, {"distinct_range": 42.17318586345637, "num_eq": 7093871431879710213, "num_range": 70, "upper_bound": "1983-07-13 21:35:49.000744"}, {"distinct_range": 640115889259741700, "num_eq": 6000000, "num_range": 1111712375619575027, "upper_bound": "2018-07-28 15:15:49.000832"}, {"distinct_range": 111087231103806700, "num_eq": 900000, "num_range": 590172507886231959, "upper_bound": "2019-03-20 14:42:16.000948"}, {"distinct_range": 5984827535631562000, "num_eq": 5892722430532452323, "num_range": 5984827535631561916, "upper_bound": "2022-07-08 10:31:01.000767"}, {"distinct_range": 0, "num_eq": 40268669575171312, "num_range": 60, "upper_bound": "294276-12-31 23:59:59.999999"}], "histo_col_type": "TIMESTAMP", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 110, "histo_col_type": "", "name": "__auto__", "null_count": 998, "row_count": 1000}, {"columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 18, "histo_col_type": "STRING", "name": "__auto__", "null_count": 492, "row_count": 1000}, {"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 876, "histo_col_type": "", "name": "__auto__", "null_count": 271, "row_count": 1000}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 331, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 321, "histo_buckets": [{"distinct_range": 0, "num_eq": 30, "num_range": 0, "upper_bound": "="}], "histo_col_type": "CHAR", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 501, "histo_buckets": [{"distinct_range": 0, "num_eq": 799072043221283897, "num_range": 0, "upper_bound": "-51 years -6 mons -817 days -10:50:22.725832"}, {"distinct_range": 0, "num_eq": 4319126586563682158, "num_range": 8000000000, "upper_bound": "00:00:00"}, {"distinct_range": 70, "num_eq": 5707567581776572964, "num_range": 70, "upper_bound": "25 years 2 mons 13 days 05:41:54.731592"}, {"distinct_range": 1547861143348159200, "num_eq": 4805235814250810599, "num_range": 2512121485685128693, "upper_bound": "30 years 9 mons 424 days 07:41:45.795802"}, {"distinct_range": 0, "num_eq": 4206869083366310608, "num_range": 3000000000, "upper_bound": "45 years 9 mons 359 days 18:39:33.00272"}, {"distinct_range": 700000, "num_eq": 3000000000, "num_range": 700000, "upper_bound": "61 years 11 mons 202 days 03:52:04.654107"}, {"distinct_range": 0, "num_eq": 40000000, "num_range": 4000000000, "upper_bound": "69 years 2 mons 53 days 13:43:06.739228"}, {"distinct_range": 1347452844438484000, "num_eq": 800, "num_range": 1347452844438484095, "upper_bound": "81 years 3 mons 137 days 17:49:27.051636"}], "histo_col_type": "INTERVAL", "name": "__auto__", "null_count": 0, "row_count": 1000}]':::JSONB;
ALTER TABLE table2 INJECT STATISTICS e'[{"columns": ["col2_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 281, "histo_buckets": [{"distinct_range": 0, "num_eq": 4157749740065491359, "num_range": 0, "upper_bound": "-50 years -6 mons -810 days -09:42:37.764894"}, {"distinct_range": 0, "num_eq": 4828651694862718268, "num_range": 5090142042746911277, "upper_bound": "20 years 5 mons 516 days 06:55:04.555359"}, {"distinct_range": 52131.79940815484, "num_eq": 1039202344801677102, "num_range": 60000, "upper_bound": "52 years 10 mons 145 days 20:40:12.758786"}, {"distinct_range": 5600717970899502000, "num_eq": 779211143405654062, "num_range": 5600717970899502160, "upper_bound": "72 years 5 mons 445 days 00:14:56.003189"}], "histo_col_type": "INTERVAL", "name": "__auto__", "null_count": 0, "row_count": 500}, {"columns": ["col2_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 295, "histo_buckets": [{"distinct_range": 0, "num_eq": 1679706900989767363, "num_range": 0, "upper_bound": "\\\\x426a"}, {"distinct_range": 0, "num_eq": 10, "num_range": 6468937279271778941, "upper_bound": "\\\\x53e305514a"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 0, "row_count": 500}, {"columns": ["col2_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 313, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "\\\\x116deebb18d08d"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 0, "row_count": 500}]':::JSONB;
ALTER TABLE table3 INJECT STATISTICS e'[{"columns": ["col3_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 399581, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"columns": ["col3_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 865395, "histo_buckets": [{"distinct_range": 0, "num_eq": 30000000, "num_range": 0, "upper_bound": "\\u0011"}, {"distinct_range": 0, "num_eq": 3553189679518515893, "num_range": 1000000000, "upper_bound": "\\u0019"}, {"distinct_range": 0, "num_eq": 300000000, "num_range": 8560624504918797639, "upper_bound": "*"}, {"distinct_range": 3389175266050411500, "num_eq": 8495935541058239890, "num_range": 3389175266050411327, "upper_bound": "-"}, {"distinct_range": 500000000, "num_eq": 70000000000, "num_range": 500000000, "upper_bound": "="}, {"distinct_range": 115079071.7216826, "num_eq": 10000000000, "num_range": 1000000000, "upper_bound": "a"}, {"distinct_range": 90086.02427146702, "num_eq": 7882816868044767036, "num_range": 100000, "upper_bound": "c"}, {"distinct_range": 59403.56601098553, "num_eq": 5435611871273470051, "num_range": 60000, "upper_bound": "|"}], "histo_col_type": "\\"char\\"", "name": "__auto__", "null_count": 508807, "row_count": 900000}, {"columns": ["col3_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 329052, "histo_col_type": "TIME", "name": "__auto__", "null_count": 204971, "row_count": 900000}, {"columns": ["col3_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 281055, "histo_col_type": "", "name": "__auto__", "null_count": 640787, "row_count": 900000}, {"columns": ["col3_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 394874, "histo_col_type": "", "name": "__auto__", "null_count": 848416, "row_count": 900000}, {"columns": ["col3_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 446695, "histo_col_type": "", "name": "__auto__", "null_count": 133856, "row_count": 900000}, {"columns": ["col3_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 812616, "histo_buckets": [{"distinct_range": 0, "num_eq": 8396597880634951955, "num_range": 0, "upper_bound": "BOX(-10 -10,10 10)"}, {"distinct_range": 8000000000, "num_eq": 3689811592072219148, "num_range": 8000000000, "upper_bound": "BOX(-1.4615174553112773 0.43535620620556104,-1.2871835078986007 0.4875366927953163)"}, {"distinct_range": 0, "num_eq": 2000, "num_range": 2288631884201288664, "upper_bound": "BOX(-1.3888157198555935 -2.0118725885774755,0.06677094245159026 1.4272767089035208)"}, {"distinct_range": 0, "num_eq": 700000, "num_range": 0, "upper_bound": "BOX(-0.7513871828051 1.7925854010273623,0.2648528139776587 1.8100359933231067)"}, {"distinct_range": 2909360565802321000, "num_eq": 6287337460594006392, "num_range": 2909360565802320668, "upper_bound": "BOX(-0.7415356827834596 -0.4095602192092703,0.8476681406453345 1.183697328410931)"}], "histo_col_type": "BOX2D", "name": "__auto__", "null_count": 135574, "row_count": 900000}, {"columns": ["col3_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 53337, "histo_col_type": "", "name": "__auto__", "null_count": 667857, "row_count": 900000}, {"columns": ["col3_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 482062, "histo_col_type": "", "name": "__auto__", "null_count": 438743, "row_count": 900000}, {"columns": ["col3_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 305288, "histo_col_type": "", "name": "__auto__", "null_count": 177866, "row_count": 900000}]':::JSONB;
ALTER TABLE table4 INJECT STATISTICS '[{"columns": ["col4_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4551692888402024179, "histo_col_type": "", "name": "__auto__", "null_count": 5918265743571978, "row_count": 7026934140942060281}, {"columns": ["col4_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5660417628613728077, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5175106756061734533, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1365369517786618357, "histo_col_type": "", "name": "__auto__", "null_count": 5797988337183281764, "row_count": 7026934140942060281}, {"columns": ["col4_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4084154268334966260, "histo_col_type": "", "name": "__auto__", "null_count": 801532926422457321, "row_count": 7026934140942060281}, {"columns": ["col4_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 522775153540691815, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6300921620300626937, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1211417531168415115, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1363840135942325733, "histo_col_type": "", "name": "__auto__", "null_count": 6011749897085614669, "row_count": 7026934140942060281}, {"columns": ["col4_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3561713829440176776, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 145090278999712598, "histo_col_type": "INT2", "name": "__auto__", "null_count": 3093351813397482104, "row_count": 7026934140942060281}, {"columns": ["col4_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1982994314139094115, "histo_col_type": "", "name": "__auto__", "null_count": 1715973864649202042, "row_count": 7026934140942060281}, {"columns": ["col4_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5628262785819954323, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7026934140942060281}, {"columns": ["col4_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2190219035097486747, "histo_col_type": "", "name": "__auto__", "null_count": 3282355648631509737, "row_count": 7026934140942060281}, {"columns": ["col4_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1390256889335429321, "histo_col_type": "", "name": "__auto__", "null_count": 2488021807784433366, "row_count": 7026934140942060281}, {"columns": ["col4_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1115320239018360279, "histo_col_type": "", "name": "__auto__", "null_count": 4048279312012196547, "row_count": 7026934140942060281}]':::JSONB;
CREATE TYPE rand_typ_0 AS ENUM ('ojh', 'e', 'j', 'msmoo', 'irk', 't');
;
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:597:
rsg_test.go:598: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith196459823
--- FAIL: TestRandomSyntaxSQLSmith (300.80s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ e369d86b3bac2b9f40d760c3e6e49f55b7e15abe:
Random syntax error:
rsg_test.go:776: Crash detected: server panic: driver: bad connection
Query:
SELECT
tab_559860._inet AS col_1290778,
(
SELECT
tab_559865._jsonb AS col_1290779
FROM
defaultdb.public.seed AS tab_559865
JOIN defaultdb.public.seed AS tab_559866 ON (tab_559865._jsonb) = (tab_559866._jsonb)
WHERE
false
LIMIT
1:::INT8
)
AS col_1290780,
NULL AS col_1290781,
tab_559859.crdb_internal_idx_expr_1 AS col_1290782,
(tab_559860._bool AND tab_559860._bool) AS col_1290783
FROM
defaultdb.public.table1@table1_col1_3_idx AS tab_559859
JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_559860 ON
(tab_559859.crdb_internal_mvcc_timestamp) = (tab_559860.crdb_internal_mvcc_timestamp)
AND (tab_559859.col1_3) = (tab_559860.crdb_internal_mvcc_timestamp)
WHERE
(st_relatematch(tab_559860._string::STRING, e'4\n\x04\x0ec\x1e':::STRING::STRING)::BOOL OR (1.1647691169066348:::FLOAT8::FLOAT8 IN (WITH with_229118 (col_1290772) AS (SELECT * FROM (VALUES ('a16fc37f-d327-45a6-84c8-5bf1a3727483':::UUID), ('e4c0c69c-1f9c-4552-bcdd-08a3f970d750':::UUID), ('3ad10641-a442-471a-bf6c-7b57d3bff6a6':::UUID), ('eba088ee-fdd6-497d-af45-d58e9b381ec8':::UUID)) AS tab_559861 (col_1290772)), with_229119 (col_1290773) AS (SELECT * FROM (VALUES (',':::STRING), ('R':::STRING), (CASE WHEN false THEN NULL ELSE e'\x1d':::STRING END)) AS tab_559862 (col_1290773)) SELECT tab_559860._float8::FLOAT8 AS col_1290777 FROM defaultdb.public.seed@seed__int8__float8__date_idx AS tab_559863 WHERE tab_559863._inet::INET IN (WITH with_229120 (col_1290774) AS (SELECT 1768541787:::OID AS col_1290774), with_229121 (col_1290775) AS (SELECT * FROM (VALUES (764542687:::OID), (2041558980:::OID), (COALESCE(3201451559:::OID, 2406485906:::OID)), (COALESCE(2760146369:::OID, 0:::OID))) AS tab_559864 (col_1290775)) SELECT tab_559863._inet::INET AS col_1290776) ORDER BY tab_559863._date DESC, tab_559863._int2, tab_559863.tableoid, tab_559863._bool DESC LIMIT 7:::INT8)));
Schema:
rsg_test.go:593: To reproduce, use schema:
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 BIT(46) NOT NULL, col1_1 INT2, col1_2 INT8 NULL, col1_3 DECIMAL NOT NULL, PRIMARY KEY (col1_3 DESC), INDEX ((col1_3 + 4.10546386675874321E+22:::DECIMAL) DESC, col1_3 DESC, col1_0 ASC) STORING (col1_1, col1_2) WHERE ((table1.col1_2 >= (-9223372036854775807):::INT8) OR (table1.col1_1 >= 1:::INT8)) AND (table1.col1_3 >= (-1):::DECIMAL), INDEX (col1_3 ASC), INDEX (col1_2 ASC, col1_1, col1_0 DESC, col1_3 DESC), INDEX (col1_1, col1_0 ASC, (col1_1 + col1_2) DESC) STORING (col1_2) WHERE table1.col1_1 != 0:::INT8);
ALTER TABLE table1 INJECT STATISTICS '[{"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 878288368505984710, "histo_col_type": "", "name": "__auto__", "null_count": 3813527286417626672, "row_count": 7197251567079449531}, {"columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7109882655228711240, "histo_col_type": "DECIMAL", "name": "__auto__", "null_count": 0, "row_count": 7197251567079449531}, {"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6441320082047686447, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7197251567079449531}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1779632520856074229, "histo_buckets": [{"distinct_range": 0, "num_eq": 6033902841164556416, "num_range": 0, "upper_bound": "301"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 3801595803484334185, "row_count": 7197251567079449531}]':::JSONB;
CREATE TYPE rand_typ_0 AS ENUM ('yzqafh', 'r', 'mfvdxa', 'ig', 'vzkma', 'eaqx');
CREATE TYPE rand_typ_1 AS ENUM ('txeto', 'dkb', 'fhsq', 'o', 'njlz');
CREATE TYPE rand_typ_2 AS ENUM ('vsrg', 'ao', 'rppbk', 'ltrfdu', 'ago', 'xml');
CREATE TYPE rand_typ_3 AS ENUM ('xebs', 'med', 'mn', 'cr', 'cnrwdq', 'qqvu');
CREATE TYPE rand_typ_4 AS ENUM ('xd', 'qj', 'rcf', 'rbea');
;
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:597:
rsg_test.go:598: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith565498864
--- FAIL: TestRandomSyntaxSQLSmith (300.86s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 2a7ef521a38d923cca9ec96e229237bbedc0c5fa:
Random syntax error:
rsg_test.go:776: Crash detected: server panic: driver: bad connection
Query:
WITH
with_130399 (col_752329)
AS (
SELECT
*
FROM
(
VALUES
('32 years 7 mons 951 days 01:21:02.190714':::INTERVAL),
('-25 years -1 mons -922 days -03:57:31.906716':::INTERVAL),
('59 years 11 mons 900 days 03:56:20.216092':::INTERVAL)
)
AS tab_319303 (col_752329)
),
with_130400 (col_752331)
AS (
SELECT
*
FROM
(
VALUES
(ARRAY['O':::STRING,'I':::STRING]),
(
(
SELECT
NULL AS col_752330
FROM
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_319304
ORDER BY
tab_319304._float8 ASC, tab_319304._timestamptz
LIMIT
1:::INT8
)
),
(ARRAY['w':::STRING,'0':::STRING,e'\n':::STRING,'%':::STRING]),
(ARRAY[e'\x02':::STRING,')':::STRING,'6':::STRING])
)
AS tab_319305 (col_752331)
),
with_130401 (col_752332)
AS (SELECT * FROM (VALUES (1234409049:::OID), (NULL), (3760763584:::OID)) AS tab_319306 (col_752332))
SELECT
tab_319307._string AS col_752333,
tab_319307._timestamptz AS col_752334,
'-58 years -7 mons -618 days -04:28:52.163114':::INTERVAL AS col_752335,
CASE
WHEN tab_319307._bool THEN '2021-10-11 23:01:24.00009':::TIMESTAMP
ELSE tab_319307._timestamp
END
AS col_752336,
(
SELECT
tab_319307._uuid AS col_752337
FROM
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_319308
WHERE
tab_319308._bool
ORDER BY
tab_319308._int8 ASC, tab_319308._interval
LIMIT
1:::INT8
)
AS col_752338,
'5346:b17:700c:c571:29b2:27b6:e998:56a3/94':::INET AS col_752339,
tab_319307._int2 AS col_752340,
NULL AS col_752341,
tab_319307.tableoid AS col_752342,
(2502924457.206391979:::DECIMAL::DECIMAL ^ tab_319307._decimal::DECIMAL)::DECIMAL AS col_752343,
tab_319307._date AS col_752344
FROM
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_319307
ORDER BY
tab_319307._string ASC, tab_319307._timestamptz DESC, tab_319307._date
LIMIT
50:::INT8;
Schema:
rsg_test.go:593: To reproduce, use schema:
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 VARCHAR NOT NULL, col1_1 NAME NULL, col1_2 TIME NOT NULL, col1_3 BIT(38) NOT NULL, col1_4 BIT(20) NULL, col1_5 INT8 NULL, col1_6 INT2 NOT NULL, col1_7 OID NULL, col1_8 INT8, col1_9 REGTYPE, col1_10 INT2[] NULL, col1_11 TIMESTAMP NOT NULL, col1_12 DATE NOT NULL, PRIMARY KEY (col1_6, col1_11 DESC), col1_13 INT8 AS ((col1_8 + col1_5) + col1_6) STORED, col1_14 INT8 AS ((col1_8 + col1_5) + col1_6) VIRTUAL, col1_15 INT2 AS ((col1_6 + col1_8) + col1_5) STORED, INDEX (col1_15 ASC, col1_14, col1_5 ASC, col1_12 DESC, col1_1, (col1_5 + (-2641746784527594598):::INT8)) WHERE (((((((((table1.col1_5 <= 9223372036854775807:::INT8) OR (table1.col1_12 > '5874897-12-31':::DATE)) OR (table1.col1_11 = '3000-01-01 00:00:00':::TIMESTAMP)) OR (table1.col1_13 != (-9223372036854775807):::INT8)) AND (table1.col1_8 >= 9223372036854775807:::INT8)) AND (table1.col1_14 = 1:::INT8)) OR (table1.col1_0 >= e'\x00':::STRING)) OR (table1.col1_6 != (-1):::INT8)) AND (table1.col1_1 > e'\x00':::STRING)) OR (table1.col1_2 <= '24:00:00':::TIME));
CREATE TABLE table2 (col2_0 REGTYPE, col2_1 BYTES NOT NULL, col2_2 BOX2D NOT NULL, col2_3 TIMESTAMP NOT NULL, col2_4 DATE, col2_5 STRING NOT NULL, PRIMARY KEY (col2_5, col2_3 ASC), UNIQUE (col2_2 ASC, col2_0 ASC, col2_1 DESC, col2_3 DESC, col2_4, col2_5 DESC));
ALTER TABLE table1 INJECT STATISTICS '[{"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 28, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70}, {"columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 30, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70}, {"columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 10, "row_count": 70}, {"columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 45, "histo_col_type": "", "name": "__auto__", "null_count": 24, "row_count": 70}, {"columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7, "histo_col_type": "", "name": "__auto__", "null_count": 40, "row_count": 70}, {"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 30, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70}, {"columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 55, "histo_buckets": [{"distinct_range": 0, "num_eq": 40000000000, "num_range": 0, "upper_bound": "-7416"}, {"distinct_range": 800000, "num_eq": 2578442706918185295, "num_range": 800000, "upper_bound": "3716"}, {"distinct_range": 15389.8586324225, "num_eq": 700000000, "num_range": 300000, "upper_bound": "7127"}, {"distinct_range": 0, "num_eq": 5000000, "num_range": 1059283093175035526, "upper_bound": "11476"}, {"distinct_range": 0, "num_eq": 9164283558093345068, "num_range": 8022527624397875778, "upper_bound": "24411"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 70}, {"columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58, "histo_col_type": "", "name": "__auto__", "null_count": 6, "row_count": 70}, {"columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 67, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70}, {"columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 29, "histo_buckets": [{"distinct_range": 0, "num_eq": 100000000, "num_range": 0, "upper_bound": "-13548"}, {"distinct_range": 30000000000, "num_eq": 3696061110317805367, "num_range": 30000000000, "upper_bound": "3984"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 8, "row_count": 70}, {"columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 48, "histo_col_type": "", "name": "__auto__", "null_count": 42, "row_count": 70}, {"columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 54, "histo_col_type": "", "name": "__auto__", "null_count": 36, "row_count": 70}, {"columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 66, "histo_col_type": "", "name": "__auto__", "null_count": 52, "row_count": 70}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 11, "histo_col_type": "", "name": "__auto__", "null_count": 24, "row_count": 70}, {"columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2, "histo_col_type": "", "name": "__auto__", "null_count": 8, "row_count": 70}, {"columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 51, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70}]':::JSONB;
ALTER TABLE table2 INJECT STATISTICS e'[{"columns": ["col2_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4957418274388795292, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5551586868310586141}, {"columns": ["col2_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4698365942374364647, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5551586868310586141}, {"columns": ["col2_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2498137245059330628, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5551586868310586141}, {"columns": ["col2_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4574988880866040157, "histo_col_type": "", "name": "__auto__", "null_count": 5080006309626297951, "row_count": 5551586868310586141}, {"columns": ["col2_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1812294135613239600, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": ""}, {"distinct_range": 865979285.8959705, "num_eq": 1937828379170143831, "num_range": 3000000000, "upper_bound": "\\u0019_+qck"}, {"distinct_range": 0, "num_eq": 1000000, "num_range": 3431450763354371263, "upper_bound": "\U00002603"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 5551586868310586141}, {"columns": ["col2_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1355791193110429803, "histo_col_type": "", "name": "__auto__", "null_count": 264320690586394151, "row_count": 5551586868310586141}]':::JSONB;
CREATE TYPE rand_typ_0 AS ENUM ('qwng', 'yudh', 'mr', 'y', 'ogute', 'hpjoa');
CREATE TYPE rand_typ_1 AS ENUM ('k', 'idq', 't', 'tb', 'jdr', 'ddmec');
CREATE TYPE rand_typ_2 AS ENUM ('x', 'd', 'yi', 'uzvtbh');
;
rsg_test.go:595:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:597:
rsg_test.go:598: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith539735356
--- FAIL: TestRandomSyntaxSQLSmith (300.93s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 941011c4e582807b40dd03bbcbb8d05385c0638d:
Random syntax error:
rsg_test.go:779: Crash detected: server panic: statement exec timeout
Query:
SELECT
(-7498362056899542030):::INT8 AS col_437080,
(-6885241872954684557):::INT8 AS col_437081,
'\x07022a18ce24':::BYTES AS col_437082,
NULL AS col_437083
FROM
defaultdb.public.table1@[0] AS tab_178475,
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_178476
JOIN defaultdb.public.table1 AS tab_178477
JOIN defaultdb.public.table1 AS tab_178478 ON
(tab_178477.crdb_internal_idx_expr) = (tab_178478.crdb_internal_idx_expr)
JOIN defaultdb.public.table1 AS tab_178479
JOIN defaultdb.public.table1 AS tab_178480 ON
(tab_178479.crdb_internal_idx_expr) = (tab_178480.crdb_internal_idx_expr) ON
(tab_178478.crdb_internal_idx_expr_1) = (tab_178479.crdb_internal_idx_expr_1)
JOIN defaultdb.public.table1@table1_col1_0_col1_8_expr_col1_15_col1_5_col1_12_col1_11_key AS tab_178481
JOIN defaultdb.public.table1@[0] AS tab_178482
JOIN defaultdb.public.table1@table1_col1_16_col1_15_col1_3_col1_7_col1_5_idx AS tab_178483
JOIN defaultdb.public.table1@table1_col1_11_col1_15_col1_2_col1_16_col1_13_col1_1_col1_3_col1_7_col1_6_col1_4_col1_8_col1_12_idx
AS tab_178484 ON
(tab_178483.col1_10) = (tab_178484.crdb_internal_idx_expr)
AND (tab_178483.col1_10) = (tab_178484.crdb_internal_idx_expr_2)
AND (tab_178483.crdb_internal_idx_expr_1) = (tab_178484.col1_12)
AND (tab_178483.col1_16) = (tab_178484.crdb_internal_idx_expr_6) ON
(tab_178482.col1_0) = (tab_178484.col1_0) ON
(tab_178481.crdb_internal_idx_expr_3) = (tab_178484.crdb_internal_idx_expr_7) ON
(tab_178478.crdb_internal_idx_expr_1) = (tab_178484.col1_4) ON
(tab_178476._int4) = (tab_178481.crdb_internal_idx_expr_1)
AND (tab_178476._int8) = (tab_178477.crdb_internal_idx_expr_1)
ORDER BY
tab_178481.col1_1 ASC, tab_178482.col1_13 DESC;
Schema:
rsg_test.go:596: To reproduce, use schema:
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 REGPROC NOT NULL, col1_1 BIT(11) NOT NULL, col1_2 INT4 NOT NULL, col1_3 INET NULL, col1_4 INT8, col1_5 TIME, col1_6 BIT(44) NOT NULL, col1_7 BIT(6) NOT NULL, col1_8 BYTES NOT NULL, col1_9 STRING NOT NULL AS (lower(CAST(col1_7 AS STRING))) STORED, col1_10 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) STORED, col1_11 INT8 AS (col1_4 + col1_2) VIRTUAL, col1_12 INT4 AS (col1_2 + col1_4) STORED, col1_13 STRING NOT NULL AS (lower(CAST(col1_0 AS STRING))) VIRTUAL, col1_14 INT8 AS (col1_4 + (-4245137544016996220):::INT8) VIRTUAL, col1_15 STRING NOT NULL AS (lower(CAST(col1_7 AS STRING))) STORED, col1_16 STRING NOT NULL AS (CASE WHEN col1_8 IS NULL THEN e'``V-{Yd\x115\\':::STRING ELSE e't6\x7fku\x07S\x0f':::STRING END) STORED, UNIQUE (lower(CAST(col1_0 AS STRING)), (col1_2 + col1_4) DESC, col1_14, col1_16, col1_5 DESC, col1_2 ASC, col1_9 DESC, col1_13, col1_0, col1_7, col1_12 ASC, col1_1 ASC, col1_6 DESC, lower(CAST(col1_6 AS STRING)) ASC, col1_10) WHERE (((((((((((table1.col1_9 = e'\'':::STRING) AND (table1.col1_2 = (-32768):::INT8)) OR (table1.col1_15 <= e'\'':::STRING)) OR (table1.col1_11 >= (-32768):::INT8)) OR (table1.col1_14 = 0:::INT8)) AND (table1.col1_4 = (-2147483648):::INT8)) OR (table1.col1_10 > e'\'':::STRING)) OR (table1.col1_5 = '00:00:00':::TIME)) OR (table1.col1_13 != '"':::STRING)) OR (table1.col1_12 != (-1):::INT8)) AND (table1.col1_16 >= e'\x00':::STRING)) OR (table1.col1_8 = '\x22':::BYTES), INDEX (col1_11 ASC, col1_15 DESC, col1_2 DESC, col1_16 ASC, col1_13 ASC, col1_1 ASC, col1_3 ASC, col1_7 ASC, col1_6 DESC, col1_4, col1_8, col1_12 DESC), UNIQUE (col1_12 ASC, col1_3 DESC, col1_2 DESC, col1_9 ASC, col1_4 ASC, col1_1 DESC, (col1_2 + col1_4) ASC, col1_6, col1_10 ASC, (col1_4 + (-8588705632873303837):::INT8)) WHERE ((((((((table1.col1_15 >= '"':::STRING) AND (table1.col1_16 != '':::STRING)) OR (table1.col1_4 < (-1):::INT8)) AND (table1.col1_9 != 'X':::STRING)) OR (table1.col1_8 > '\xe29883':::BYTES)) OR (table1.col1_5 != '00:00:00':::TIME)) AND (table1.col1_10 != '':::STRING)) AND (table1.col1_14 = (-1):::INT8)) OR (table1.col1_2 >= (-32768):::INT8), INDEX (col1_16 DESC, col1_15, col1_3 DESC, col1_7 DESC, col1_5 DESC) STORING (col1_2, col1_8, col1_10) WHERE ((((((((((table1.col1_8 <= '\x27':::BYTES) AND (table1.col1_4 >= (-1):::INT8)) OR (table1.col1_5 != '00:00:00':::TIME)) OR (table1.col1_11 <= (-9223372036854775807):::INT8)) AND (table1.col1_14 = (-32768):::INT8)) AND (table1.col1_10 >= '"':::STRING)) OR (table1.col1_9 > e'\x00':::STRING)) OR (table1.col1_15 = e'\U00002603':::STRING)) AND (table1.col1_13 < '"':::STRING)) OR (table1.col1_2 >= (-1):::INT8)) OR (table1.col1_12 <= 127:::INT8), INDEX (col1_8, col1_16 ASC) WHERE (((((((((((table1.col1_2 <= (-128):::INT8) AND (table1.col1_11 <= 2147483647:::INT8)) OR (table1.col1_16 != e'\x00':::STRING)) AND (table1.col1_14 = (-128):::INT8)) OR (table1.col1_5 != '24:00:00':::TIME)) AND (table1.col1_15 > e'\x00':::STRING)) OR (table1.col1_9 = '':::STRING)) AND (table1.col1_4 = (-128):::INT8)) OR (table1.col1_12 > 1:::INT8)) OR (table1.col1_13 < '"':::STRING)) AND (table1.col1_8 <= '\x58':::BYTES)) OR (table1.col1_10 < e'\x00':::STRING), UNIQUE (col1_2 ASC, col1_12 DESC, col1_15 ASC, col1_13 DESC, lower(CAST(col1_7 AS STRING)), col1_1 ASC, col1_11 ASC, col1_6 DESC, col1_9 DESC, col1_4 ASC, col1_0 ASC, col1_7 DESC, lower(CAST(col1_0 AS STRING)) ASC, col1_14 ASC, col1_10) STORING (col1_8), UNIQUE (col1_0 ASC, col1_8, (col1_2 + (-1502179567):::INT8) ASC, col1_15, col1_5, col1_12 DESC, col1_11 DESC) WHERE (((table1.col1_9 = '"':::STRING) OR (table1.col1_14 > 127:::INT8)) AND (table1.col1_11 >= (-9223372036854775807):::INT8)) OR (table1.col1_12 < (-2147483648):::INT8), FAMILY (col1_9), FAMILY (col1_2, col1_12), FAMILY (col1_5), FAMILY (col1_10), FAMILY (col1_0, col1_16), FAMILY (col1_3), FAMILY (col1_4, col1_8), FAMILY (col1_7, col1_15, col1_6, col1_1));
ALTER TABLE table1 INJECT STATISTICS e'[{"columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5724323810966500005, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4548500685962530836, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4283454877375844510, "histo_col_type": "", "name": "__auto__", "null_count": 6334913763094129569, "row_count": 7841509180079649352}, {"columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 504520443976885996, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7388642430716247122, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5898222952310483424, "histo_buckets": [{"distinct_range": 0, "num_eq": 8451899763852569513, "num_range": 0, "upper_bound": "\\\\x76"}, {"distinct_range": 2894340676349801000, "num_eq": 1647230151434592956, "num_range": 6265114693252787646, "upper_bound": "\\\\xdbe9"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6844580553137908074, "histo_buckets": [{"distinct_range": 0, "num_eq": 300000000, "num_range": 0, "upper_bound": "-1877508942"}, {"distinct_range": 52690.083221154084, "num_eq": 500000000, "num_range": 90000, "upper_bound": "-1207111368"}, {"distinct_range": 0, "num_eq": 30, "num_range": 8249990694551061066, "upper_bound": "440139556"}, {"distinct_range": 10000000, "num_eq": 939176378304240272, "num_range": 10000000, "upper_bound": "458923406"}, {"distinct_range": 0, "num_eq": 3000000, "num_range": 2324576097181168573, "upper_bound": "945423701"}], "histo_col_type": "INT4", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2421758563880365946, "histo_col_type": "", "name": "__auto__", "null_count": 6383479377715370319, "row_count": 7841509180079649352}, {"columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3539543394500885105, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5520531854685944805, "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7634826798404804705, "histo_buckets": [{"distinct_range": 0, "num_eq": 30, "num_range": 0, "upper_bound": "0"}, {"distinct_range": 1954892580834559200, "num_eq": 1724795573713334922, "num_range": 2480319446030565214, "upper_bound": "866503336"}, {"distinct_range": 2156912769269483800, "num_eq": 3055414211195191537, "num_range": 7905935967599678448, "upper_bound": "1774992867"}, {"distinct_range": 51880015898191680, "num_eq": 4669808396009667231, "num_range": 158736353359481662, "upper_bound": "2977331367"}, {"distinct_range": 5765621732615714000, "num_eq": 8687032373866807825, "num_range": 6090510158748189207, "upper_bound": "3350259272"}, {"distinct_range": 23822782068.88768, "num_eq": 619071233099220714, "num_range": 50000000000, "upper_bound": "3834310418"}, {"distinct_range": 200000000, "num_eq": 80000, "num_range": 200000000, "upper_bound": "4149093902"}], "histo_col_type": "REGPROC", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5850866100729340748, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 436607437608909810, "histo_buckets": [{"distinct_range": 0, "num_eq": 20000000000, "num_range": 0, "upper_bound": "-1141905957"}, {"distinct_range": 0, "num_eq": 9064322109544745951, "num_range": 6360445812387309604, "upper_bound": "0"}, {"distinct_range": 0, "num_eq": 2000000, "num_range": 600000000, "upper_bound": "634950348"}, {"distinct_range": 9000000000, "num_eq": 6800208953621638818, "num_range": 9000000000, "upper_bound": "1003303168"}, {"distinct_range": 0, "num_eq": 9000, "num_range": 900, "upper_bound": "1612516181"}, {"distinct_range": 30, "num_eq": 8274311012072797279, "num_range": 30, "upper_bound": "1776563033"}, {"distinct_range": 600000000, "num_eq": 6969593288178839276, "num_range": 600000000, "upper_bound": "2147483647"}], "histo_col_type": "INT4", "name": "__auto__", "null_count": 1175216466131409659, "row_count": 7841509180079649352}, {"columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 668893892594116840, "histo_col_type": "", "name": "__auto__", "null_count": 735523730463578690, "row_count": 7841509180079649352}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 88243859950759897, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7841509180079649352}, {"columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3212596203537891390, "histo_col_type": "", "name": "__auto__", "null_count": 2150456140316633809, "row_count": 7841509180079649352}, {"columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2938352568235505081, "histo_buckets": [{"distinct_range": 0, "num_eq": 8599313877320396323, "num_range": 0, "upper_bound": "-8410651652528963470"}, {"distinct_range": 30953969699.036922, "num_eq": 300000000, "num_range": 40000000000, "upper_bound": "-8324869606813387522"}, {"distinct_range": 0, "num_eq": 0, "num_range": 4586837401372171507, "upper_bound": "-696693856718477683"}, {"distinct_range": 2021.4832861629782, "num_eq": 10000000000, "num_range": 6000, "upper_bound": "-15775744658113524"}, {"distinct_range": 2000, "num_eq": 200000, "num_range": 2000, "upper_bound": "-128"}, {"distinct_range": 9000000, "num_eq": 2319738962309429986, "num_range": 9000000, "upper_bound": "2704675308429855118"}, {"distinct_range": 28.61315759423331, "num_eq": 9000000000, "num_range": 80, "upper_bound": "2841017763637763934"}, {"distinct_range": 0, "num_eq": 0, "num_range": 80000, "upper_bound": "5153933330921073168"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 6753216326233781104, "row_count": 7841509180079649352}]':::JSONB;
CREATE TYPE rand_typ_0 AS ENUM ('jkcb', 'ylojfp', 'x', 'xuhxhw');
CREATE TYPE rand_typ_1 AS ENUM ('azx', 'jb', 'k');
CREATE TYPE rand_typ_2 AS ENUM ('hlvxp', 'iulb');
;
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:600:
rsg_test.go:601: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith875380913
--- FAIL: TestRandomSyntaxSQLSmith (300.89s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #70000 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.2] - #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 6eb9df1f3d460f904b5254c3d32c745eecbedd3f:
Random syntax error:
rsg_test.go:779: Crash detected: server panic: driver: bad connection
Query:
SELECT
tab_302125._float4 AS col_710816,
tab_302125._interval AS col_710817,
tab_302126.crdb_internal_idx_expr AS col_710818,
true AS col_710819,
'\x852b78':::BYTES AS col_710820,
'NaN':::DECIMAL AS col_710821,
tab_302126.col1_1 AS col_710822,
tab_302127._float4 AS col_710823,
'237.208.118.190/17':::INET AS col_710824,
NULL AS col_710825,
tab_302125._decimal AS col_710826
FROM
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_302125
JOIN defaultdb.public.table1@table1_col1_0_col1_2_col1_3_key AS tab_302126 ON
(tab_302125.tableoid) = (tab_302126.col1_2)
JOIN defaultdb.public.seed@seed__int8__float8__date_idx AS tab_302127 ON (tab_302126.col1_3) = (tab_302127._string),
defaultdb.public.table1 AS tab_302128
JOIN defaultdb.public.table1 AS tab_302129 ON (tab_302128.col1_0) = (tab_302129.col1_0)
WHERE
tab_302125._bool
LIMIT
89:::INT8;
Schema:
rsg_test.go:596: To reproduce, use schema:
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 FLOAT8 NOT NULL, col1_1 GEOGRAPHY NOT NULL, col1_2 REGNAMESPACE NULL, col1_3 NAME NULL, col1_4 NAME NOT NULL, UNIQUE (col1_0 ASC, col1_2 DESC, col1_3), INVERTED INDEX (col1_3 ASC, col1_1 DESC) WHERE (table1.col1_0 = 1.7976931348623157e+308:::FLOAT8) AND (table1.col1_4 >= e'\'':::STRING), UNIQUE (col1_3, col1_4 ASC, col1_2 ASC) STORING (col1_0), INVERTED INDEX (col1_2, col1_3 ASC, col1_4, lower(CAST(col1_2 AS STRING)), col1_1 ASC) WHERE (table1.col1_4 != e'\U00002603':::STRING) OR (table1.col1_3 < e'\x00':::STRING), UNIQUE (col1_3 DESC, lower(CAST(col1_1 AS STRING))), FAMILY (col1_3, col1_0), FAMILY (col1_1), FAMILY (col1_4, col1_2));
ALTER TABLE table1 INJECT STATISTICS e'[{"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 51065, "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 0, "row_count": 80000}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 26716, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 80000}, {"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2258, "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 31504, "row_count": 80000}, {"columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 14456, "histo_buckets": [{"distinct_range": 0, "num_eq": 7999641623541720235, "num_range": 0, "upper_bound": "!N"}, {"distinct_range": 700, "num_eq": 100000000, "num_range": 700, "upper_bound": "\\"\\u0014``bj"}, {"distinct_range": 3946.91892543883, "num_eq": 300000000, "num_range": 70000, "upper_bound": "I\\u000e?)"}, {"distinct_range": 200000000, "num_eq": 3997807549589627840, "num_range": 200000000, "upper_bound": "]"}], "histo_col_type": "NAME", "name": "__auto__", "null_count": 63951, "row_count": 80000}, {"columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 28088, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 80000}]':::JSONB;
CREATE TYPE rand_typ_0 AS ENUM ('hmo', 'idbu');
CREATE TYPE rand_typ_1 AS ENUM ('nahfep', 'zag', 'lc', 'cr');
CREATE TYPE rand_typ_2 AS ENUM ('cqtk', 'o', 'qjhst', 'chgq', 'xrfmrh', 'upwgsv');
;
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:600:
rsg_test.go:601: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith182541150
--- FAIL: TestRandomSyntaxSQLSmith (300.73s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #70000 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.2] - #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 394e35cbbb7ae466383c3ee6f2bbcc76857afeed:
Random syntax error:
rsg_test.go:779: Crash detected: server panic: driver: bad connection
Query:
SELECT
tab_315117.col3_13 AS col_715588,
e'\x0fR\x0fk,}G':::STRING AS col_715589,
'"foo"':::JSONB AS col_715590,
e'\x05b\x1e+D#\x10<p':::STRING AS col_715591,
tab_315116._int4 AS col_715592,
tab_315118.col3_13 AS col_715593,
tab_315118.col3_13 AS col_715594,
tab_315116._uuid AS col_715595
FROM
defaultdb.public.seed@seed__int8__float8__date_idx AS tab_315116,
defaultdb.public.table3 AS tab_315117
JOIN defaultdb.public.table3 AS tab_315118 ON
(tab_315117.col3_2) = (tab_315118.col3_2)
AND (tab_315117.col3_12) = (tab_315118.col3_12)
AND (tab_315117.col3_11) = (tab_315118.col3_11)
AND (tab_315117.col3_6) = (tab_315118.col3_6),
defaultdb.public.table4 AS tab_315119
JOIN defaultdb.public.table1 AS tab_315120 ON (tab_315119.col4_1) = (tab_315120.col1_2)
ORDER BY
tab_315116._decimal ASC;
Schema:
rsg_test.go:596: To reproduce, use schema:
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING sql.stats.histogram_collection.enabled = false;
SET CLUSTER SETTING sql.defaults.interleaved_tables.enabled = true;
CREATE TABLE table1 (col1_0 INT4 NULL, col1_1 TIMESTAMPTZ NULL, col1_2 BIT(32), INDEX (col1_2 ASC) WHERE table1.col1_0 <= 2147483647:::INT8, UNIQUE (col1_1 DESC, col1_0 DESC) WHERE (table1.col1_1 < '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ) OR (table1.col1_0 <= 0:::INT8), INDEX (col1_2 DESC, col1_1 DESC, lower(CAST(col1_2 AS STRING)) ASC) STORING (col1_0) WHERE (table1.col1_0 != 1:::INT8) OR (table1.col1_1 != '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ), INDEX (col1_0 ASC), INDEX ((CASE WHEN col1_1 IS NULL THEN e'M\x1c95c\r':::STRING ELSE e'Dy5``0)\x05':::STRING END) DESC) STORING (col1_0, col1_1) WHERE table1.col1_1 > '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, INDEX (col1_0 DESC, col1_1, col1_2 ASC) WHERE table1.col1_1 <= '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ, INDEX (col1_1, col1_2) WHERE (table1.col1_0 <= (-128):::INT8) OR (table1.col1_1 = '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ), FAMILY (col1_2), FAMILY (col1_1, col1_0));
CREATE TABLE table2 (col2_0 REGPROCEDURE NOT NULL, col2_1 INT8, col2_2 GEOGRAPHY[] NOT NULL, col2_3 BOOL NULL, col2_4 DECIMAL NULL, col2_5 REGPROCEDURE, col2_6 JSONB, col2_7 INET NOT NULL, col2_8 BIT(35) NULL, col2_9 OID NULL, col2_10 UUID NOT NULL, col2_11 VARCHAR NULL, col2_12 OID NOT NULL, col2_13 INT8 NOT NULL, col2_14 TIME NOT NULL, col2_15 REGCLASS NOT NULL, col2_16 BIT(38) NOT NULL, INDEX (col2_0 ASC, col2_8, col2_16 ASC, col2_10 ASC, col2_9 ASC) STORING (col2_1, col2_2, col2_3, col2_5, col2_11, col2_13), INDEX (lower(CAST(col2_3 AS STRING)) DESC, col2_9 DESC, col2_14, col2_0, col2_10 DESC, col2_4 ASC, col2_7 ASC, col2_1 ASC, (col2_13 + col2_1) ASC, col2_5 ASC, col2_15, col2_11 DESC, col2_3 ASC) STORING (col2_2, col2_8, col2_12, col2_13), UNIQUE (col2_1 ASC, col2_12 ASC, col2_8 DESC, col2_10, col2_14 DESC, col2_5, col2_13 DESC, col2_3 DESC, col2_4) STORING (col2_0, col2_2), INDEX (col2_0, col2_10) STORING (col2_2, col2_3, col2_5, col2_6, col2_7, col2_13, col2_14, col2_15), FAMILY (col2_13), FAMILY (col2_1, col2_7), FAMILY (col2_16), FAMILY (col2_6, col2_8), FAMILY (col2_12), FAMILY (col2_11), FAMILY (col2_10), FAMILY (col2_9), FAMILY (col2_0, col2_4), FAMILY (col2_15), FAMILY (col2_2, col2_5, col2_3, col2_14), UNIQUE (col2_8, col2_0));
CREATE TABLE table3 (col3_0 STRING NOT NULL, col3_1 BOX2D NULL, col3_2 INET NULL, col3_3 REGCLASS NULL, col3_4 REGPROCEDURE NOT NULL, col3_5 REGCLASS NOT NULL, col3_6 INT4 NOT NULL, col3_7 TIMETZ[] NULL, col3_8 STRING NULL AS (lower(CAST(col3_1 AS STRING))) STORED, col3_9 STRING NULL AS (lower(CAST(col3_3 AS STRING))) VIRTUAL, col3_10 STRING NOT NULL AS (lower(CAST(col3_5 AS STRING))) STORED, col3_11 STRING NOT NULL AS (lower(CAST(col3_4 AS STRING))) STORED, col3_12 STRING NOT NULL AS (lower(CAST(col3_5 AS STRING))) VIRTUAL, col3_13 STRING NULL AS (lower(CAST(col3_3 AS STRING))) STORED, UNIQUE (col3_2, col3_13, col3_3, col3_4 ASC, col3_0, col3_6, col3_11 DESC, col3_12) STORING (col3_5, col3_7, col3_10), UNIQUE ((CASE WHEN col3_7 IS NULL THEN '8n':::STRING ELSE 'A?X':::STRING END), col3_12 ASC, col3_8 ASC, lower(CAST(col3_5 AS STRING)), col3_11 ASC, col3_13 ASC, col3_9 ASC, col3_2 ASC, col3_10 DESC) STORING (col3_0, col3_3, col3_4, col3_5, col3_7));
CREATE TABLE table4 (col4_0 REGCLASS NOT NULL, col4_1 BIT(40) NOT NULL, PRIMARY KEY (col4_1 DESC, col4_0), INDEX (col4_1 DESC, col4_0), UNIQUE (col4_1, col4_0), INDEX (col4_1), FAMILY (col4_1, col4_0));
ALTER TABLE table1 INJECT STATISTICS '[{"columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 300, "num_range": 0, "upper_bound": "-1810116317"}, {"distinct_range": 0, "num_eq": 20, "num_range": 4142809751120498297, "upper_bound": "-1744462578"}, {"distinct_range": 4.185178570552584, "num_eq": 100000000000, "num_range": 10, "upper_bound": "-503065957"}, {"distinct_range": 0, "num_eq": 20000, "num_range": 20000000000, "upper_bound": "-32768"}, {"distinct_range": 782873433943171000, "num_eq": 900000000, "num_range": 782873433943170962, "upper_bound": "32767"}, {"distinct_range": 0, "num_eq": 40000, "num_range": 80000, "upper_bound": "618271958"}, {"distinct_range": 1473373666855712500, "num_eq": 4563802050195064155, "num_range": 1473373666855712486, "upper_bound": "1443786883"}, {"distinct_range": 50000000, "num_eq": 6000, "num_range": 50000000, "upper_bound": "1862353164"}, {"distinct_range": 6613719089823219000, "num_eq": 7000000000, "num_range": 6613719089823219117, "upper_bound": "2141554862"}], "histo_col_type": "INT4", "name": "__auto__", "null_count": 0, "row_count": 0}, {"columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 3384861676519411677, "num_range": 0, "upper_bound": "1971-02-06 16:05:17.000768+00:00"}, {"distinct_range": 60000000, "num_eq": 6547273407691832412, "num_range": 60000000, "upper_bound": "1979-03-16 22:11:51.00026+00:00"}, {"distinct_range": 6577347088574347000, "num_eq": 0, "num_range": 6577347088574347491, "upper_bound": "2002-04-09 10:16:25.000564+00:00"}, {"distinct_range": 0, "num_eq": 900, "num_range": 6000000, "upper_bound": "2009-03-06 12:35:23.00033+00:00"}, {"distinct_range": 26241040559203668, "num_eq": 3931176050898682226, "num_range": 1575832027783397602, "upper_bound": "2016-06-23 10:14:49.000596+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 0}, {"columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 4565499761410071758, "num_range": 0, "upper_bound": "11010111111010011000001110110100"}], "histo_col_type": "BIT(32)", "name": "__auto__", "null_count": 0, "row_count": 0}]':::JSONB;
ALTER TABLE table2 INJECT STATISTICS '[{"columns": ["col2_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5265979952187437621, "histo_col_type": "", "name": "__auto__", "null_count": 7881575105260796596, "row_count": 9201439325654575173}, {"columns": ["col2_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7398402513253317529, "histo_col_type": "", "name": "__auto__", "null_count": 5557744121443224063, "row_count": 9201439325654575173}, {"columns": ["col2_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6838114572560965941, "histo_col_type": "", "name": "__auto__", "null_count": 576624154778724525, "row_count": 9201439325654575173}, {"columns": ["col2_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9100611455406365000, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3894400791526238889, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5525573803312385581, "histo_buckets": [{"distinct_range": 0, "num_eq": 6351136216827150558, "num_range": 0, "upper_bound": "-789233485332725862"}, {"distinct_range": 2340984666449492000, "num_eq": 279456505923537097, "num_range": 4927900560790260524, "upper_bound": "-2147483648"}, {"distinct_range": 3000, "num_eq": 586349512560915127, "num_range": 3000, "upper_bound": "-1"}, {"distinct_range": 11.635933662565467, "num_eq": 8000000000, "num_range": 80, "upper_bound": "1399552114638870590"}, {"distinct_range": 5288983913775352000, "num_eq": 5000000000, "num_range": 5288983913775351327, "upper_bound": "3251193078583700077"}, {"distinct_range": 6450693187.109926, "num_eq": 7441648773866748128, "num_range": 40000000000, "upper_bound": "6384253644007137515"}, {"distinct_range": 18967456294309684, "num_eq": 70000, "num_range": 6224483488534982371, "upper_bound": "9223372036854775807"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 5722523401928417112, "row_count": 9201439325654575173}, {"columns": ["col2_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8537084964462858121, "histo_col_type": "", "name": "__auto__", "null_count": 8176177645905531118, "row_count": 9201439325654575173}, {"columns": ["col2_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8502302070165097571, "histo_col_type": "", "name": "__auto__", "null_count": 5674081940514878755, "row_count": 9201439325654575173}, {"columns": ["col2_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4773244228494770466, "histo_col_type": "", "name": "__auto__", "null_count": 2108511970689899520, "row_count": 9201439325654575173}, {"columns": ["col2_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7009192582103455554, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2253239402938821519, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 496898569166802689, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3703217349368381738, "histo_buckets": [{"distinct_range": 0, "num_eq": 56255368541963666, "num_range": 0, "upper_bound": "2907935256"}, {"distinct_range": 52213.15664429223, "num_eq": 7736700010829390257, "num_range": 90000, "upper_bound": "3226784597"}, {"distinct_range": 0, "num_eq": 100000000, "num_range": 8748555665914471666, "upper_bound": "3333246937"}, {"distinct_range": 69668128825246216, "num_eq": 2590898074683343097, "num_range": 4624969634926650086, "upper_bound": "3462585649"}, {"distinct_range": 6640055841489081000, "num_eq": 1162737123067366539, "num_range": 6640055841489080942, "upper_bound": "4142385145"}], "histo_col_type": "REGPROCEDURE", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7590747856362501354, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2263703735412747467, "histo_col_type": "", "name": "__auto__", "null_count": 6348075197758429756, "row_count": 9201439325654575173}, {"columns": ["col2_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8569795431794199925, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}, {"columns": ["col2_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 290556249726522195, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9201439325654575173}]':::JSONB;
ALTER TABLE table3 INJECT STATISTICS '[{"columns": ["col3_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1745190582304436720, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3679594425940878486, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2455783625981183846, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2981454191124596959, "histo_col_type": "", "name": "__auto__", "null_count": 620961449521919485, "row_count": 4506587434622246589}, {"columns": ["col3_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 295938763393455492, "histo_buckets": [{"distinct_range": 0, "num_eq": 30000000000, "num_range": 0, "upper_bound": "30.39.117.43/14"}, {"distinct_range": 3911345622765887000, "num_eq": 70000000, "num_range": 3947081646269337559, "upper_bound": "206.236.148.199/24"}, {"distinct_range": 5186884445023170000, "num_eq": 80000000000, "num_range": 5186884445023169560, "upper_bound": "182.222.202.139"}, {"distinct_range": 2222611736980379400, "num_eq": 9000, "num_range": 3772548687142126075, "upper_bound": "1f24:2860:d330:9363:4a28:317f:8756:2f26/35"}, {"distinct_range": 0, "num_eq": 5000000, "num_range": 40000, "upper_bound": "5bf0:1582:caeb:32b5:1575:fe9f:c285:2ce6/80"}], "histo_col_type": "INET", "name": "__auto__", "null_count": 1344854862354538330, "row_count": 4506587434622246589}, {"columns": ["col3_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4134152366492350591, "histo_col_type": "", "name": "__auto__", "null_count": 1477721924416077908, "row_count": 4506587434622246589}, {"columns": ["col3_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3749485220255364023, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 193329035100008911, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3553052443410627427, "histo_col_type": "", "name": "__auto__", "null_count": 329241148292700656, "row_count": 4506587434622246589}, {"columns": ["col3_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2609784235931997006, "histo_col_type": "", "name": "__auto__", "null_count": 3364685506899111809, "row_count": 4506587434622246589}, {"columns": ["col3_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1321450218477601616, "histo_col_type": "", "name": "__auto__", "null_count": 3090390993642635893, "row_count": 4506587434622246589}, {"columns": ["col3_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2083290923494668809, "histo_col_type": "", "name": "__auto__", "null_count": 447865756093203480, "row_count": 4506587434622246589}, {"columns": ["col3_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2216609497427709146, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}, {"columns": ["col3_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4333439450950242056, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4506587434622246589}]':::JSONB;
ALTER TABLE table4 INJECT STATISTICS '[{"columns": ["col4_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 29850873856, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000000}, {"columns": ["col4_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 39289871153, "histo_buckets": [{"distinct_range": 0, "num_eq": 100000, "num_range": 0, "upper_bound": "0110011010100011111100110100101111010000"}], "histo_col_type": "BIT(40)", "name": "__auto__", "null_count": 0, "row_count": 90000000000}]':::JSONB;
ALTER TABLE table4 ADD FOREIGN KEY (col4_1, col4_0) REFERENCES table2 (col2_8, col2_0) ON UPDATE CASCADE;
CREATE TYPE rand_typ_0 AS ENUM ('g', 'juftp', 'ylt', 'jsee', 'ydgn');
CREATE TYPE rand_typ_1 AS ENUM ('wxfo', 'opg');
;
rsg_test.go:598:
SET CLUSTER SETTING sql.defaults.drop_enum_value.enabled = true;
SET enable_drop_enum_value = true;
CREATE TYPE greeting AS ENUM ('hello', 'howdy', 'hi', 'good day', 'morning');
CREATE TABLE IF NOT EXISTS seed AS
SELECT
g::INT2 AS _int2,
g::INT4 AS _int4,
g::INT8 AS _int8,
g::FLOAT4 AS _float4,
g::FLOAT8 AS _float8,
'2001-01-01'::DATE + g AS _date,
'2001-01-01'::TIMESTAMP + g * '1 day'::INTERVAL AS _timestamp,
'2001-01-01'::TIMESTAMPTZ + g * '1 day'::INTERVAL AS _timestamptz,
g * '1 day'::INTERVAL AS _interval,
g % 2 = 1 AS _bool,
g::DECIMAL AS _decimal,
g::STRING AS _string,
g::STRING::BYTES AS _bytes,
substring('00000000-0000-0000-0000-' || g::STRING || '00000000000', 1, 36)::UUID AS _uuid,
'0.0.0.0'::INET + g AS _inet,
g::STRING::JSONB AS _jsonb,
enum_range('hello'::greeting)[g] as _enum
FROM
generate_series(1, 5) AS g;
INSERT INTO seed DEFAULT VALUES;
CREATE INDEX on seed (_int8, _float8, _date);
CREATE INVERTED INDEX on seed (_jsonb);
;
rsg_test.go:600:
rsg_test.go:601: -- test log scope end --
test logs left over in: /go/src/github.com/cockroachdb/cockroach/artifacts/logTestRandomSyntaxSQLSmith315488316
--- FAIL: TestRandomSyntaxSQLSmith (381.54s)
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
- #70000 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.2] - #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
Some of the errors seem the same as https://github.com/cockroachdb/cockroach/issues/70000
However, the most recent failure is:
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 a panic has occurred!
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 +runtime error: invalid memory address or nil pointer dereference
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 +(1) attached stack trace
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + -- stack trace:
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:668
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | [...repeated from below...]
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 +Wraps: (2) while executing: SELECT _._ AS _, '_':::STRING AS _, '_':::JSONB AS _, '_':::STRING AS _, _._ AS _, _._ AS _, _._ AS _, _._ AS _ FROM _@_ AS _, _ AS _ JOIN _ AS _ ON ((((_._) = (_._)) AND ((_._) = (_._))) AND ((_._) = (_._))) AND ((_._) = (_._)), _ AS _ JOIN _ AS _ ON (_._) = (_._) ORDER BY _._ ASC
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 +Wraps: (3) attached stack trace
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + -- stack trace:
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn.func1
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:668
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | runtime.gopanic
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /usr/local/go/src/runtime/panic.go:965
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | runtime.panicmem
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /usr/local/go/src/runtime/panic.go:212
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | runtime.sigpanic
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /usr/local/go/src/runtime/signal_unix.go:734
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/util/tracing.SpanFromContext
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/util/tracing/context.go:25
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql/execinfra.GetTraceData
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/execinfra/base.go:254
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql/execinfra.GetScanStats
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/execinfra/stats.go:85
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql/rowexec.(*joinReader).close
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/rowexec/joinreader.go:889
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | github.com/cockroachdb/cockroach/pkg/sql/rowexec.(*joinReader).ConsumerClosed
E210913 05:50:04.855736 7177772 1@util/log/logcrash/crash_reporting.go:140 [n1,client=127.0.0.1:52240,hostssl,user=root] 205 + | /go/src/github.com/cockroachdb/cockroach/pkg/sql/rowexec/joinreader.go:882
the offending line is https://github.com/cockroachdb/cockroach/blob/49b2f02bbd3b37cebeca69d3e13933275b5d6e82/pkg/util/tracing/context.go#L25
so i'm tagging this as a separate blocker than https://github.com/cockroachdb/cockroach/issues/70000
The most recent failure has been addressed in #70210, so it is the same as #70000.
sql/tests.TestRandomSyntaxSQLSmith failed with artifacts on master @ 15b773c71f92d643795e34c922717fde0447f9cd:
Random syntax error:
Query:
Schema:
Reproduce
To reproduce, try: ```bash make stressrace TESTS=TestRandomSyntaxSQLSmith PKG=./pkg/sql/tests TESTTIMEOUT=5m STRESSFLAGS='-timeout 5m' 2>&1 ```
Same failure on other branches
- #64592 sql/tests: TestRandomSyntaxSQLSmith failed [C-test-failure O-robot branch-release-21.1]
Internal log
``` mjibson marked as alumn{us/a}; resolving to rafiss instead ```
/cc @cockroachdb/sql-experience rafiss
This test on roachdash | Improve this report!