cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.51k stars 3.7k forks source link

compose: TestComposeCompare failed #82867

Closed cockroach-teamcity closed 10 months ago

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ b0a8d28feb8befa417933d0a2ee99511b16414a1:

        test_1        |             -   nil,
        test_1        |             +   bool(true),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         overlaps('2000-01-01 04:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, ('2000-01-01 08:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:08':::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ, NULL::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 06:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ)::BOOL
        test_1        |                             AS col_143756
        test_1        |                 )
        test_1        |                     AS tab_111872
        test_1        |             ORDER BY
        test_1        |                 col_143756 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         overlaps('2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, ('2000-01-01 08:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:08'::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ, NULL::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 06:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ)::BOOL
        test_1        |                             AS col_143756
        test_1        |                 )
        test_1        |                     AS tab_111872
        test_1        |             ORDER BY
        test_1        |                 col_143756 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.41s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BIT(23) NOT NULL, col1_1 GEOMETRY NOT NULL, col1_2 DECIMAL NULL, col1_3 REGCLASS NULL, col1_4 REGCLASS NOT NULL, col1_5 FLOAT8 NULL, col1_6 OID NULL, col1_7 FLOAT8 NULL AS (col1_5 + '-Inf':::FLOAT8) STORED, col1_8 STRING NOT NULL AS (CASE WHEN col1_4 IS NULL THEN 'K?r':::STRING ELSE 'n':::STRING END) VIRTUAL, col1_9 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) STORED, col1_10 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) STORED, PRIMARY KEY (col1_0), INDEX (col1_0, col1_4 DESC, col1_10 ASC, col1_3, col1_9, col1_8 ASC, col1_2 ASC) WHERE ((table1.col1_10 >= e'\'':::STRING) AND (table1.col1_8 <= e'\U00002603':::STRING)) AND (table1.col1_9 <= '"':::STRING), FAMILY (col1_10, col1_0), FAMILY (col1_9, col1_1), FAMILY (col1_7, col1_5), FAMILY (col1_2, col1_6, col1_4, col1_3));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 981805522057213528, "histo_buckets": [{"distinct_range": 0, "num_eq": 2881305433517722212, "num_range": 0, "upper_bound": "00000000000000000000000"}, {"distinct_range": 957881.6117323906, "num_eq": 4989412509206196583, "num_range": 2000000, "upper_bound": "11001110101000011010101"}], "histo_col_type": "BIT(23)", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 392403856872446470, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 524765835170129350, "histo_col_type": "", "name": "__auto__", "null_count": 657441172601239987, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 179715053186485618, "histo_col_type": "", "name": "__auto__", "null_count": 927957903986061467, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 755873397360901201, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 650687271163776162, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 658602712330357431, "histo_col_type": "", "name": "__auto__", "null_count": 243277834499768705, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 688712263884163005, "histo_col_type": "", "name": "__auto__", "null_count": 325156879005786576, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 227629117256189159, "histo_col_type": "", "name": "__auto__", "null_count": 999993462224924261, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 267463440427296140, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 473365878793024253, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1002569286679587945}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 44941, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1843192, "histo_col_type": "", "name": "__auto__", "null_count": 1709293, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2785304, "histo_col_type": "", "name": "__auto__", "null_count": 7380582, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2910850, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3581478, "histo_col_type": "", "name": "__auto__", "null_count": 5037005, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 934390, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5187281, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6557442, "histo_buckets": [{"distinct_range": 0, "num_eq": 4197300370767511504, "num_range": 0, "upper_bound": "00001001111010001000111"}, {"distinct_range": 0, "num_eq": 2559281067492538477, "num_range": 7846554317160984611, "upper_bound": "00010110111110011011010"}, {"distinct_range": 0, "num_eq": 1000, "num_range": 4000, "upper_bound": "01000010011110001010011"}, {"distinct_range": 6000, "num_eq": 6982921300246751827, "num_range": 6000, "upper_bound": "01101000011010000110001"}, {"distinct_range": 5196687824170679000, "num_eq": 2510087485376791784, "num_range": 5196687824170678909, "upper_bound": "01111111000101110110110"}, {"distinct_range": 0, "num_eq": 6727272044882658081, "num_range": 2995941376159110872, "upper_bound": "11000110100100101101010"}], "histo_col_type": "BIT(23)", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4067956, "histo_col_type": "", "name": "__auto__", "null_count": 2782932, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3719503, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3431445, "histo_col_type": "", "name": "__auto__", "null_count": 4734972, "row_count": 8000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (175.85s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

/cc @cockroachdb/sql-experience

This test on roachdash | Improve this report!

Jira issue: CRDB-16697

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ aadbaf97b4e6092ad6978a28e2735715d64d9f10:

        postgres_1    |         col_845810 NULLS FIRST,
        postgres_1    |         col_845811 NULLS FIRST,
        postgres_1    |         col_845812 NULLS FIRST,
        postgres_1    |         col_845813 NULLS FIRST,
        postgres_1    |         col_845814 NULLS FIRST
        postgres_1    | 2022-06-15 05:28:45.269 UTC [78] ERROR:  function st_geogfromgeojson(jsonb) does not exist at character 95
        postgres_1    | 2022-06-15 05:28:45.269 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-06-15 05:28:45.269 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_482559.col1_6 AS col_846352,
        postgres_1    |                 COALESCE(tab_482559.col1_3, st_geogfromgeojson('null'::JSONB::JSONB::JSONB)::GEOGRAPHY) AS col_846353,
        postgres_1    |                 NULL::GEOGRAPHY AS col_846354
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_482559
        postgres_1    |             WHERE
        postgres_1    |                 true::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_482559.col1_2 DESC, tab_482559.col1_0 ASC
        postgres_1    |         )
        postgres_1    |             AS tab_482560
        postgres_1    |     ORDER BY
        postgres_1    |         col_846352 NULLS FIRST, col_846353 NULLS FIRST, col_846354 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.96s)
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     --- FAIL: TestCompare/mutators (0.35s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 CHAR NULL, col1_1 INT8[], col1_2 INT2 NOT NULL, col1_3 "char" NOT NULL, col1_4 FLOAT8 NULL, col1_5 BIT(23) NULL, col1_6 STRING NOT NULL AS (lower(col1_3)) STORED, col1_7 STRING AS (CASE WHEN col1_1 IS NULL THEN '':::STRING ELSE e'\r':::STRING END) STORED, col1_8 STRING NULL AS (lower(CAST(col1_5 AS STRING))) VIRTUAL, col1_9 INT2 NOT NULL AS (col1_2 + 5736:::INT8) VIRTUAL, col1_10 INT2 NOT NULL AS (col1_2 + 25643:::INT8) VIRTUAL, INDEX (col1_0 ASC, col1_8 DESC), INDEX (col1_4, lower(col1_0), (CASE WHEN col1_1 IS NULL THEN e'K\x06\x0e8':::STRING ELSE e'Op?;4\'s\x01M':::STRING END)) WHERE ((table1.col1_0 >= e'\x00':::STRING) AND (table1.col1_8 > '':::STRING)) AND (table1.col1_9 = 1:::INT8), INVERTED INDEX (col1_1), INDEX (lower(CAST(col1_5 AS STRING)) ASC) STORING (col1_0, col1_1, col1_2, col1_3, col1_4, col1_5, col1_7) WHERE (((((((table1.col1_10 > 0:::INT8) AND (table1.col1_8 = '"':::STRING)) AND (table1.col1_9 != (-1):::INT8)) OR (table1.col1_4 != 1.401298464324817e-45:::FLOAT8)) OR (table1.col1_0 = '':::STRING)) OR (table1.col1_2 < (-32768):::INT8)) OR (table1.col1_6 = e'\'':::STRING)) AND (table1.col1_7 != e'\'':::STRING), INVERTED INDEX (col1_10, col1_0, col1_7 DESC, col1_8, col1_3 ASC, col1_9 ASC, col1_6 ASC, col1_2 DESC, col1_5 DESC, col1_1 ASC) WHERE ((((((table1.col1_8 = '':::STRING) AND (table1.col1_9 != 1:::INT8)) AND (table1.col1_0 != e'\'':::STRING)) OR (table1.col1_10 >= 0:::INT8)) OR (table1.col1_3 < e'\x00':::STRING)) AND (table1.col1_4 = (-1.0):::FLOAT8)) AND (table1.col1_6 >= '':::STRING), FAMILY (col1_1), FAMILY (col1_0, col1_2, col1_7), FAMILY (col1_4, col1_5), FAMILY (col1_6, col1_3));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 39495893, "histo_buckets": [{"distinct_range": 0, "num_eq": 1424553467740240230, "num_range": 0, "upper_bound": "-1.6402189281976707"}, {"distinct_range": 70000, "num_eq": 5753833549081315169, "num_range": 70000, "upper_bound": "-1.5299245011626006"}, {"distinct_range": 412684546910471230, "num_eq": 8297537923616132323, "num_range": 3409200632208684759, "upper_bound": "-0.580160218161228"}, {"distinct_range": 0, "num_eq": 1383650233280404421, "num_range": 500000000, "upper_bound": "-0.5564662088633598"}, {"distinct_range": 2867504460972334600, "num_eq": 3000, "num_range": 3459166442014626223, "upper_bound": "0.5891400221514833"}, {"distinct_range": 0, "num_eq": 1968641834762575304, "num_range": 60000000, "upper_bound": "1.3383457747167575"}, {"distinct_range": 90000000000, "num_eq": 60000000000, "num_range": 90000000000, "upper_bound": "1.6136973675048965"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 69854546, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 114549698, "histo_col_type": "", "name": "__auto__", "null_count": 23179216, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 187677562, "histo_buckets": [{"distinct_range": 0, "num_eq": 3529258188424664999, "num_range": 0, "upper_bound": "\\u0004"}, {"distinct_range": 4214692725477423000, "num_eq": 6105756622681669932, "num_range": 4214692725477423358, "upper_bound": "\\u001d"}, {"distinct_range": 700000000, "num_eq": 7414450090263040657, "num_range": 700000000, "upper_bound": "-"}, {"distinct_range": 7927642188103115000, "num_eq": 0, "num_range": 7927642188103115083, "upper_bound": "~"}], "histo_col_type": "CHAR", "name": "__auto__", "null_count": 148887205, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 154070138, "histo_col_type": "", "name": "__auto__", "null_count": 67656144, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 40200918, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 143576311, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 167706536, "histo_buckets": [{"distinct_range": 0, "num_eq": 2000, "num_range": 0, "upper_bound": "-29922"}, {"distinct_range": 0, "num_eq": 500000000, "num_range": 200000, "upper_bound": "-13663"}, {"distinct_range": 0, "num_eq": 9000000000, "num_range": 1000000, "upper_bound": "6556"}, {"distinct_range": 0, "num_eq": 8000000000, "num_range": 90000000000, "upper_bound": "9419"}, {"distinct_range": 100000000000, "num_eq": 70000, "num_range": 100000000000, "upper_bound": "13933"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 67489460, "histo_col_type": "", "name": "__auto__", "null_count": 123738412, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 136079090, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 92040790, "histo_col_type": "", "name": "__auto__", "null_count": 156023612, "row_count": 200000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 186046465, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 200000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 514309695932811758, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 396939696686035392, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000000, "num_range": 0, "upper_bound": "\\\\x43"}, {"distinct_range": 48634005.51828572, "num_eq": 600, "num_range": 50000000, "upper_bound": "\\\\x809b329ccc24870f12"}, {"distinct_range": 6410494896422032000, "num_eq": 9000000, "num_range": 6410494896422032009, "upper_bound": "\\\\x80b400447e685a3a65"}, {"distinct_range": 3581556500492977000, "num_eq": 0, "num_range": 5928006972997490881, "upper_bound": "\\\\x80d95ac4ef4d600bed"}, {"distinct_range": 0, "num_eq": 695809468838543330, "num_range": 0, "upper_bound": "\\\\x80d95fcd13fa456a42"}, {"distinct_range": 0, "num_eq": 7101655867429141497, "num_range": 90000000000, "upper_bound": "\\\\x868000"}, {"distinct_range": 0, "num_eq": 431818602842518842, "num_range": 5067588741391159647, "upper_bound": "\\\\xfd13173c10e16e6042"}, {"distinct_range": 0, "num_eq": 80, "num_range": 5525263451248042249, "upper_bound": "\\\\xfd5b7f5fd1809738f5"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 53447671388295447, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 529270042029071244, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 494877775011671539, "histo_col_type": "", "name": "__auto__", "null_count": 213170086090212853, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 59648386882371080, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 504654954596150223, "histo_col_type": "", "name": "__auto__", "null_count": 52630413012969812, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 312350643174551449, "histo_buckets": [{"distinct_range": 0, "num_eq": 1217422781014878269, "num_range": 0, "upper_bound": "9"}, {"distinct_range": 5695105975942524000, "num_eq": 3670719126238849842, "num_range": 8109573223507896168, "upper_bound": "g"}, {"distinct_range": 17421628215.93851, "num_eq": 70000, "num_range": 40000000000, "upper_bound": "r"}], "histo_col_type": "CHAR", "name": "__auto__", "null_count": 272092514134144149, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 453267435583102035, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 147653333367627970, "histo_buckets": [{"distinct_range": 0, "num_eq": 400000, "num_range": 0, "upper_bound": "-0.8035459360336241"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 126284976877035831, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 261753268096740963, "histo_col_type": "", "name": "__auto__", "null_count": 558995517413874583, "row_count": 582270947598272610}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 329893171676972624, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "1"}, {"distinct_range": 2793954907971643000, "num_eq": 4198316694632235569, "num_range": 8270903236956817152, "upper_bound": "13360"}, {"distinct_range": 137.18540544509054, "num_eq": 0, "num_range": 300, "upper_bound": "15161"}, {"distinct_range": 8108463750087784000, "num_eq": 50000, "num_range": 8108463750087784722, "upper_bound": "23393"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 582270947598272610}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (638.21s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 47df1bc3a28f705e56ff4efc3d81c6fc90e096b5:

        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     --- FAIL: TestCompare/postgres (0.00s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        | panic: geos: no locations to init GEOS [recovered]
        test_1        |     panic: geos: no locations to init GEOS
        test_1        | 
        test_1        | goroutine 8 [running]:
        test_1        | testing.tRunner.func1.2({0x1ca3720, 0xc000e3f5c0})
        test_1        |     GOROOT/src/testing/testing.go:1209 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1212 +0x218
        test_1        | panic({0x1ca3720, 0xc000e3f5c0})
        test_1        |     GOROOT/src/runtime/panic.go:1038 +0x215
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3e8dec0, {0x2dc9890, 0xc000e6a570})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:369 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2d5aa60, 0x3e8dec0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:302 +0x14c
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc0006824e0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc000e2fa70, {0xc000e3eb60, 0x2, 0x0})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:252 +0xa4d
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc000083988, 0x1e288c8, {0xc000e3eb60, 0x1b44760, 0x1})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1b44760, {0x1e288c8, 0x5}, 0x2, 0x30, {0xc000df5a48, 0x3, 0x10000000000004c})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16d
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x530182b386d688cd, 0x530182b386d688cd)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:83 +0x187
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc0002d1500)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:72 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0x1e2df66)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:45 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc000815d40)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc000815d40, 0xc000e2f9e0)
        test_1        |     GOROOT/src/testing/testing.go:1259 +0x102
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1306 +0x35a
        compare_test_1 exited with code 2
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach1_1 ... done
        Stopping compare_cockroach2_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 2
--- FAIL: TestComposeCompare (20.76s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 8f23486add4b1e2e8356b2f6b04d1741b4141da4:

        test_1        |             -   string("G2000-01-01 00:00:01+00"),
        test_1        |             +   string("G2000-01-01 00:00:01+00:00"),
        test_1        |               }))
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         ('G'::TEXT::TEXT::TEXT || ('2000-01-01 00:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:01'::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ)::TEXT
        test_1        |                             AS col_436470
        test_1        |                 )
        test_1        |                     AS tab_229774
        test_1        |             ORDER BY
        test_1        |                 col_436470 NULLS FIRST;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         ('G':::STRING::STRING::STRING || ('2000-01-01 00:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:01':::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ)::STRING
        test_1        |                             AS col_436470
        test_1        |                 )
        test_1        |                     AS tab_229774
        test_1        |             ORDER BY
        test_1        |                 col_436470 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.46s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 DECIMAL, col1_1 TIMESTAMP NOT NULL, col1_2 TIMESTAMP NOT NULL, col1_3 STRING NULL AS (CASE WHEN col1_1 IS NULL THEN e'e\x0en\n\x0b':::STRING ELSE e'E\x0b\x1cp@\x02':::STRING END) VIRTUAL, PRIMARY KEY (col1_2 ASC, col1_1 DESC), UNIQUE (col1_3) STORING (col1_0) WHERE table1.col1_0 = (-1):::DECIMAL, INDEX (col1_1 ASC, col1_2, col1_0 DESC), UNIQUE (col1_0 DESC, col1_2, col1_3 ASC) WHERE table1.col1_0 = 'NaN':::DECIMAL, INDEX (col1_1, (CASE WHEN col1_2 IS NULL THEN e'M``s\x0e\x10\x18K':::STRING ELSE e'4\x0e9':::STRING END) ASC, col1_0 ASC) WHERE (table1.col1_2 <= '-2000-01-01 00:00:00':::TIMESTAMP) AND (table1.col1_1 >= '3000-01-01 00:00:00':::TIMESTAMP), INDEX (col1_2 ASC, col1_3 ASC) STORING (col1_0) WHERE (((table1.col1_1 = '0001-01-01 00:00:00':::TIMESTAMP) OR (table1.col1_0 > (-1.234E+401):::DECIMAL)) AND (table1.col1_2 = '-2000-01-01 00:00:00':::TIMESTAMP)) AND (table1.col1_3 >= 'X':::STRING), UNIQUE (col1_1, col1_0, col1_3 DESC), FAMILY (col1_1), FAMILY (col1_2), FAMILY (col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 365929909733088521, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000000000, "num_range": 0, "upper_bound": "1995-12-31 12:31:44.000374"}, {"distinct_range": 0, "num_eq": 100, "num_range": 1416835893827652811, "upper_bound": "1998-12-09 15:52:12.000655"}, {"distinct_range": 60000000, "num_eq": 5000000000, "num_range": 60000000, "upper_bound": "1999-03-27 14:42:26.000529"}, {"distinct_range": 6034384727147489000, "num_eq": 40000000, "num_range": 6034384727147489212, "upper_bound": "2013-07-20 07:41:59.000573"}, {"distinct_range": 4894538309265042000, "num_eq": 0, "num_range": 4894538309265042382, "upper_bound": "2017-08-11 09:53:01.000784"}, {"distinct_range": 10000, "num_eq": 2000000, "num_range": 10000, "upper_bound": "2019-05-13 10:31:10.000059"}, {"distinct_range": 1418217215982997500, "num_eq": 5000000, "num_range": 1418217215982997430, "upper_bound": "2029-10-10 09:15:50.000067"}, {"distinct_range": 33215423607.60556, "num_eq": 9093271070134996782, "num_range": 100000000000, "upper_bound": "3000-01-01 00:00:00"}], "histo_col_type": "TIMESTAMP", "name": "__auto__", "null_count": 0, "row_count": 623566309392704351}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 564728393914002129, "histo_buckets": [{"distinct_range": 0, "num_eq": 900000, "num_range": 0, "upper_bound": "1983-08-06 02:08:43.000353"}, {"distinct_range": 23127923.524531007, "num_eq": 400000, "num_range": 50000000, "upper_bound": "1986-04-05 12:08:48.00012"}], "histo_col_type": "TIMESTAMP", "name": "__auto__", "null_count": 0, "row_count": 623566309392704351}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 586902168340837571, "histo_buckets": [{"distinct_range": 0, "num_eq": 7478564940127129823, "num_range": 0, "upper_bound": "!.p\\"Y"}, {"distinct_range": 0, "num_eq": 10000000, "num_range": 9140333294196848657, "upper_bound": "B[\\u0013w&Z\\u0008\\t"}, {"distinct_range": 0, "num_eq": 90, "num_range": 200, "upper_bound": "``9"}, {"distinct_range": 78470182401.32542, "num_eq": 4908034575795834162, "num_range": 100000000000, "upper_bound": "fY2d:"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 374389864204050103, "row_count": 623566309392704351}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 145536990368538591, "histo_col_type": "DECIMAL", "name": "__auto__", "null_count": 489289544101907771, "row_count": 623566309392704351}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5, "histo_col_type": "", "name": "__auto__", "null_count": 13, "row_count": 20}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 3000, "num_range": 0, "upper_bound": "2002-03-15 03:42:24.000519"}, {"distinct_range": 5509641402905374000, "num_eq": 6803946166283854988, "num_range": 5509641402905373891, "upper_bound": "2007-08-27 00:45:05.000289"}, {"distinct_range": 0, "num_eq": 200, "num_range": 0, "upper_bound": "2011-10-26 03:46:30.000148"}, {"distinct_range": 104934257197132510, "num_eq": 5687700525633968083, "num_range": 2170855820446077953, "upper_bound": "2015-06-11 19:05:46.000067"}, {"distinct_range": 3204767575314406400, "num_eq": 10, "num_range": 3204767575314406416, "upper_bound": "2023-09-06 23:05:06.00091"}, {"distinct_range": 0, "num_eq": 700, "num_range": 4971417496779972449, "upper_bound": "3000-01-01 00:00:00"}], "histo_col_type": "TIMESTAMP", "name": "__auto__", "null_count": 0, "row_count": 20}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 4104634002166082324, "num_range": 0, "upper_bound": "1988-10-21 08:18:25.000649"}, {"distinct_range": 5058543049598550000, "num_eq": 900000000, "num_range": 5469967720791257791, "upper_bound": "2001-01-05 06:43:11.000203"}, {"distinct_range": 0, "num_eq": 40000000, "num_range": 4410193402006717704, "upper_bound": "2005-09-26 13:42:06.000256"}, {"distinct_range": 100, "num_eq": 6000000000, "num_range": 100, "upper_bound": "2029-11-29 01:11:59.000501"}, {"distinct_range": 0, "num_eq": 70000, "num_range": 0, "upper_bound": "2031-05-24 16:43:49.000357"}, {"distinct_range": 5286736785921985000, "num_eq": 50000000000, "num_range": 5286736785921984157, "upper_bound": "3000-01-01 00:00:00"}], "histo_col_type": "TIMESTAMP", "name": "__auto__", "null_count": 0, "row_count": 20}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 900000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 7019338843252311765, "num_range": 0, "upper_bound": "%Rlz"}, {"distinct_range": 0, "num_eq": 4446717541454273549, "num_range": 2185147646227211169, "upper_bound": "\'"}, {"distinct_range": 60000, "num_eq": 1809969967744412412, "num_range": 60000, "upper_bound": "?\\u0007\\u001a"}, {"distinct_range": 6013859472.471841, "num_eq": 40, "num_range": 50000000000, "upper_bound": "e6\\u0011(w4-c"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 9, "row_count": 20}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (342.65s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 8d34ef1ea15850ee1c70470610b6652df4c317de:

        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (43.96s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:188: open /home/agent/.cache/bazel/_bazel_agent/40f5e2a2e18a7cdb4cd075f919d8072b/execroot/com_github_cockroachdb_cockroach/_tmp/47c568f68c04b61694d82f4def978aef/TestComposeCompare2448453576/002/postgres.log: no such file or directory
        test_1        |         compare_test.go:190: compare cockroach1 to postgres: unexpected diff:
        test_1        |               []any(Inverse(func1, []any{
        test_1        |             -   nil,
        test_1        |             +   string("01010000000000000000B063C00000000000E05040"),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (SELECT st_pointfromgeohash('B':::STRING::STRING::STRING, NULL::INT4::INT4)::GEOMETRY AS col_66414) AS tab_35478
        test_1        |             ORDER BY
        test_1        |                 col_66414 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (SELECT st_pointfromgeohash('B'::TEXT::TEXT::TEXT, NULL::INT4::INT4)::GEOMETRY AS col_66414) AS tab_35478
        test_1        |             ORDER BY
        test_1        |                 col_66414 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.30s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BYTES NOT NULL, col1_1 BIT NOT NULL, col1_2 REGPROCEDURE NOT NULL, PRIMARY KEY (col1_1 ASC), INDEX (col1_1, col1_0), INDEX (col1_1 DESC) STORING (col1_2) WHERE table1.col1_0 > e'\\x27':::BYTES, FAMILY (col1_1), FAMILY (col1_0, col1_2));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 76, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2112, "histo_buckets": [{"distinct_range": 0, "num_eq": 983436371812936003, "num_range": 0, "upper_bound": "0"}, {"distinct_range": 9511729965031068, "num_eq": 6953183536754357982, "num_range": 9511729965031069, "upper_bound": "1"}], "histo_col_type": "BIT", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5629, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 269969573503751252, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3081122062389117734}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 290133159488660662, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000000000, "num_range": 0, "upper_bound": "1"}], "histo_col_type": "BIT", "name": "__auto__", "null_count": 0, "row_count": 3081122062389117734}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 235392765254873959, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3081122062389117734}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (73.59s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 8d34ef1ea15850ee1c70470610b6652df4c317de:

        test_1        |             -   string("010300000000000000"),
        test_1        |             +   string("010300000001000000050000000000000000000040000000000000144000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000144000000000000000400000000000001440"),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0:::FLOAT8::FLOAT8::FLOAT8, 5.0:::FLOAT8::FLOAT8::FLOAT8, 0.0:::FLOAT8::FLOAT8::FLOAT8, 0.0:::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_134719
        test_1        |                 )
        test_1        |                     AS tab_71123
        test_1        |             ORDER BY
        test_1        |                 col_134719 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0::FLOAT8::FLOAT8::FLOAT8, 5.0::FLOAT8::FLOAT8::FLOAT8, 0.0::FLOAT8::FLOAT8::FLOAT8, 0.0::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_134719
        test_1        |                 )
        test_1        |                     AS tab_71123
        test_1        |             ORDER BY
        test_1        |                 col_134719 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.39s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INT8, col1_1 TIMETZ NULL, col1_2 TIMESTAMPTZ, col1_3 GEOMETRY NOT NULL, col1_4 CHAR, col1_5 FLOAT4, col1_6 BIT(28) NULL, col1_7 TIME, col1_8 BIT(11) NULL, col1_9 INTERVAL, col1_10 TIMESTAMPTZ NOT NULL, col1_11 STRING NULL AS (lower(CAST(col1_1 AS STRING))) STORED, col1_12 STRING NOT NULL AS (CASE WHEN col1_10 IS NULL THEN 'X':::STRING ELSE e'&oX\b\t\r':::STRING END) VIRTUAL, col1_13 STRING AS (CASE WHEN col1_2 IS NULL THEN e'\'':::STRING ELSE e'K&:G\x13u':::STRING END) STORED, col1_14 FLOAT4 AS (col1_5 + '+Inf':::FLOAT8) VIRTUAL, col1_15 INT8 AS (col1_0 + 5818807148539326140:::INT8) VIRTUAL, INDEX (col1_12, col1_6 ASC, col1_14 DESC, col1_2 ASC, col1_0, col1_1, (col1_5 + 0.8294219374656677:::FLOAT8) ASC, col1_11 DESC, col1_13 DESC, col1_8) WHERE (((((((((((table1.col1_1 >= '00:00:00+15:59:00':::TIMETZ) OR (table1.col1_7 < '24:00:00':::TIME)) OR (table1.col1_14 != 0.0:::FLOAT8)) AND (table1.col1_12 <= '':::STRING)) OR (table1.col1_4 != 'X':::STRING)) OR (table1.col1_15 <= (-32768):::INT8)) OR (table1.col1_5 < 0.0:::FLOAT8)) AND (table1.col1_13 <= e'\'':::STRING)) OR (table1.col1_10 <= '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ)) AND (table1.col1_11 <= '"':::STRING)) AND (table1.col1_2 > '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ)) OR (table1.col1_0 <= 2147483647:::INT8), FAMILY (col1_13, col1_3), FAMILY (col1_1), FAMILY (col1_7), FAMILY (col1_4, col1_11, col1_8), FAMILY (col1_9, col1_2), FAMILY (col1_10, col1_0, col1_6, col1_5));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4425022287031486349, "histo_col_type": "", "name": "__auto__", "null_count": 5569214163926885953, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2340320176484585649, "histo_col_type": "", "name": "__auto__", "null_count": 3785692934330058000, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 797443276793561126, "histo_col_type": "", "name": "__auto__", "null_count": 4775159480011215945, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6366099213645095192, "histo_col_type": "", "name": "__auto__", "null_count": 6903679656315534482, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 54355906463835732, "histo_col_type": "", "name": "__auto__", "null_count": 1616502851336901157, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 782540728255056706, "histo_col_type": "", "name": "__auto__", "null_count": 3247153649436992248, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6227584210615608449, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6556164070544669466, "histo_col_type": "", "name": "__auto__", "null_count": 2912853028202900542, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 151964372594406744, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4400611990353733137, "histo_col_type": "", "name": "__auto__", "null_count": 2392228445199381684, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1388894673424979410, "histo_col_type": "", "name": "__auto__", "null_count": 2399574210668163059, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3631380944696891249, "histo_col_type": "", "name": "__auto__", "null_count": 5746726228706990897, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5731002322614097059, "histo_col_type": "", "name": "__auto__", "null_count": 5808317015371494713, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 756954520805778333, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4114418936517553138, "histo_col_type": "", "name": "__auto__", "null_count": 6743761804382933807, "row_count": 7030653859434913084}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3913751006396144428, "histo_col_type": "", "name": "__auto__", "null_count": 5996622997977744548, "row_count": 7030653859434913084}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3193412117, "histo_col_type": "", "name": "__auto__", "null_count": 1045789755, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3215187408, "histo_col_type": "", "name": "__auto__", "null_count": 573782168, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2159230575, "histo_col_type": "", "name": "__auto__", "null_count": 1846752380, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3233639476, "histo_col_type": "", "name": "__auto__", "null_count": 790795599, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 664636748, "histo_col_type": "", "name": "__auto__", "null_count": 2115677129, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1587386965, "histo_col_type": "", "name": "__auto__", "null_count": 3675333942, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2375473370, "histo_col_type": "", "name": "__auto__", "null_count": 3614371629, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3863287038, "histo_col_type": "", "name": "__auto__", "null_count": 104482808, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3129450709, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3930951311, "histo_col_type": "", "name": "__auto__", "null_count": 638610707, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1507188308, "histo_col_type": "", "name": "__auto__", "null_count": 550512548, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3987704054, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2399287043, "histo_buckets": [{"distinct_range": 0, "num_eq": 4826184506050007681, "num_range": 0, "upper_bound": ""}, {"distinct_range": 400000, "num_eq": 3741641225496976044, "num_range": 400000, "upper_bound": "Fan"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 193497695, "histo_col_type": "", "name": "__auto__", "null_count": 2169542651, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3766819162, "histo_col_type": "", "name": "__auto__", "null_count": 2537193104, "row_count": 4000000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 615644656, "histo_col_type": "", "name": "__auto__", "null_count": 1215048489, "row_count": 4000000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (131.59s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 8d34ef1ea15850ee1c70470610b6652df4c317de:

        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_235989.col_434761 AS col_434762
        postgres_1    |             FROM
        postgres_1    |                 (
        postgres_1    |                     VALUES
        postgres_1    |                         (
        postgres_1    |                             ((0::INT8::INT8::INT8 * 9::INT8::INT8::INT8)::INT8::INT8 * (5::DECIMAL::DECIMAL::DECIMAL * '00:00:06'::INTERVAL::INTERVAL::INTERVAL)::INTERVAL::INTERVAL)::INTERVAL
        postgres_1    |                         ),
        postgres_1    |                         ('00:00:02'::INTERVAL::INTERVAL),
        postgres_1    |                         ('00:00:08'::INTERVAL::INTERVAL),
        postgres_1    |                         (('00:00:03'::INTERVAL::INTERVAL::INTERVAL * 8::DECIMAL::DECIMAL::DECIMAL)::INTERVAL),
        postgres_1    |                         (parse_interval('B'::TEXT::TEXT::TEXT)::INTERVAL),
        postgres_1    |                         (NULL::INTERVAL)
        postgres_1    |                 )
        postgres_1    |                     AS tab_235989 (col_434761)
        postgres_1    |             WHERE
        postgres_1    |                 true::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_235989.col_434761 ASC
        postgres_1    |         )
        postgres_1    |             AS tab_235990
        postgres_1    |     ORDER BY
        postgres_1    |         col_434762 NULLS FIRST
        postgres_1    | 2022-06-20 05:28:07.917 UTC [79] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-06-20 05:28:07.917 UTC [79] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-06-20 05:28:07.917 UTC [79] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_434969) AS tab_236097 ORDER BY col_434969 NULLS FIRST
        test_1        | --- FAIL: TestCompare (1017.86s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.10s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 GEOMETRY, col2_1 REGCLASS, col2_2 TIME NULL, col2_3 FLOAT4 NULL, col2_4 BIT(14), col2_5 REGCLASS NOT NULL, col2_6 STRING AS (CASE WHEN col2_5 IS NULL THEN e'\x18\x03\r8x\x03r\x17``':::STRING ELSE '@_/r#':::STRING END) VIRTUAL, col2_7 STRING NOT NULL AS (CASE WHEN col2_1 IS NULL THEN e'3\x1a2\x13\x1c':::STRING ELSE e't\x1dX>\x0b':::STRING END) VIRTUAL, col2_8 STRING AS (CASE WHEN col2_5 IS NULL THEN NULL ELSE e'\b\x1c7\x1c0\x041&Y':::STRING END) STORED, col2_9 STRING AS (lower(CAST(col2_4 AS STRING))) VIRTUAL, PRIMARY KEY (col2_5 DESC, col2_7 ASC), INVERTED INDEX (col2_5, col2_0 DESC) PARTITION BY LIST (col2_5) (PARTITION table2_part_0 VALUES IN ((2148492799:::OID,), (507462948:::OID,), (3012048717:::OID,), (1879095645:::OID,), (3381506402:::OID,)), PARTITION table2_part_1 VALUES IN ((1827004708:::OID,), (0:::OID,), (2459890901:::OID,), (1258841998:::OID,), (1097085500:::OID,)), PARTITION table2_part_2 VALUES IN ((2559378952:::OID,), (1529784710:::OID,), (144344984:::OID,), (2754876929:::OID,), (471657953:::OID,)), PARTITION table2_part_3 VALUES IN ((1856088289:::OID,), (3321350391:::OID,), (3615410199:::OID,), (3852737952:::OID,), (289211229:::OID,)), PARTITION table2_part_4 VALUES IN ((575722047:::OID,), (2659863542:::OID,), (2889177481:::OID,), (1492201808:::OID,), (1881534592:::OID,)), PARTITION table2_part_5 VALUES IN ((2471938676:::OID,), (733312343:::OID,), (3235898562:::OID,), (1601827727:::OID,), (4144426293:::OID,)), PARTITION table2_part_6 VALUES IN ((1160231126:::OID,), (932141665:::OID,), (3985238211:::OID,), (1073691971:::OID,)), PARTITION table2_part_7 VALUES IN ((110286318:::OID,), (3201426417:::OID,), (2195029860:::OID,), (2134460246:::OID,), (3787997217:::OID,)), PARTITION table2_part_8 VALUES IN ((2395757170:::OID,), (2780203330:::OID,), (2492763579:::OID,), (1880393226:::OID,), (1602982255:::OID,)), PARTITION table2_part_9 VALUES IN ((3334710214:::OID,), (3766387806:::OID,), (3913605576:::OID,), (495033333:::OID,))) WHERE (((((table2.col2_2 != '24:00:00':::TIME) OR (table2.col2_6 = '':::STRING)) OR (table2.col2_3 > '+Inf':::FLOAT8)) OR (table2.col2_9 != e'\'':::STRING)) OR (table2.col2_7 > 'X':::STRING)) OR (table2.col2_8 <= e'\'':::STRING), UNIQUE ((CASE WHEN col2_5 IS NULL THEN e'\'':::STRING ELSE '':::STRING END), (CASE WHEN col2_1 IS NULL THEN '``6U<r':::STRING ELSE e'\b':::STRING END) DESC, col2_1 ASC, col2_5 DESC, col2_2 ASC, col2_4 DESC, col2_8 DESC) STORING (col2_0) WHERE (((((table2.col2_9 <= e'\x00':::STRING) OR (table2.col2_7 != e'\U00002603':::STRING)) OR (table2.col2_8 >= '"':::STRING)) OR (table2.col2_6 >= 'X':::STRING)) AND (table2.col2_3 >= '+Inf':::FLOAT8)) AND (table2.col2_2 != '00:00:00':::TIME), INVERTED INDEX (col2_2 ASC, col2_7 ASC, col2_8 ASC, col2_3, col2_0 DESC) PARTITION BY LIST (col2_2, col2_7) (PARTITION table2_part_0 VALUES IN (('09:23:37.562691':::TIME, e'x\x05p':::STRING), ('22:31:28.913762':::TIME, e'P08&"YS\x1dv':::STRING), ('10:10:47.063742':::TIME, '':::STRING), ('07:01:26.782675':::TIME, '9J':::STRING)), PARTITION table2_part_1 VALUES IN (('01:18:59.615311':::TIME, '_':::STRING), ('02:39:04.021664':::TIME, e'|\n':::STRING), ('14:03:47.888497':::TIME, e'\'':::STRING), ('21:09:43.246334':::TIME, ' ':::STRING)), PARTITION table2_part_2 VALUES IN (('04:52:39.36714':::TIME, 'S':::STRING), ('01:15:04.244012':::TIME, e'/\tuy\x1e\x11s,X':::STRING), ('07:34:03.498546':::TIME, '':::STRING), ('08:50:39.186372':::TIME, e'\x00':::STRING)), PARTITION table2_part_3 VALUES IN (('24:00:00':::TIME, '"':::STRING), ('24:00:00':::TIME, '@o':::STRING), ('00:52:05.372491':::TIME, e'\U00002603':::STRING), (NULL, e'!Y\x0fV.\x17\x15@':::STRING)), PARTITION table2_part_4 VALUES IN (('24:00:00':::TIME, e'\x18B':::STRING), ('00:07:36.333297':::TIME, e'^U\x7f)':::STRING), ('24:00:00':::TIME, e'i\x16':::STRING), ('21:20:33.014539':::TIME, e'\x1d\x0f':::STRING)), PARTITION table2_part_5 VALUES IN (('20:19:38.301868':::TIME, e'8\x17\x05\x7fQK':::STRING), (NULL, '':::STRING), ('22:33:37.366118':::TIME, '':::STRING), ('14:51:42.204689':::TIME, e'\x13ss!O':::STRING)), PARTITION "DEFAULT" VALUES IN ((DEFAULT, DEFAULT))) WHERE (((((table2.col2_2 = '24:00:00':::TIME) OR (table2.col2_3 = 3.4028234663852886e+38:::FLOAT8)) AND (table2.col2_7 > e'\x00':::STRING)) AND (table2.col2_8 >= 'X':::STRING)) OR (table2.col2_9 < e'\U00002603':::STRING)) OR (table2.col2_6 < e'\U00002603':::STRING), UNIQUE ((CASE WHEN col2_5 IS NULL THEN e't\t':::STRING ELSE e'|M\x049TJ':::STRING END), col2_3, col2_4 DESC, col2_6 DESC, col2_8, col2_1 ASC, col2_9) STORING (col2_0, col2_2) WHERE (((((table2.col2_6 <= e'\x00':::STRING) OR (table2.col2_3 != 'NaN':::FLOAT8)) OR (table2.col2_9 != 'X':::STRING)) AND (table2.col2_2 = '00:00:00':::TIME)) AND (table2.col2_7 > 'X':::STRING)) OR (table2.col2_8 <= '':::STRING), UNIQUE (col2_2 ASC, col2_1) STORING (col2_0, col2_8) PARTITION BY LIST (col2_2) (PARTITION table2_part_0 VALUES IN (('24:00:00':::TIME,)), PARTITION table2_part_2 VALUES IN (('00:00:00':::TIME,)), PARTITION table2_part_3 VALUES IN (('11:34:40.014256':::TIME,)), PARTITION table2_part_4 VALUES IN (('00:34:34.666779':::TIME,)), PARTITION table2_part_5 VALUES IN (('01:05:10.776218':::TIME,)), PARTITION table2_part_6 VALUES IN (('08:07:40.298525':::TIME,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), INVERTED INDEX ((col2_3 + (-1.152878761291504):::FLOAT8), col2_5 ASC, col2_1 ASC, lower(CAST(col2_2 AS STRING)), col2_4 DESC, col2_3 ASC, col2_8, col2_9 DESC, col2_0), INDEX (col2_7 DESC, col2_1 ASC, col2_5 DESC, (CASE WHEN col2_5 IS NULL THEN e'\x1b\x0627':::STRING ELSE 'M]':::STRING END) ASC, col2_4 ASC, col2_2, col2_3, col2_9 DESC, lower(CAST(col2_2 AS STRING)) DESC, col2_6 DESC) WHERE ((table2.col2_3 != 1.0:::FLOAT8) AND (table2.col2_8 != '':::STRING)) AND (table2.col2_9 < '':::STRING))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=55498ec6-47de-4815-997c-bd6e763bf150 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (1045.53s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 377b113bd7e7b679c55a0f93e0d8ab5dbb6f2e97:

        postgres_1    |         col_675733 NULLS FIRST, col_675734 NULLS FIRST
        postgres_1    | 2022-06-21 05:30:39.631 UTC [78] ERROR:  function st_geogfromewkb(bytea) does not exist at character 25
        postgres_1    | 2022-06-21 05:30:39.631 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-06-21 05:30:39.631 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (SELECT st_geogfromewkb('\x46'::BYTEA::BYTEA::BYTEA)::GEOGRAPHY AS col_675788) AS tab_445610
        postgres_1    |     ORDER BY
        postgres_1    |         col_675788 NULLS FIRST
        postgres_1    | 2022-06-21 05:30:39.868 UTC [78] ERROR:  function st_geogfromtext(text, integer) does not exist at character 168
        postgres_1    | 2022-06-21 05:30:39.868 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-06-21 05:30:39.868 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_445791.col3_0 AS col_676078, tab_445791.tableoid AS col_676079
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table3 AS tab_445791
        postgres_1    |             WHERE
        postgres_1    |                 _st_dwithin(st_geogfromtext((B'1000'::VARBIT::VARBIT || (CASE WHEN ((NOT false::BOOL) AND ('J'::TEXT::TEXT::TEXT IN ('B'::TEXT::TEXT))) THEN NULL::GEOGRAPHY ELSE NULL::GEOGRAPHY END::GEOGRAPHY || 'H'::TEXT::TEXT::TEXT)::TEXT::TEXT)::TEXT::TEXT, 7::INT8::INT4::INT4)::GEOGRAPHY::GEOGRAPHY, NULL::GEOGRAPHY::GEOGRAPHY, 9.0::FLOAT8::FLOAT8::FLOAT8)::BOOL
        postgres_1    |         )
        postgres_1    |             AS tab_445792
        postgres_1    |     ORDER BY
        postgres_1    |         col_676078 NULLS FIRST, col_676079 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.74s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.52s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INTERVAL NULL, col1_1 "char" NOT NULL, col1_2 VARCHAR NULL, col1_3 BIT(49) NULL, col1_4 INET NULL, col1_5 INT8, col1_6 JSONB NOT NULL, col1_7 REGPROCEDURE NOT NULL, col1_8 INT4 NOT NULL, col1_9 TIMESTAMP NOT NULL, col1_10 REGPROCEDURE NOT NULL, col1_11 BOX2D NOT NULL, col1_12 TIMETZ NOT NULL, col1_13 BYTES NOT NULL, col1_14 STRING NULL AS (lower(CAST(col1_4 AS STRING))) VIRTUAL, col1_15 INT8 AS (col1_5 + col1_8) STORED, PRIMARY KEY (col1_12 ASC, col1_11 ASC, col1_8 DESC, col1_1 ASC, col1_10 DESC), INDEX (col1_14 DESC, col1_9 ASC, lower(CAST(col1_4 AS STRING)) DESC, col1_7 ASC, col1_3, col1_4 DESC, col1_12) STORING (col1_0, col1_2, col1_5, col1_13) WHERE ((((table1.col1_1 != '"':::STRING) OR (table1.col1_5 != 0:::INT8)) OR (table1.col1_9 < '-4713-11-24 00:00:00':::TIMESTAMP)) OR (table1.col1_15 != (-32768):::INT8)) OR (table1.col1_8 <= (-128):::INT8), INVERTED INDEX (col1_7 ASC, col1_10 ASC, col1_12, col1_11 ASC, col1_13 ASC, (col1_5 + col1_8) ASC, col1_6 ASC) WHERE ((((((((table1.col1_8 > (-32768):::INT8) AND (table1.col1_14 >= e'\'':::STRING)) AND (table1.col1_2 >= e'\x00':::STRING)) OR (table1.col1_15 > 127:::INT8)) OR (table1.col1_5 >= 9223372036854775807:::INT8)) AND (table1.col1_13 >= '\xff':::BYTES)) AND (table1.col1_12 != '24:00:00-15:59:00':::TIMETZ)) AND (table1.col1_9 != '-2000-01-01 00:00:00':::TIMESTAMP)) AND (table1.col1_1 > e'\U00002603':::STRING), INDEX (col1_1, col1_9 DESC, col1_12 DESC, col1_3 ASC, col1_11, (col1_5 + col1_8) ASC, col1_15, col1_7 ASC, col1_8 ASC, col1_2 ASC, col1_14 ASC, col1_13 ASC, col1_5) STORING (col1_0, col1_6) WHERE ((table1.col1_2 = e'\'':::STRING) OR (table1.col1_13 >= e'\\x27':::BYTES)) OR (table1.col1_1 >= e'\x00':::STRING), INDEX (col1_14, col1_1 ASC, col1_4 DESC, col1_12 DESC, col1_13 DESC, col1_8 DESC, col1_10) STORING (col1_0, col1_2, col1_6, col1_9), INDEX (col1_14 DESC, col1_9, col1_2, col1_13, col1_8 ASC, col1_10 ASC, col1_5 DESC) STORING (col1_4, col1_6, col1_7) WHERE ((((((((table1.col1_2 != e'\U00002603':::STRING) AND (table1.col1_14 >= 'X':::STRING)) AND (table1.col1_9 != '0001-01-01 00:00:00':::TIMESTAMP)) AND (table1.col1_13 != e'\\xe29883':::BYTES)) AND (table1.col1_5 > (-2147483648):::INT8)) AND (table1.col1_12 < '24:00:00-15:59:00':::TIMETZ)) AND (table1.col1_8 != (-128):::INT8)) OR (table1.col1_1 = e'\x00':::STRING)) OR (table1.col1_15 != (-2147483648):::INT8), FAMILY (col1_15, col1_1), FAMILY (col1_10, col1_6, col1_0), FAMILY (col1_9, col1_5, col1_3, col1_4), FAMILY (col1_8, col1_12, col1_11), FAMILY (col1_13, col1_2, col1_7));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 32797878, "histo_col_type": "", "name": "__auto__", "null_count": 22679355, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 27648155, "histo_col_type": "", "name": "__auto__", "null_count": 32802002, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 32247312, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2132066, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 19508724, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8775980, "histo_buckets": [{"distinct_range": 0, "num_eq": 90000, "num_range": 0, "upper_bound": "00:00:00+15:59:00"}, {"distinct_range": 2626758407196943000, "num_eq": 600, "num_range": 8077731256047989271, "upper_bound": "19:43:02.784489+11:32:00"}, {"distinct_range": 0, "num_eq": 6265219339144420170, "num_range": 8197763619942978399, "upper_bound": "19:22:12.525454+09:29:00"}, {"distinct_range": 0, "num_eq": 40000000, "num_range": 20000000000, "upper_bound": "10:05:58.135221-01:16:00"}, {"distinct_range": 0, "num_eq": 400000, "num_range": 3000000, "upper_bound": "09:37:46.993294-05:58:00"}, {"distinct_range": 3394326685498639000, "num_eq": 60, "num_range": 3394326685498638607, "upper_bound": "19:14:14.557547+00:36:00"}, {"distinct_range": 3260566864628592000, "num_eq": 100000, "num_range": 5775522798185918207, "upper_bound": "24:00:00-15:59:00"}], "histo_col_type": "TIMETZ", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 26003515, "histo_col_type": "", "name": "__auto__", "null_count": 22952470, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 31962794, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 24690663, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 21413059, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 37811872, "histo_col_type": "", "name": "__auto__", "null_count": 16105397, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3624112, "histo_col_type": "", "name": "__auto__", "null_count": 13258843, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 30427943, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 631073, "histo_buckets": [{"distinct_range": 0, "num_eq": 80000000000, "num_range": 0, "upper_bound": "\\u00038P-xL"}, {"distinct_range": 0, "num_eq": 7628530135200850136, "num_range": 0, "upper_bound": "<$$ \\u001c\\t\\u001a\\u0004_"}, {"distinct_range": 40000000000, "num_eq": 6000000, "num_range": 40000000000, "upper_bound": "X"}, {"distinct_range": 0, "num_eq": 8496093198665920417, "num_range": 8366895379902524542, "upper_bound": "i\\u001c7``YEe"}, {"distinct_range": 0, "num_eq": 4733668432263205990, "num_range": 30000000000, "upper_bound": "s\\u0002W"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 26890600, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9370113, "histo_col_type": "", "name": "__auto__", "null_count": 190570, "row_count": 40000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 11374592, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 673994, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": ">=+lNg\\ro;"}, {"distinct_range": 2660219116374974500, "num_eq": 700, "num_range": 8643528899103995705, "upper_bound": "\U00002603"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 728306, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 195942, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 279264, "histo_buckets": [{"distinct_range": 0, "num_eq": 883561243953797086, "num_range": 0, "upper_bound": "3"}, {"distinct_range": 0, "num_eq": 9007087967151273534, "num_range": 100000, "upper_bound": "W"}, {"distinct_range": 3148321468077121000, "num_eq": 6000000000, "num_range": 3226790648585649466, "upper_bound": "r"}, {"distinct_range": 7991127256298330000, "num_eq": 4169456180848547800, "num_range": 8180935225828474974, "upper_bound": "v"}], "histo_col_type": "\\"char\\"", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 598225, "histo_col_type": "", "name": "__auto__", "null_count": 448551, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 377729, "histo_col_type": "", "name": "__auto__", "null_count": 657528, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 38821, "histo_col_type": "", "name": "__auto__", "null_count": 323499, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 332380, "histo_col_type": "", "name": "__auto__", "null_count": 390167, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 523939, "histo_col_type": "", "name": "__auto__", "null_count": 618559, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 382458, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 478081, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 673811, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 379337, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 630326, "histo_col_type": "", "name": "__auto__", "null_count": 317973, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 677057, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 339870, "histo_col_type": "REGPROCEDURE", "name": "__auto__", "null_count": 0, "row_count": 900000}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 834527, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (634.52s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 13cb2f6c40e3146fed8d931f65f89da9b42ce2c1:

        postgres_1    |         col_651921 NULLS FIRST,
        postgres_1    |         col_651922 NULLS FIRST,
        postgres_1    |         col_651923 NULLS FIRST,
        postgres_1    |         col_651924 NULLS FIRST,
        postgres_1    |         col_651925 NULLS FIRST,
        postgres_1    |         col_651926 NULLS FIRST,
        postgres_1    |         col_651927 NULLS FIRST,
        postgres_1    |         col_651928 NULLS FIRST,
        postgres_1    |         col_651929 NULLS FIRST
        postgres_1    | 2022-06-22 05:28:05.665 UTC [78] ERROR:  function from_uuid(bytea) does not exist at character 97
        postgres_1    | 2022-06-22 05:28:05.665 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-06-22 05:28:05.665 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_466039.col2_0 AS col_652070,
        postgres_1    |                 1::OID::OID AS col_652071,
        postgres_1    |                 from_uuid(NULL::BYTEA::BYTEA)::TEXT AS col_652072
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_466039
        postgres_1    |             WHERE
        postgres_1    |                 NULL::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_466039.col2_4 ASC, tab_466039.tableoid DESC, tab_466039.col2_3 ASC
        postgres_1    |         )
        postgres_1    |             AS tab_466040
        postgres_1    |     ORDER BY
        postgres_1    |         col_652070 NULLS FIRST, col_652071 NULLS FIRST, col_652072 NULLS FIRST
        test_1        | --- FAIL: TestCompare (668.34s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.12s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 BOOL NOT NULL, col2_1 OID, col2_2 JSONB NOT NULL, col2_3 GEOGRAPHY NULL, col2_4 INT2 NOT NULL, PRIMARY KEY (col2_0, col2_4 DESC), INVERTED INDEX (col2_4 DESC, col2_0, col2_1 ASC, col2_2 DESC) PARTITION BY LIST (col2_4, col2_0, col2_1) (PARTITION table2_part_0 VALUES IN ((1:::INT8, false, 3311734407:::OID), ((-1):::INT8, false, 2643479497:::OID), (205:::INT8, false, 3140373882:::OID), ((-16521):::INT8, false, 2294125543:::OID)), PARTITION table2_part_1 VALUES IN (((-15445):::INT8, true, 1341694693:::OID), (127:::INT8, true, 4204135199:::OID), ((-21918):::INT8, true, 747711676:::OID), (17484:::INT8, true, 839123473:::OID)), PARTITION table2_part_2 VALUES IN ((3521:::INT8, false, 3675595482:::OID), (814:::INT8, true, 1734685384:::OID), ((-30777):::INT8, true, 253278260:::OID), (18609:::INT8, false, 1485369845:::OID)), PARTITION table2_part_3 VALUES IN (((-19795):::INT8, false, 2269953102:::OID), (29332:::INT8, true, NULL), (2549:::INT8, true, 3979881516:::OID), ((-11547):::INT8, false, 0:::OID)), PARTITION table2_part_4 VALUES IN ((7690:::INT8, false, 1182547785:::OID), (7460:::INT8, false, 3030098525:::OID), (13377:::INT8, false, NULL), ((-28161):::INT8, false, 905636317:::OID)), PARTITION table2_part_5 VALUES IN ((22377:::INT8, true, 3069756638:::OID), (13810:::INT8, true, NULL), ((-7093):::INT8, true, 2162527738:::OID), ((-28060):::INT8, true, NULL)), PARTITION table2_part_6 VALUES IN (((-28070):::INT8, false, 2463725408:::OID), ((-7961):::INT8, true, 2154427491:::OID), ((-15417):::INT8, false, 1421444037:::OID), (26145:::INT8, true, 137244000:::OID)), PARTITION table2_part_7 VALUES IN ((27664:::INT8, false, 1553446949:::OID), (13502:::INT8, false, 222697205:::OID), ((-2181):::INT8, false, 2352735540:::OID), (32767:::INT8, true, 3656824101:::OID)), PARTITION "DEFAULT" VALUES IN ((DEFAULT, DEFAULT, DEFAULT))) WHERE (table2.col2_4 = (-128):::INT8) OR table2.col2_0, UNIQUE (col2_0, col2_4 DESC) WHERE (table2.col2_4 > (-32768):::INT8) OR table2.col2_0, INDEX (col2_0) STORING (col2_1, col2_2, col2_3), FAMILY (col2_0), FAMILY (col2_2), FAMILY (col2_4), FAMILY (col2_3), FAMILY (col2_1))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=b12fee56-1cb3-429c-88a8-c357a44adeff for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (698.03s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 7a1ced4a49d28f66f381e78733bcab510e2cbafe:

        postgres_1    |                     AS col_648412,
        postgres_1    |                 tab_349479.col1_3 AS col_648413,
        postgres_1    |                 'J'::TEXT::TEXT AS col_648414,
        postgres_1    |                 tab_349479.col1_8 AS col_648415,
        postgres_1    |                 'D'::TEXT::TEXT AS col_648416,
        postgres_1    |                 tab_349479.col1_2 AS col_648417,
        postgres_1    |                 'G'::TEXT::TEXT AS col_648418,
        postgres_1    |                 tab_349479.col1_4 AS col_648419,
        postgres_1    |                 tab_349479.col1_0 AS col_648420
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_349479
        postgres_1    |             WHERE
        postgres_1    |                 false::BOOL
        postgres_1    |         )
        postgres_1    |             AS tab_349480
        postgres_1    |     ORDER BY
        postgres_1    |         col_648412 NULLS FIRST,
        postgres_1    |         col_648413 NULLS FIRST,
        postgres_1    |         col_648414 NULLS FIRST,
        postgres_1    |         col_648415 NULLS FIRST,
        postgres_1    |         col_648416 NULLS FIRST,
        postgres_1    |         col_648417 NULLS FIRST,
        postgres_1    |         col_648418 NULLS FIRST,
        postgres_1    |         col_648419 NULLS FIRST,
        postgres_1    |         col_648420 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.75s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.59s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INT8, col1_1 FLOAT8, col1_2 GEOGRAPHY, col1_3 INT8 AS (col1_0 + (-5920536106497331252):::INT8) VIRTUAL, INDEX (col1_0) STORING (col1_1, col1_2) WHERE ((table1.col1_0 < (-1):::INT8) OR (table1.col1_1 > 3.4028234663852886e+38:::FLOAT8)) OR (table1.col1_3 >= (-2147483648):::INT8), UNIQUE (col1_1 ASC, col1_3 DESC) STORING (col1_2), UNIQUE (col1_1, col1_3 DESC, col1_0) WHERE ((table1.col1_0 < 2147483647:::INT8) AND (table1.col1_3 < 9223372036854775807:::INT8)) OR (table1.col1_1 != 1.0:::FLOAT8), FAMILY (col1_1), FAMILY (col1_2), FAMILY (col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 492377884, "histo_col_type": "", "name": "__auto__", "null_count": 116374361, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 37594687, "histo_col_type": "", "name": "__auto__", "null_count": 205296162, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 213160133, "histo_col_type": "", "name": "__auto__", "null_count": 788832191, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 335232922, "histo_buckets": [{"distinct_range": 0, "num_eq": 100, "num_range": 0, "upper_bound": "0.21306658725027905"}, {"distinct_range": 3566814637708837000, "num_eq": 1000000, "num_range": 8208637499511549478, "upper_bound": "0.33819914588775185"}, {"distinct_range": 13821484919.036926, "num_eq": 1000, "num_range": 40000000000, "upper_bound": "0.91272524555982"}, {"distinct_range": 0, "num_eq": 60000000000, "num_range": 5507516972802143685, "upper_bound": "1.1272305174958897"}, {"distinct_range": 0, "num_eq": 8401940986557513661, "num_range": 6226374050456313929, "upper_bound": "1.4383161541178329"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 783320527, "row_count": 1000000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 13914336, "histo_buckets": [{"distinct_range": 0, "num_eq": 425388781544184798, "num_range": 0, "upper_bound": "-3315192041408796654"}, {"distinct_range": 1654223388500744200, "num_eq": 7546390358441036059, "num_range": 3843577438539349724, "upper_bound": "307427805195917817"}, {"distinct_range": 100000000000, "num_eq": 5000000000, "num_range": 100000000000, "upper_bound": "1047103476464146888"}, {"distinct_range": 0, "num_eq": 10000000, "num_range": 8772613235327117096, "upper_bound": "4080272162605731403"}, {"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "4488467646598008563"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 22225702, "row_count": 30000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 21257670, "histo_buckets": [{"distinct_range": 0, "num_eq": 2050687862552858579, "num_range": 0, "upper_bound": "-0.15210484576131028"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 751144, "row_count": 30000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 11273629, "histo_col_type": "", "name": "__auto__", "null_count": 20571707, "row_count": 30000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 29749958, "histo_col_type": "", "name": "__auto__", "null_count": 19913103, "row_count": 30000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (636.64s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 7af6c0d3e2085cafda90d5f0b15d06f6a360f154:

        postgres_1    |                 NULL::BIT(21) AS col_679157,
        postgres_1    |                 tab_344210.col2_14 AS col_679158,
        postgres_1    |                 5::INT8::INT4 AS col_679159,
        postgres_1    |                 'J'::TEXT::TEXT AS col_679160,
        postgres_1    |                 tab_344210.col2_2 AS col_679161,
        postgres_1    |                 tab_344210.col2_10 AS col_679162,
        postgres_1    |                 tab_344210.tableoid AS col_679163,
        postgres_1    |                 CASE WHEN true::BOOL THEN tab_344210.col2_9 ELSE tab_344210.col2_9 END AS col_679164,
        postgres_1    |                 tab_344210.col2_11 AS col_679165,
        postgres_1    |                 9::INT8::INT4 AS col_679166,
        postgres_1    |                 NULL::GEOMETRY[] AS col_679167
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_344210
        postgres_1    |             WHERE
        postgres_1    |                 NULL::GEOMETRY::GEOMETRY NOT IN (NULL::GEOMETRY, NULL::GEOMETRY, NULL::GEOMETRY, NULL::GEOMETRY)
        postgres_1    |         )
        postgres_1    |             AS tab_344211
        postgres_1    |     ORDER BY
        postgres_1    |         col_679157 NULLS FIRST,
        postgres_1    |         col_679158 NULLS FIRST,
        postgres_1    |         col_679159 NULLS FIRST,
        postgres_1    |         col_679160 NULLS FIRST,
        postgres_1    |         col_679161 NULLS FIRST,
        postgres_1    |         col_679162 NULLS FIRST,
        postgres_1    |         col_679163 NULLS FIRST,
        postgres_1    |         col_679164 NULLS FIRST,
        postgres_1    |         col_679165 NULLS FIRST,
        postgres_1    |         col_679166 NULLS FIRST,
        postgres_1    |         col_679167 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.55s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.30s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BYTES NOT NULL, col1_1 VARCHAR NOT NULL, col1_2 INT2 NOT NULL, col1_3 STRING NOT NULL AS (lower(col1_1)) STORED, col1_4 STRING NOT NULL AS (lower(col1_1)) VIRTUAL, PRIMARY KEY (col1_3 ASC, col1_4 DESC, col1_1 DESC, col1_0 DESC), INDEX (col1_0, col1_3) PARTITION BY LIST (col1_0, col1_3) (PARTITION table1_part_0 VALUES IN (('\x4c7e6a3532':::BYTES, e'7zuvN\x0e\n':::STRING), ('\x1fad498bc1779123':::BYTES, ';)':::STRING), ('\xea':::BYTES, e'1``\x1e\x03\x1d':::STRING)), PARTITION table1_part_1 VALUES IN (('\x4573':::BYTES, e'\U00002603':::STRING), ('\xfbbf1865ceda9902':::BYTES, e'1\'R\\e]':::STRING), ('\x4c15ed42b42d4f1b':::BYTES, e'\x11\x04':::STRING)), PARTITION table1_part_2 VALUES IN (('\xa1454c86':::BYTES, e'\x05':::STRING), ('\xaf14d2b5a640':::BYTES, e'qb\x05':::STRING), ('\x4f390f':::BYTES, e'\x19f\x19J\x1e':::STRING)), PARTITION table1_part_3 VALUES IN (('\xf6d50d1c9e3f364583':::BYTES, e'\b2\x12q\x15j\r}':::STRING), ('\x855a4a':::BYTES, '0_k~<':::STRING), ('\x07d93a13d802d19fe2':::BYTES, e'\x05:%Lo\tl':::STRING)), PARTITION table1_part_4 VALUES IN (('\x9d9457286ec1':::BYTES, e'QN(G\x04\x7fPO\\':::STRING), ('\x0fe86aae':::BYTES, e'\x02X\tDq^':::STRING), ('\xb3de560461fd4a':::BYTES, e'r\x17&3/\x11^D':::STRING)), PARTITION table1_part_5 VALUES IN (('\x7a9b':::BYTES, '':::STRING), ('\x27':::BYTES, ';7P':::STRING), ('\x6230cb0c':::BYTES, e'\t\x04\x0b qo^':::STRING))), INDEX (col1_1 ASC, col1_3, col1_2 ASC), UNIQUE (col1_0 DESC, (col1_2 + 10919:::INT8) DESC, col1_4 DESC, col1_1 DESC, col1_2 ASC) WHERE ((table1.col1_0 != '\x00':::BYTES) AND (table1.col1_3 < '"':::STRING)) OR (table1.col1_4 <= e'\x00':::STRING), UNIQUE (col1_4 ASC, col1_1 DESC, col1_0, col1_2), UNIQUE (col1_4 ASC, col1_0 DESC, col1_3 DESC) WHERE (table1.col1_2 = (-1):::INT8) OR (table1.col1_4 <= e'\U00002603':::STRING), INDEX (lower(col1_1), col1_2, col1_4 DESC, col1_0 DESC) WHERE ((table1.col1_4 != e'\'':::STRING) AND (table1.col1_1 <= e'\U00002603':::STRING)) OR (table1.col1_3 > e'\U00002603':::STRING), UNIQUE (col1_2 DESC, col1_0), FAMILY (col1_1, col1_3, col1_0, col1_2))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=492ccfe0-8dc5-4eb6-bfaf-ecc261f1a0ab for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (635.96s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ fc7ae339c3f85ad2a2b28643e47d7c20768fe237:

        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         CASE
        test_1        |                         WHEN overlaps('2000-01-01 09:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, NULL::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 07:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ)::BOOL
        test_1        |                         THEN 7::OID::OID
        test_1        |                         ELSE 0::OID::OID
        test_1        |                         END
        test_1        |                             AS col_251866
        test_1        |                 )
        test_1        |                     AS tab_137297
        test_1        |             ORDER BY
        test_1        |                 col_251866 NULLS FIRST;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         CASE
        test_1        |                         WHEN overlaps('2000-01-01 09:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 04:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, NULL::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 07:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ)::BOOL
        test_1        |                         THEN 7:::OID::OID
        test_1        |                         ELSE 0:::OID::OID
        test_1        |                         END
        test_1        |                             AS col_251866
        test_1        |                 )
        test_1        |                     AS tab_137297
        test_1        |             ORDER BY
        test_1        |                 col_251866 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.20s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 TIMESTAMPTZ NULL, col2_1 UUID NOT NULL, col2_2 BOOL NOT NULL, col2_3 DATE NOT NULL, col2_4 BYTES NOT NULL, col2_5 INT4, col2_6 TIMESTAMPTZ[], col2_7 VARCHAR NOT NULL, col2_8 REGPROC NULL, col2_9 REGTYPE NULL, col2_10 NAME NOT NULL, col2_11 STRING AS (CASE WHEN col2_6 IS NULL THEN e'jmc\x1c4':::STRING ELSE NULL END) STORED, col2_12 STRING NULL AS (CASE WHEN col2_9 IS NULL THEN e'VAT]~l\r':::STRING ELSE NULL END) VIRTUAL, col2_13 STRING NOT NULL AS (CASE WHEN col2_3 IS NULL THEN e'\x16\x02$%E8':::STRING ELSE '':::STRING END) VIRTUAL, col2_14 STRING NULL AS (CASE WHEN col2_9 IS NULL THEN e'AKW%\'n8\x15X':::STRING ELSE ')':::STRING END) VIRTUAL, col2_15 STRING NULL AS (CASE WHEN col2_0 IS NULL THEN e'\x06/-\x13o"\n':::STRING ELSE e'\x00':::STRING END) STORED, col2_16 STRING NULL AS (CASE WHEN col2_9 IS NULL THEN 'S(+9$a]d':::STRING ELSE 'MaVQ,0Ts':::STRING END) VIRTUAL, col2_17 STRING AS (CASE WHEN col2_6 IS NULL THEN e'&\bp,iVB':::STRING ELSE e'\x13\x1b\x1eApt\x11L':::STRING END) VIRTUAL, UNIQUE (col2_4 DESC, col2_11, col2_1 DESC, col2_3 ASC, col2_2 DESC, col2_9 DESC, col2_14 ASC, col2_8, col2_17 ASC, col2_0, col2_12 DESC, col2_15, (CASE WHEN col2_3 IS NULL THEN e'~A$rvx\fm}':::STRING ELSE 'X':::STRING END), col2_5, col2_10 DESC) PARTITION BY LIST (col2_4, col2_11, col2_1, col2_3, col2_2, col2_9) (PARTITION table2_part_0 VALUES IN (('\x03c8ff':::BYTES, e'@\x17\x01':::STRING, '00000000-0000-0000-0000-000000000000':::UUID, '1991-05-09':::DATE, true, 4107438644:::OID)), PARTITION table2_part_1 VALUES IN (('\x':::BYTES, e'\x19j\x17':::STRING, 'db486ce0-a46c-4a4e-a944-edfb5ada00aa':::UUID, '1989-08-17':::DATE, true, 2683327095:::OID))), UNIQUE (lower(col2_7) DESC, col2_11, col2_12 ASC, col2_16, col2_7, col2_3 ASC, col2_0 DESC, (CASE WHEN col2_0 IS NULL THEN e'VC1\x7f6k]J\x1b':::STRING ELSE e'\U00002603':::STRING END), col2_10) WHERE ((((table2.col2_11 != e'\x00':::STRING) OR (table2.col2_12 >= e'\U00002603':::STRING)) AND (table2.col2_15 <= e'\x00':::STRING)) AND (table2.col2_14 != '"':::STRING)) AND (table2.col2_5 < 2147483647:::INT8), UNIQUE (col2_4 ASC, col2_3 DESC), INVERTED INDEX (col2_13 ASC, col2_9, col2_4 ASC, col2_12, col2_11 DESC, col2_17 ASC, col2_0 ASC, col2_5 DESC, col2_14 ASC, col2_2 ASC, col2_15, col2_8 DESC, (CASE WHEN col2_0 IS NULL THEN e'\f_.':::STRING ELSE e'\x03\fOC=TL':::STRING END), col2_1 ASC, col2_3 ASC, col2_10 ASC, col2_7, col2_6 ASC) WHERE (((((((((((((table2.col2_14 != e'\U00002603':::STRING) AND (table2.col2_7 > e'\x00':::STRING)) OR (table2.col2_0 <= '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table2.col2_12 < e'\'':::STRING)) AND (table2.col2_13 = e'\x00':::STRING)) OR (table2.col2_11 <= 'X':::STRING)) AND (table2.col2_15 != e'\'':::STRING)) OR (table2.col2_3 = '5874897-12-31':::DATE)) AND (table2.col2_16 = '"':::STRING)) AND (table2.col2_17 <= '':::STRING)) OR (table2.col2_4 = '\x58':::BYTES)) OR (table2.col2_5 < 32767:::INT8)) AND (table2.col2_10 < '':::STRING)) OR table2.col2_2, FAMILY (col2_10, col2_11), FAMILY (col2_1), FAMILY (col2_7, col2_3, col2_4), FAMILY (col2_0, col2_6, col2_2), FAMILY (col2_9, col2_5, col2_8, col2_15))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=9665d077-2b9b-45f6-8cf2-ef231b8f26ea for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (228.32s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ b47dc374417fe4ba83570784040da5650238b30e:

        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:188: open /home/agent/.cache/bazel/_bazel_agent/40f5e2a2e18a7cdb4cd075f919d8072b/execroot/com_github_cockroachdb_cockroach/_tmp/47c568f68c04b61694d82f4def978aef/TestComposeCompare1730186233/002/postgres.log: no such file or directory
        test_1        |         compare_test.go:190: compare cockroach1 to postgres: unexpected diff:
        test_1        |               []any(Inverse(func1, []any{
        test_1        |                 [16]uint8{0x00, 0x00, 0x00, 0x00, ...},
        test_1        |             -   string("010300008000000000"),
        test_1        |             +   string("0103000080010000000500000000000000000020400000000000000840000000000000204000000000000020400000000000004540000000000000204000000000000014400000000000004540000000000000204000000000000014400000000000000840000000000000204000000000000020400000000000000840000000"...),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         '00000000-0000-0000-0000-000000000003':::UUID::UUID AS col_294787,
        test_1        |                         st_force3d(st_makeenvelope(8.0:::FLOAT8::FLOAT8::FLOAT8, 3.0:::FLOAT8::FLOAT8::FLOAT8, 5.0:::FLOAT8::FLOAT8::FLOAT8, (6.0:::FLOAT8::FLOAT8::FLOAT8 * 7.0:::FLOAT8::FLOAT8::FLOAT8)::FLOAT8::FLOAT8)::GEOMETRY::GEOMETRY, 8.0:::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_294788
        test_1        |                 )
        test_1        |                     AS tab_181536
        test_1        |             ORDER BY
        test_1        |                 col_294787 NULLS FIRST, col_294788 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         '00000000-0000-0000-0000-000000000003'::UUID::UUID AS col_294787,
        test_1        |                         st_force3d(st_makeenvelope(8.0::FLOAT8::FLOAT8::FLOAT8, 3.0::FLOAT8::FLOAT8::FLOAT8, 5.0::FLOAT8::FLOAT8::FLOAT8, (6.0::FLOAT8::FLOAT8::FLOAT8 * 7.0::FLOAT8::FLOAT8::FLOAT8)::FLOAT8::FLOAT8)::GEOMETRY::GEOMETRY, 8.0::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_294788
        test_1        |                 )
        test_1        |                     AS tab_181536
        test_1        |             ORDER BY
        test_1        |                 col_294787 NULLS FIRST, col_294788 NULLS FIRST;
        test_1        |             
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (268.12s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ a611410e3babe97a14152381b89060e1bafa2e27:

        postgres_1    |     ORDER BY
        postgres_1    |         col_575147 NULLS FIRST,
        postgres_1    |         col_575148 NULLS FIRST,
        postgres_1    |         col_575149 NULLS FIRST,
        postgres_1    |         col_575150 NULLS FIRST,
        postgres_1    |         col_575151 NULLS FIRST,
        postgres_1    |         col_575152 NULLS FIRST
        postgres_1    | 2022-06-27 05:26:23.601 UTC [78] ERROR:  function unaccent(text) does not exist at character 251
        postgres_1    | 2022-06-27 05:26:23.601 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-06-27 05:26:23.601 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 2::OID::OID AS col_575249,
        postgres_1    |                 tab_508035.col1_0 AS col_575250,
        postgres_1    |                 '00000000-0000-0000-0000-000000000007'::UUID::UUID AS col_575251
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_508035
        postgres_1    |             WHERE
        postgres_1    |                 'D'::TEXT::TEXT NOT SIMILAR TO unaccent('C'::TEXT::TEXT::TEXT)::TEXT
        postgres_1    |         )
        postgres_1    |             AS tab_508036
        postgres_1    |     ORDER BY
        postgres_1    |         col_575249 NULLS FIRST, col_575250 NULLS FIRST, col_575251 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.26s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.27s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INT8 NOT NULL, col1_1 INT8, col1_2 BIT(49) NOT NULL, col1_3 INT4 NULL, col1_4 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) STORED, FAMILY (col1_0, col1_3), FAMILY (col1_1), FAMILY (col1_4), FAMILY (col1_2));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 628, "histo_col_type": "", "name": "__auto__", "null_count": 360, "row_count": 900}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 312, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 227, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 251, "histo_col_type": "", "name": "__auto__", "null_count": 152, "row_count": 900}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 378, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 900}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 111916, "histo_col_type": "", "name": "__auto__", "null_count": 351177, "row_count": 400000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 158520, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 400000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 398317, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 400000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 132462, "histo_col_type": "", "name": "__auto__", "null_count": 233223, "row_count": 400000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 72650, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 400000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (633.44s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 7f8fef4c3f24ec2b6f9a3db1eb38756da68b3d5a:

        postgres_1    | 2022-06-28 05:26:32.653 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_478486.tableoid AS col_765212,
        postgres_1    |                 tab_478486.col1_0 AS col_765213,
        postgres_1    |                 '00:09:00'::TIME::TIME AS col_765214,
        postgres_1    |                 tab_478487.col2_15 AS col_765215,
        postgres_1    |                 tab_478487.col2_11 AS col_765216,
        postgres_1    |                 tab_478488.col2_0 AS col_765217,
        postgres_1    |                 to_char(('00:00:09'::INTERVAL::INTERVAL::INTERVAL / (tab_478487.col2_11::FLOAT8 - sqrt(NULL::FLOAT8::FLOAT8)::FLOAT8::FLOAT8)::FLOAT8::FLOAT8)::INTERVAL::INTERVAL)::TEXT
        postgres_1    |                     AS col_765218
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_478486,
        postgres_1    |                 postgres.public.table2 AS tab_478487,
        postgres_1    |                 postgres.public.table2 AS tab_478488
        postgres_1    |             WHERE
        postgres_1    |                 tab_478486.col1_13
        postgres_1    |         )
        postgres_1    |             AS tab_478489
        postgres_1    |     ORDER BY
        postgres_1    |         col_765212 NULLS FIRST,
        postgres_1    |         col_765213 NULLS FIRST,
        postgres_1    |         col_765214 NULLS FIRST,
        postgres_1    |         col_765215 NULLS FIRST,
        postgres_1    |         col_765216 NULLS FIRST,
        postgres_1    |         col_765217 NULLS FIRST,
        postgres_1    |         col_765218 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.79s)
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     --- FAIL: TestCompare/mutators (0.12s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 DECIMAL NOT NULL, col1_1 BYTES, col1_2 "char" NULL, col1_3 INT8, col1_4 TIMESTAMPTZ NULL, col1_5 BIT(10), col1_6 BOX2D NOT NULL, col1_7 INT2, col1_8 VARCHAR[] NOT NULL, INDEX (col1_4 ASC, col1_5 ASC), UNIQUE (col1_7 DESC, col1_0 ASC, col1_3, lower(CAST(col1_6 AS STRING)) DESC, col1_6 ASC), UNIQUE (col1_4 DESC) STORING (col1_0, col1_2, col1_7) WHERE table1.col1_1 <= '\xe29883':::BYTES, UNIQUE (col1_1 ASC, col1_4 ASC) PARTITION BY LIST (col1_1) (PARTITION table1_part_0 VALUES IN (('\x1e':::BYTES,), ('\x1f0a16cba3':::BYTES,), ('\xc432f03be3bbd3c759':::BYTES,)), PARTITION table1_part_1 VALUES IN (('\x6dbed0a4de7cf8':::BYTES,), (NULL,), ('\x474a':::BYTES,)), PARTITION table1_part_2 VALUES IN (('\x22':::BYTES,), ('\x03':::BYTES,), ('\x3f52':::BYTES,)), PARTITION table1_part_3 VALUES IN (('\x83de1230ee26':::BYTES,), ('\x4ad71478e39b85bcea':::BYTES,), ('\x11f1dd1bae4d':::BYTES,))), FAMILY (col1_6), FAMILY (col1_4, col1_5), FAMILY (col1_8), FAMILY (col1_0), FAMILY (col1_3), FAMILY (col1_7, col1_2), FAMILY (col1_1))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=437584d2-f570-4d85-86c1-46f24f0411f3 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (633.87s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ ac11a55499120ffd33016feebc47b4ed43a21007:

        postgres_1    | 2022-06-29 05:16:58.069 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-06-29 05:16:58.074 UTC [68] LOG:  database system was shut down at 2022-06-29 05:16:57 UTC
        postgres_1    | 2022-06-29 05:16:58.079 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-06-29 05:16:59.398 UTC [78] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
        postgres_1    | 2022-06-29 05:16:59.398 UTC [78] STATEMENT:  CREATE TABLE table2 (col2_0 BIT(17) NOT NULL, col2_1 BIT(39) NOT NULL, col2_2 UUID NOT NULL, col2_3 BYTEA NOT NULL, col2_4 BOX2D NOT NULL, col2_5 BIT(13) NOT NULL, col2_6 REGPROC NULL, col2_7 CHAR NOT NULL, col2_8 REGROLE NOT NULL, col2_9 REGPROC NOT NULL, col2_10 VARCHAR NOT NULL, col2_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_3 IS NULL THEN NULL ELSE e'G\x15'::TEXT END) STORED, col2_12 TEXT GENERATED ALWAYS AS (CASE WHEN col2_8 IS NULL THEN 'w'::TEXT ELSE e'5q\\'::TEXT END) STORED, col2_13 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_14 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN e'.:\x16x\x0bk'::TEXT ELSE NULL END) STORED, col2_15 TEXT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN e'\x00'::TEXT ELSE NULL END) STORED, col2_16 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_8 IS NULL THEN e';M\x1eM'::TEXT ELSE '``'::TEXT END) STORED, col2_17 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN 'x'::TEXT ELSE e'ExbF\b\x0f'::TEXT END) STORED, PRIMARY KEY (col2_9, col2_16, col2_3, col2_1, col2_17, col2_2, col2_11, col2_0, col2_8, col2_13, col2_14, col2_7));
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_7 ASC, col2_1 ASC, col2_17, col2_13, col2_16 ASC, col2_5 ASC, col2_15 ASC, col2_10 ASC, col2_0 ASC, col2_12);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_15, col2_3 DESC, col2_7, col2_6, col2_17 DESC, col2_14 DESC, col2_16 DESC, col2_2 ASC, col2_0, col2_9 DESC) INCLUDE (col2_5, col2_10, col2_12);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_14, col2_1 ASC, col2_15, col2_7 DESC, col2_3, col2_11 ASC, col2_0 ASC, col2_5 ASC, col2_2 DESC) INCLUDE (col2_12);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_14 ASC, col2_10 ASC, col2_6 DESC, col2_12 DESC, col2_0, col2_11, col2_17 ASC, col2_5 ASC, col2_8 DESC, (CASE WHEN col2_3 IS NULL THEN e'\''::TEXT ELSE e'm\nZ\x01VIue'::TEXT END) DESC, col2_1 DESC, col2_16 DESC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_7, col2_1 DESC, col2_14 ASC, col2_3);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_12 DESC) INCLUDE (col2_15);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.37s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (0.88s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 BIT(17) NOT NULL, col2_1 BIT(39) NOT NULL, col2_2 UUID NOT NULL, col2_3 BYTEA NOT NULL, col2_4 BOX2D NOT NULL, col2_5 BIT(13) NOT NULL, col2_6 REGPROC NULL, col2_7 CHAR NOT NULL, col2_8 REGROLE NOT NULL, col2_9 REGPROC NOT NULL, col2_10 VARCHAR NOT NULL, col2_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_3 IS NULL THEN NULL ELSE e'G\x15'::TEXT END) STORED, col2_12 TEXT GENERATED ALWAYS AS (CASE WHEN col2_8 IS NULL THEN 'w'::TEXT ELSE e'5q\\'::TEXT END) STORED, col2_13 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_14 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN e'.:\x16x\x0bk'::TEXT ELSE NULL END) STORED, col2_15 TEXT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN e'\x00'::TEXT ELSE NULL END) STORED, col2_16 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_8 IS NULL THEN e';M\x1eM'::TEXT ELSE '``'::TEXT END) STORED, col2_17 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_6 IS NULL THEN 'x'::TEXT ELSE e'ExbF\b\x0f'::TEXT END) STORED, PRIMARY KEY (col2_9, col2_16, col2_3, col2_1, col2_17, col2_2, col2_11, col2_0, col2_8, col2_13, col2_14, col2_7));
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_7 ASC, col2_1 ASC, col2_17, col2_13, col2_16 ASC, col2_5 ASC, col2_15 ASC, col2_10 ASC, col2_0 ASC, col2_12);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_15, col2_3 DESC, col2_7, col2_6, col2_17 DESC, col2_14 DESC, col2_16 DESC, col2_2 ASC, col2_0, col2_9 DESC) INCLUDE (col2_5, col2_10, col2_12);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_14, col2_1 ASC, col2_15, col2_7 DESC, col2_3, col2_11 ASC, col2_0 ASC, col2_5 ASC, col2_2 DESC) INCLUDE (col2_12);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_14 ASC, col2_10 ASC, col2_6 DESC, col2_12 DESC, col2_0, col2_11, col2_17 ASC, col2_5 ASC, col2_8 DESC, (CASE WHEN col2_3 IS NULL THEN e'\''::TEXT ELSE e'm\nZ\x01VIue'::TEXT END) DESC, col2_1 DESC, col2_16 DESC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_7, col2_1 DESC, col2_14 ASC, col2_3);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_12 DESC) INCLUDE (col2_15);
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: invalid byte sequence for encoding "UTF8": 0x00 (SQLSTATE 22021)
        test_1        |     --- FAIL: TestCompare/mutators (0.36s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 TIMESTAMP NOT NULL, col1_1 REGPROCEDURE, col1_2 TIME NOT NULL, col1_3 REGROLE NOT NULL, col1_4 INT2, col1_5 REGPROC NULL, col1_6 VARCHAR[] NULL, col1_7 REGPROCEDURE NOT NULL, col1_8 FLOAT4 NOT NULL, col1_9 STRING NOT NULL AS (CASE WHEN col1_0 IS NULL THEN e'\riw\x10-':::STRING ELSE e'\t':::STRING END) VIRTUAL, FAMILY (col1_8, col1_6, col1_5), FAMILY (col1_2), FAMILY (col1_1), FAMILY (col1_7), FAMILY (col1_0, col1_3), FAMILY (col1_4));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 220619361732258513, "histo_col_type": "", "name": "__auto__", "null_count": 1067218671081546224, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1193105247664274434, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1680062701643377347, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 250384326772250858, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 800196605875328093, "histo_col_type": "", "name": "__auto__", "null_count": 1741428669266114914, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 411327312651055475, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 594438555312818703, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1316807618944869823, "histo_col_type": "", "name": "__auto__", "null_count": 485400084016347740, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2130364022051606924, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 2280482874661034261}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1002863887860665692, "histo_col_type": "", "name": "__auto__", "null_count": 1380975079554146357, "row_count": 2280482874661034261}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 76611012, "histo_col_type": "", "name": "__auto__", "null_count": 642781168, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 497626823, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 891068473, "histo_col_type": "", "name": "__auto__", "null_count": 835378724, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 223535831, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 105885314, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 250391615, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 778175766, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 663723893, "histo_col_type": "", "name": "__auto__", "null_count": 588670835, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 513784187, "histo_col_type": "", "name": "__auto__", "null_count": 540838224, "row_count": 1000000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 374101632, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (21.64s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ e1e99da678e29db4ef21813423f012273c99add2:

        test_1        |                 nil,
        test_1        |                 nil,
        test_1        |             -   string("01010000000000000000E050400000000000E050C0"),
        test_1        |             +   nil,
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::rand_typ_3 AS col_10946,
        test_1        |                         NULL::rand_typ_1 AS col_10947,
        test_1        |                         st_pointfromgeohash('J':::STRING::STRING::STRING, NULL::INT4::INT4)::GEOMETRY AS col_10948
        test_1        |                 )
        test_1        |                     AS tab_6212
        test_1        |             ORDER BY
        test_1        |                 col_10946 NULLS FIRST, col_10947 NULLS FIRST, col_10948 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::rand_typ_3 AS col_10946,
        test_1        |                         NULL::rand_typ_1 AS col_10947,
        test_1        |                         st_pointfromgeohash('J'::TEXT::TEXT::TEXT, NULL::INT4::INT4)::GEOMETRY AS col_10948
        test_1        |                 )
        test_1        |                     AS tab_6212
        test_1        |             ORDER BY
        test_1        |                 col_10946 NULLS FIRST, col_10947 NULLS FIRST, col_10948 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.26s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table5 (col5_0 OID, col5_1 TIMESTAMPTZ NOT NULL, PRIMARY KEY (col5_1 ASC), UNIQUE (col5_1 ASC, col5_0) PARTITION BY LIST (col5_1, col5_0) (PARTITION table5_part_0 VALUES IN (('1983-09-01 07:34:14.00089+00:00':::TIMESTAMPTZ, 2787627069:::OID), ('3000-01-01 00:00:00+00:00':::TIMESTAMPTZ, 2384930539:::OID), ('1986-03-13 08:32:47.00016+00:00':::TIMESTAMPTZ, 0:::OID), ('2028-04-23 13:04:43.000214+00:00':::TIMESTAMPTZ, 4232797439:::OID), ('1990-10-28 21:57:35.000573+00:00':::TIMESTAMPTZ, 2396775119:::OID), ('2030-03-16 14:30:26.00066+00:00':::TIMESTAMPTZ, 4018057957:::OID), ('1983-06-21 12:32:23.000403+00:00':::TIMESTAMPTZ, 3489235532:::OID), ('1993-10-29 15:37:59.000071+00:00':::TIMESTAMPTZ, NULL), ('1989-09-03 15:01:30.000837+00:00':::TIMESTAMPTZ, NULL)), PARTITION table5_part_1 VALUES IN (('2024-03-27 14:01:35.000206+00:00':::TIMESTAMPTZ, 3118300001:::OID), ('1997-01-25 06:57:26.000629+00:00':::TIMESTAMPTZ, 0:::OID), ('2016-12-01 12:18:08.000767+00:00':::TIMESTAMPTZ, 2542050845:::OID), ('2017-01-05 03:35:26.000376+00:00':::TIMESTAMPTZ, 2450132970:::OID), ('2016-10-25 09:39:08.000655+00:00':::TIMESTAMPTZ, 2754471620:::OID), ('1992-07-22 05:00:41.000034+00:00':::TIMESTAMPTZ, 3971706070:::OID), ('2000-06-19 18:39:45.000231+00:00':::TIMESTAMPTZ, 3861718366:::OID), ('3000-01-01 00:00:00+00:00':::TIMESTAMPTZ, 3907709053:::OID), ('2026-09-06 09:59:18.000258+00:00':::TIMESTAMPTZ, 4149005895:::OID)), PARTITION table5_part_2 VALUES IN (('2009-09-03 01:38:15.000873+00:00':::TIMESTAMPTZ, 1882901957:::OID), ('1980-05-21 09:30:12.00064+00:00':::TIMESTAMPTZ, 509965790:::OID), ('0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, 703678273:::OID), ('2016-05-03 04:55:25.000627+00:00':::TIMESTAMPTZ, 1164235033:::OID), ('2026-12-19 09:52:47.000685+00:00':::TIMESTAMPTZ, 0:::OID), ('1995-09-15 23:10:33.00018+00:00':::TIMESTAMPTZ, 3934272546:::OID), ('1987-06-29 15:51:15.000825+00:00':::TIMESTAMPTZ, 2629193624:::OID), ('2007-12-24 07:34:22.000856+00:00':::TIMESTAMPTZ, 3503168007:::OID), ('1999-06-22 03:03:05.000973+00:00':::TIMESTAMPTZ, 1743254031:::OID)), PARTITION table5_part_3 VALUES IN (('1998-01-22 13:30:14.000089+00:00':::TIMESTAMPTZ, 3046625289:::OID), ('2028-04-09 13:54:02.000614+00:00':::TIMESTAMPTZ, 4275663692:::OID), ('-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ, 565995176:::OID), ('2010-05-24 14:18:00.000704+00:00':::TIMESTAMPTZ, 0:::OID), ('2010-02-01 09:14:54.000682+00:00':::TIMESTAMPTZ, 0:::OID), ('1997-02-10 04:10:04.000951+00:00':::TIMESTAMPTZ, 2519027297:::OID), ('-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ, 0:::OID), ('2028-04-02 11:39:46.000383+00:00':::TIMESTAMPTZ, 3736971083:::OID), ('1985-06-27 00:49:57.000129+00:00':::TIMESTAMPTZ, 376348162:::OID)), PARTITION table5_part_4 VALUES IN (('0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, 1959206056:::OID), ('1983-11-14 17:16:56.00047+00:00':::TIMESTAMPTZ, 3956101343:::OID), ('1975-10-01 00:39:07.000575+00:00':::TIMESTAMPTZ, 1723925592:::OID), ('1995-06-19 08:06:04.000739+00:00':::TIMESTAMPTZ, 2740927895:::OID), ('1976-03-07 05:49:47.000198+00:00':::TIMESTAMPTZ, NULL), ('2022-10-22 10:12:17.00054+00:00':::TIMESTAMPTZ, 3063905992:::OID), ('2030-08-18 16:25:36.00011+00:00':::TIMESTAMPTZ, 43075223:::OID), ('1976-02-20 19:56:42.000319+00:00':::TIMESTAMPTZ, 0:::OID), ('2028-02-02 18:22:50.000395+00:00':::TIMESTAMPTZ, 3443731753:::OID)), PARTITION table5_part_5 VALUES IN (('2008-03-08 01:49:10.000789+00:00':::TIMESTAMPTZ, 2882276773:::OID), ('1979-07-13 12:30:38.000462+00:00':::TIMESTAMPTZ, 3965784774:::OID), ('2009-07-19 02:56:00.000773+00:00':::TIMESTAMPTZ, 2930973738:::OID), ('2011-08-10 22:21:19.000147+00:00':::TIMESTAMPTZ, 1493515108:::OID), ('1973-07-16 09:58:57.00069+00:00':::TIMESTAMPTZ, 1355444726:::OID), ('1990-12-16 09:21:06.000732+00:00':::TIMESTAMPTZ, NULL), ('1986-10-23 12:07:27.000704+00:00':::TIMESTAMPTZ, 3016247460:::OID), ('294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, 413543236:::OID), ('2016-07-22 08:07:22.000977+00:00':::TIMESTAMPTZ, 3184345499:::OID)), PARTITION table5_part_6 VALUES IN (('2030-08-23 06:52:53.000856+00:00':::TIMESTAMPTZ, 1361668257:::OID), ('2002-05-06 20:08:57.000073+00:00':::TIMESTAMPTZ, 191103159:::OID), ('1983-07-03 15:08:45.000953+00:00':::TIMESTAMPTZ, 4229953814:::OID), ('2030-07-23 14:56:00.000991+00:00':::TIMESTAMPTZ, NULL), ('2026-12-19 17:45:29.000231+00:00':::TIMESTAMPTZ, 3892273183:::OID), ('-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ, 2479906315:::OID), ('1977-04-15 01:52:39.000345+00:00':::TIMESTAMPTZ, 85004612:::OID), ('0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, 84475400:::OID), ('1980-12-05 09:56:50.000863+00:00':::TIMESTAMPTZ, 3143735427:::OID)), PARTITION table5_part_7 VALUES IN (('1972-07-27 09:21:51.000289+00:00':::TIMESTAMPTZ, 1186386833:::OID), ('2022-09-17 13:48:47.000325+00:00':::TIMESTAMPTZ, 312445050:::OID), ('1982-09-01 18:49:09.00073+00:00':::TIMESTAMPTZ, 1493766478:::OID), ('1971-07-30 18:38:46.000297+00:00':::TIMESTAMPTZ, 3282799800:::OID), ('2031-08-31 07:49:04.000509+00:00':::TIMESTAMPTZ, 535940816:::OID), ('2015-04-12 02:18:16.000316+00:00':::TIMESTAMPTZ, 2589351283:::OID), ('1977-03-04 16:32:15.000387+00:00':::TIMESTAMPTZ, 3253710039:::OID), ('1975-01-05 04:01:50.000167+00:00':::TIMESTAMPTZ, NULL), ('2003-03-27 22:17:08.000862+00:00':::TIMESTAMPTZ, 681374352:::OID)), PARTITION table5_part_8 VALUES IN (('1981-04-04 10:05:09.000205+00:00':::TIMESTAMPTZ, 2600804310:::OID), ('1998-09-11 11:30:50.000929+00:00':::TIMESTAMPTZ, 127532177:::OID), ('2010-05-14 00:30:06.000204+00:00':::TIMESTAMPTZ, 4167905225:::OID), ('2010-10-16 07:29:40.000073+00:00':::TIMESTAMPTZ, 2812704897:::OID), ('2015-12-01 22:49:29.000356+00:00':::TIMESTAMPTZ, 1302657423:::OID), ('2020-03-01 00:32:50.000053+00:00':::TIMESTAMPTZ, 1385305189:::OID), ('1998-07-18 14:29:02.000451+00:00':::TIMESTAMPTZ, 1008079666:::OID), ('2009-04-27 13:41:33.000447+00:00':::TIMESTAMPTZ, 1183592862:::OID), ('2016-07-10 12:10:49.000602+00:00':::TIMESTAMPTZ, 2420469091:::OID))) WHERE table5.col5_1 < '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, INDEX (col5_0), UNIQUE (col5_0 ASC, col5_1 ASC) PARTITION BY LIST (col5_0, col5_1) (PARTITION table5_part_0 VALUES IN ((2382913700:::OID, '2025-02-20 12:24:41.000917+00:00':::TIMESTAMPTZ), (4273582722:::OID, '2026-10-17 18:26:50.000158+00:00':::TIMESTAMPTZ), (2925294387:::OID, '1990-11-18 08:50:42.000424+00:00':::TIMESTAMPTZ), (3762050219:::OID, '2029-06-30 12:53:17.000481+00:00':::TIMESTAMPTZ), (2275454629:::OID, '1997-03-15 06:53:48.000315+00:00':::TIMESTAMPTZ)), PARTITION table5_part_1 VALUES IN ((NULL, '2030-11-10 02:10:10.000261+00:00':::TIMESTAMPTZ), (1131489850:::OID, '1973-03-26 01:44:10.000723+00:00':::TIMESTAMPTZ), (3141252274:::OID, '2008-10-31 23:22:19.000566+00:00':::TIMESTAMPTZ), (1325069373:::OID, '2023-11-04 23:44:29.000723+00:00':::TIMESTAMPTZ), (2508651955:::OID, '1982-05-16 11:41:17.000556+00:00':::TIMESTAMPTZ))) WHERE table5.col5_1 >= '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, UNIQUE ((CASE WHEN col5_1 IS NULL THEN e'Zl~H\x1e\x0b':::STRING ELSE '9*':::STRING END) DESC) WHERE table5.col5_1 != '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, UNIQUE ((CASE WHEN col5_1 IS NULL THEN e'\x01eZ':::STRING ELSE e'\x15}.':::STRING END), lower(CAST(col5_0 AS STRING)) DESC) WHERE table5.col5_1 = '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ)
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=9c37dc20-f843-45d8-9741-fdbfba8a6cc0 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (39.89s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 78caa5c3a8ecd0d0a612798a106b626edb3db2ee:

        postgres_1    |         col_799632 NULLS FIRST
        postgres_1    | 2022-07-01 05:27:08.787 UTC [78] ERROR:  function parse_time(text) does not exist at character 67
        postgres_1    | 2022-07-01 05:27:08.787 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-01 05:27:08.787 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_489250.col2_2 AS col_799742,
        postgres_1    |                 parse_time(tab_489249.col1_2::TEXT)::TIME AS col_799743,
        postgres_1    |                 tab_489249.col1_2 AS col_799744,
        postgres_1    |                 tab_489250.col2_2 AS col_799745
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_489249
        postgres_1    |                 JOIN postgres.public.table2 AS tab_489250 ON (tab_489249.tableoid) = (tab_489250.tableoid)
        postgres_1    |         )
        postgres_1    |             AS tab_489251
        postgres_1    |     ORDER BY
        postgres_1    |         col_799742 NULLS FIRST, col_799743 NULLS FIRST, col_799744 NULLS FIRST, col_799745 NULLS FIRST
        postgres_1    | 2022-07-01 05:27:08.852 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-01 05:27:08.852 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-01 05:27:08.852 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_799833) AS tab_489309 ORDER BY col_799833 NULLS FIRST
        postgres_1    | 2022-07-01 05:27:09.297 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-01 05:27:09.297 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-01 05:27:09.297 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_800525) AS tab_489708 ORDER BY col_800525 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.49s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.44s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INT2[] NULL, col1_1 REGNAMESPACE, col1_2 REGCLASS NOT NULL, col1_3 INT4 NOT NULL, col1_4 INT4, col1_5 TIME NULL, col1_6 GEOGRAPHY, col1_7 REGPROCEDURE, col1_8 INTERVAL NOT NULL, col1_9 GEOGRAPHY NULL, col1_10 UUID, col1_11 REGNAMESPACE NULL, col1_12 UUID, col1_13 REGNAMESPACE, col1_14 DATE NULL, col1_15 REGCLASS NULL, col1_16 INTERVAL, FAMILY (col1_15, col1_14, col1_4), FAMILY (col1_12), FAMILY (col1_7, col1_8, col1_1), FAMILY (col1_11, col1_9), FAMILY (col1_6), FAMILY (col1_3), FAMILY (col1_0, col1_16, col1_13, col1_2, col1_10), FAMILY (col1_5));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 61, "histo_col_type": "", "name": "__auto__", "null_count": 34, "row_count": 90}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50, "histo_col_type": "", "name": "__auto__", "null_count": 19, "row_count": 90}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 20, "histo_col_type": "", "name": "__auto__", "null_count": 22, "row_count": 90}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 57, "histo_col_type": "", "name": "__auto__", "null_count": 20, "row_count": 90}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50, "histo_col_type": "", "name": "__auto__", "null_count": 40, "row_count": 90}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 16, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 49, "histo_col_type": "", "name": "__auto__", "null_count": 70, "row_count": 90}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58, "histo_col_type": "", "name": "__auto__", "null_count": 45, "row_count": 90}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 61, "histo_col_type": "", "name": "__auto__", "null_count": 78, "row_count": 90}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 28, "histo_col_type": "", "name": "__auto__", "null_count": 33, "row_count": 90}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 73, "histo_col_type": "", "name": "__auto__", "null_count": 49, "row_count": 90}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 70, "histo_col_type": "", "name": "__auto__", "null_count": 34, "row_count": 90}, {"avg_size": 0, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 52, "histo_col_type": "", "name": "__auto__", "null_count": 15, "row_count": 90}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 33, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1, "histo_col_type": "", "name": "__auto__", "null_count": 4, "row_count": 90}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50, "histo_col_type": "", "name": "__auto__", "null_count": 50, "row_count": 90}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5318571, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2018714, "histo_col_type": "", "name": "__auto__", "null_count": 5314558, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 467303, "histo_col_type": "", "name": "__auto__", "null_count": 5623743, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2588330, "histo_col_type": "", "name": "__auto__", "null_count": 4665542, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4946595, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6914088, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5557577, "histo_col_type": "", "name": "__auto__", "null_count": 5642543, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3147550, "histo_col_type": "", "name": "__auto__", "null_count": 3115272, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3172362, "histo_col_type": "", "name": "__auto__", "null_count": 7108990, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6384077, "histo_col_type": "", "name": "__auto__", "null_count": 5958838, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6579504, "histo_col_type": "", "name": "__auto__", "null_count": 6713828, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 69128, "histo_col_type": "", "name": "__auto__", "null_count": 7657328, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1225443, "histo_col_type": "", "name": "__auto__", "null_count": 2617950, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1952217, "histo_col_type": "", "name": "__auto__", "null_count": 2232248, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3214284, "histo_col_type": "", "name": "__auto__", "null_count": 7615058, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4295295, "histo_col_type": "", "name": "__auto__", "null_count": 7862375, "row_count": 8000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1059257, "histo_col_type": "", "name": "__auto__", "null_count": 6732508, "row_count": 8000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (632.11s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 4e8134033890c956d39020f28a0e99b21b32649f:

        postgres_1    |     CREATE INDEX ON table2 (col2_0 DESC, col2_5 ASC, col2_6, col2_1, col2_11 ASC, col2_9 DESC, col2_7, col2_8);
        postgres_1    |     CREATE INDEX ON table2 (col2_3 DESC, col2_11, col2_6 ASC, col2_10, col2_0 DESC, col2_1, col2_5, col2_9, col2_7) INCLUDE (col2_2, col2_4, col2_12);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_1 DESC, col2_7 DESC, col2_3 DESC, col2_11 DESC, col2_5 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_11, col2_3, col2_7 DESC, (col2_2 + col2_0) DESC, col2_10 DESC, col2_4, col2_12 DESC, col2_1, col2_8 DESC, col2_2, col2_9 DESC, col2_5, col2_0);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_2 DESC, col2_8, col2_4 ASC, (col2_2 + col2_0), col2_7 ASC, col2_12, (CASE WHEN col2_1 IS NULL THEN e'w\x13Y\x05'::TEXT ELSE e'={j\x1c'::TEXT END) DESC, col2_0, col2_5 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_6 ASC, col2_12 ASC, col2_4, col2_2 ASC, col2_5) INCLUDE (col2_0, col2_1, col2_3, col2_7, col2_11);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_0 ASC, (col2_0 + col2_2) ASC, col2_9 DESC, col2_5 ASC) INCLUDE (col2_1, col2_2, col2_3, col2_6, col2_7, col2_10, col2_11);
        postgres_1    |     CREATE INDEX ON table2 (col2_7 ASC);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.42s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (0.89s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 FLOAT4 NOT NULL, col2_1 REGPROC NULL, col2_2 FLOAT8, col2_3 UUID, col2_4 OID NULL, col2_5 BYTEA NOT NULL, col2_6 DATE NULL, col2_7 REGTYPE NOT NULL, col2_8 FLOAT8 GENERATED ALWAYS AS (col2_2 + col2_0) STORED, col2_9 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_5 IS NULL THEN e'\x00'::TEXT ELSE '/G>&'::TEXT END) STORED, col2_10 FLOAT4 GENERATED ALWAYS AS (col2_0 + col2_2) STORED, col2_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_5 IS NULL THEN '$M'::TEXT ELSE e'fb\x15\x02\x0fKH``'::TEXT END) STORED, col2_12 FLOAT8 GENERATED ALWAYS AS (col2_2 + col2_0) STORED);
        test_1        |             CREATE INDEX ON table2 (col2_11 ASC) INCLUDE (col2_0, col2_1, col2_4, col2_6, col2_9, col2_10);
        test_1        |             CREATE INDEX ON table2 (col2_0 DESC, col2_5 ASC, col2_6, col2_1, col2_11 ASC, col2_9 DESC, col2_7, col2_8);
        test_1        |             CREATE INDEX ON table2 (col2_3 DESC, col2_11, col2_6 ASC, col2_10, col2_0 DESC, col2_1, col2_5, col2_9, col2_7) INCLUDE (col2_2, col2_4, col2_12);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_1 DESC, col2_7 DESC, col2_3 DESC, col2_11 DESC, col2_5 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_11, col2_3, col2_7 DESC, (col2_2 + col2_0) DESC, col2_10 DESC, col2_4, col2_12 DESC, col2_1, col2_8 DESC, col2_2, col2_9 DESC, col2_5, col2_0);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_2 DESC, col2_8, col2_4 ASC, (col2_2 + col2_0), col2_7 ASC, col2_12, (CASE WHEN col2_1 IS NULL THEN e'w\x13Y\x05'::TEXT ELSE e'={j\x1c'::TEXT END) DESC, col2_0, col2_5 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_6 ASC, col2_12 ASC, col2_4, col2_2 ASC, col2_5) INCLUDE (col2_0, col2_1, col2_3, col2_7, col2_11);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_0 ASC, (col2_0 + col2_2) ASC, col2_9 DESC, col2_5 ASC) INCLUDE (col2_1, col2_2, col2_3, col2_6, col2_7, col2_10, col2_11);
        test_1        |             CREATE INDEX ON table2 (col2_7 ASC);
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: invalid byte sequence for encoding "UTF8": 0x00 (SQLSTATE 22021)
        test_1        |     --- FAIL: TestCompare/mutators (0.39s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BIT(46) NOT NULL, col1_1 FLOAT4 NOT NULL, col1_2 BOOL NOT NULL, col1_3 BOOL NOT NULL, col1_4 DECIMAL NOT NULL, col1_5 UUID NOT NULL, col1_6 TIME NOT NULL, col1_7 REGCLASS NOT NULL, col1_8 REGCLASS NOT NULL, col1_9 INTERVAL NOT NULL, col1_10 OID NOT NULL, col1_11 REGROLE NULL, col1_12 BOOL NOT NULL, col1_13 DECIMAL NOT NULL, col1_14 STRING NOT NULL AS (CASE WHEN col1_8 IS NULL THEN e'\x00':::STRING ELSE e'\x1b.^IY \x12\x1e+':::STRING END) STORED, col1_15 DECIMAL NOT NULL AS (col1_4 + col1_13) VIRTUAL, PRIMARY KEY (col1_3, col1_9, col1_1, col1_14 ASC, col1_6, col1_10 DESC, col1_15 ASC, col1_0 ASC, col1_2 DESC, col1_5 DESC, col1_4 DESC, col1_8, col1_13 ASC, col1_7 DESC), INDEX (col1_11 ASC, col1_3 DESC, col1_5 ASC) STORING (col1_12) WHERE ((((table1.col1_14 >= e'\x00':::STRING) OR (table1.col1_4 >= 0:::DECIMAL)) OR (table1.col1_6 = '24:00:00':::TIME)) AND (NOT table1.col1_3)) AND (table1.col1_1 != 3.4028234663852886e+38:::FLOAT8), FAMILY (col1_1, col1_2, col1_9, col1_14), FAMILY (col1_3, col1_5), FAMILY (col1_10, col1_13, col1_7, col1_4, col1_0, col1_12, col1_6, col1_8, col1_11));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 20727345118, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 61153696409, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 22909106119, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 29376637222, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 63441070459, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 59658841549, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58646556416, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "false"}, {"distinct_range": 4850103804571692000, "num_eq": 80, "num_range": 9056238812928040267, "upper_bound": "true"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 40458529702, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 56580974482, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 27271851092, "histo_col_type": "REGROLE", "name": "__auto__", "null_count": 29640116227, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 15381933213, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 19026786295, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 38260122063, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 38202937010, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 60946936935, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1554892896, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 70000000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2579402643839256956, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2821550634999918635, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1888103328569313642, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 855536536723598840, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1999050153581860306, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5792143872634050283, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4426825177800950034, "histo_buckets": [{"distinct_range": 0, "num_eq": 4000, "num_range": 0, "upper_bound": "false"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3473222157595701953, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6097784891155319340, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5856645832548304088, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 332670408262386676, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4716317290603785939, "histo_buckets": [{"distinct_range": 0, "num_eq": 4299725869222099570, "num_range": 0, "upper_bound": "588414477"}, {"distinct_range": 4104905346773947000, "num_eq": 0, "num_range": 4104905346773947052, "upper_bound": "2356266742"}, {"distinct_range": 10000, "num_eq": 420419735410724887, "num_range": 10000, "upper_bound": "2547192158"}, {"distinct_range": 463871001272370200, "num_eq": 9000000000, "num_range": 864788316367348736, "upper_bound": "3717693175"}, {"distinct_range": 0, "num_eq": 100, "num_range": 500000000, "upper_bound": "4171576039"}], "histo_col_type": "REGROLE", "name": "__auto__", "null_count": 1159851366720043930, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6335074205753441258, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1579959123614830671, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5308234282959831737, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5256383380323242758, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6344374508830372138}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (21.93s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 3c9b17113488d2ee6929936aa6ec48396f3ed71c:

        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_509798.col4_8 AS col_894568,
        postgres_1    |                 'D'::TEXT::TEXT AS col_894569,
        postgres_1    |                 tab_509798.col4_7 AS col_894570,
        postgres_1    |                 left('\x4a'::BYTEA::BYTEA::BYTEA, 4::INT8::INT4::INT4)::BYTEA AS col_894571,
        postgres_1    |                 4.0::FLOAT8::FLOAT8 AS col_894572,
        postgres_1    |                 tab_509799.col5_3 AS col_894573,
        postgres_1    |                 1::OID::OID AS col_894574,
        postgres_1    |                 tab_509799.tableoid AS col_894575,
        postgres_1    |                 tab_509798.col4_4 AS col_894576
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table4 AS tab_509798, postgres.public.table5 AS tab_509799
        postgres_1    |             WHERE
        postgres_1    |                 true::BOOL
        postgres_1    |         )
        postgres_1    |             AS tab_509800
        postgres_1    |     ORDER BY
        postgres_1    |         col_894568 NULLS FIRST,
        postgres_1    |         col_894569 NULLS FIRST,
        postgres_1    |         col_894570 NULLS FIRST,
        postgres_1    |         col_894571 NULLS FIRST,
        postgres_1    |         col_894572 NULLS FIRST,
        postgres_1    |         col_894573 NULLS FIRST,
        postgres_1    |         col_894574 NULLS FIRST,
        postgres_1    |         col_894575 NULLS FIRST,
        postgres_1    |         col_894576 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.33s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.16s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table3 (col3_0 BIT(42) NOT NULL, col3_1 UUID NOT NULL, col3_2 BOX2D NOT NULL, col3_3 NAME NOT NULL, col3_4 TIME NOT NULL, col3_5 UUID NOT NULL, col3_6 OID, PRIMARY KEY (col3_0 ASC, col3_4, col3_3, col3_1 DESC), UNIQUE (col3_5, col3_4, col3_2 DESC, col3_1 ASC), UNIQUE (col3_2 DESC, col3_0 DESC, col3_1 DESC, col3_6 ASC, col3_4 DESC, col3_5 DESC, col3_3 DESC) WHERE (table3.col3_3 > e'\U00002603':::STRING) OR (table3.col3_4 >= '24:00:00':::TIME), INDEX (lower(CAST(col3_1 AS STRING)) ASC, col3_2 DESC, col3_3 ASC, col3_4 DESC) STORING (col3_5) WHERE (table3.col3_3 > 'X':::STRING) AND (table3.col3_4 < '24:00:00':::TIME), UNIQUE (col3_2 ASC, col3_6, col3_1 DESC, col3_3, col3_5, col3_0 ASC, lower(col3_3) DESC), INDEX (col3_6, col3_5 DESC) STORING (col3_2) PARTITION BY LIST (col3_6) (PARTITION table3_part_0 VALUES IN ((0:::OID,), (2946338096:::OID,)), PARTITION table3_part_1 VALUES IN ((2353438715:::OID,), (2410880650:::OID,)), PARTITION table3_part_2 VALUES IN ((83279298:::OID,), (2450558461:::OID,)), PARTITION table3_part_3 VALUES IN ((NULL,), (3506537403:::OID,)), PARTITION table3_part_5 VALUES IN ((9570261:::OID,), (1161794901:::OID,)), PARTITION table3_part_6 VALUES IN ((274945266:::OID,), (89952384:::OID,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), UNIQUE (col3_1, col3_4 DESC, col3_2 ASC, col3_6) STORING (col3_5) WHERE (table3.col3_4 < '00:00:00':::TIME) AND (table3.col3_3 != e'\x00':::STRING), INDEX (col3_6 DESC, col3_4, col3_5, col3_0 DESC) WHERE (table3.col3_4 != '00:00:00':::TIME) OR (table3.col3_3 < '':::STRING), INDEX (col3_5 DESC, col3_0, col3_3), INDEX (lower(CAST(col3_0 AS STRING)) DESC, col3_5 DESC))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=66d77330-ac4a-4d18-91f7-43a1d18e4555 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (633.94s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ b9a165c03643ed43a0d45b16c0a795244543a2fe:

        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.00s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        | panic: geos: no locations to init GEOS [recovered]
        test_1        |     panic: geos: no locations to init GEOS
        test_1        | 
        test_1        | goroutine 1043265 [running]:
        test_1        | testing.tRunner.func1.2({0x1cbdec0, 0xc000fce880})
        test_1        |     GOROOT/src/testing/testing.go:1209 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1212 +0x218
        test_1        | panic({0x1cbdec0, 0xc000fce880})
        test_1        |     GOROOT/src/runtime/panic.go:1038 +0x215
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3ec10e0, {0x2de7270, 0xc0016635f0})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:371 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2d78040, 0x3ec10e0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:304 +0x14b
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc0016716c0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc001662660, {0xc00137ee80, 0x2, 0x0})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:254 +0xa72
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc001e20988, 0x1e44f05, {0xc00137ee80, 0x1b5c660, 0x1})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1b5c660, {0x1e44f05, 0x5}, 0x2, 0x30, {0xc000fd7a48, 0x3, 0x10000000000004c})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16d
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x5e202bea22b1aedc, 0x5e202bea22b1aedc)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:83 +0x187
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc000280000)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:72 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0x1e4a3ce)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:45 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc001589860)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc001589860, 0xc001662600)
        test_1        |     GOROOT/src/testing/testing.go:1259 +0x102
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1306 +0x35a
        compare_test_1 exited with code 2
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 2
--- FAIL: TestComposeCompare (632.22s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 7a8cac9b11036dcf401453eb36e531fe381b70b4:

        postgres_1    |         col_636855 NULLS FIRST, col_636856 NULLS FIRST, col_636857 NULLS FIRST, col_636858 NULLS FIRST
        postgres_1    | 2022-07-05 05:27:49.696 UTC [78] ERROR:  CASE/WHEN could not convert type regrole to regproc at character 205
        postgres_1    | 2022-07-05 05:27:49.696 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 ('2000-01-01 07:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:08'::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ
        postgres_1    |                     AS col_636902,
        postgres_1    |                 CASE WHEN false::BOOL THEN tab_369297.col1_4 ELSE tab_369297.col1_1 END AS col_636903,
        postgres_1    |                 NULL::TEXT AS col_636904,
        postgres_1    |                 NULL::GEOGRAPHY AS col_636905,
        postgres_1    |                 tab_369297.col1_4 AS col_636906,
        postgres_1    |                 tab_369297.col1_3 AS col_636907
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_369297
        postgres_1    |             WHERE
        postgres_1    |                 ((NOT (true::BOOL OR true::BOOL)) OR true::BOOL)
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_369297.col1_0 DESC, tab_369297.col1_4
        postgres_1    |         )
        postgres_1    |             AS tab_369298
        postgres_1    |     ORDER BY
        postgres_1    |         col_636902 NULLS FIRST,
        postgres_1    |         col_636903 NULLS FIRST,
        postgres_1    |         col_636904 NULLS FIRST,
        postgres_1    |         col_636905 NULLS FIRST,
        postgres_1    |         col_636906 NULLS FIRST,
        postgres_1    |         col_636907 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.14s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.16s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BOX2D NOT NULL, col1_1 TIMETZ NULL, col1_2 FLOAT4 NOT NULL, col1_3 VARCHAR NOT NULL, col1_4 INET, col1_5 OID NOT NULL, col1_6 CHAR NOT NULL, col1_7 STRING AS (lower(col1_6)) STORED, col1_8 STRING NOT NULL AS (lower(CAST(col1_0 AS STRING))) STORED, col1_9 STRING NOT NULL AS (lower(CAST(col1_4 AS STRING))) VIRTUAL, PRIMARY KEY (col1_5 ASC, col1_6 DESC, col1_0 ASC, col1_9 ASC), INDEX (col1_6, col1_0, col1_8, col1_5 ASC, col1_9 DESC, lower(CAST(col1_4 AS STRING)) ASC, col1_7 DESC, col1_2 ASC) STORING (col1_1, col1_3) WHERE ((table1.col1_8 < e'\'':::STRING) AND (table1.col1_7 != '':::STRING)) OR (table1.col1_9 < e'\x00':::STRING), UNIQUE (col1_3 ASC, col1_0, lower(CAST(col1_5 AS STRING)), col1_1 DESC, lower(CAST(col1_0 AS STRING)) DESC, col1_9 DESC, col1_6, col1_2) STORING (col1_4) WHERE ((table1.col1_7 > e'\x00':::STRING) AND (table1.col1_3 != e'\x00':::STRING)) AND (table1.col1_1 <= '00:00:00+15:59:00':::TIMETZ), UNIQUE (col1_0 ASC, col1_8, col1_5 DESC, col1_3 ASC, col1_9, col1_4 DESC, col1_6 ASC, lower(CAST(col1_1 AS STRING)) ASC, col1_2 ASC, col1_1 DESC) WHERE ((((table1.col1_3 >= 'X':::STRING) AND (table1.col1_7 = '"':::STRING)) AND (table1.col1_6 >= '':::STRING)) OR (table1.col1_8 = e'\x00':::STRING)) AND (table1.col1_9 > e'\x00':::STRING), UNIQUE (col1_4 ASC, lower(col1_6) DESC, lower(CAST(col1_5 AS STRING)), col1_2, col1_5 DESC, col1_1, col1_9 ASC) STORING (col1_7) PARTITION BY LIST (col1_4) (PARTITION table1_part_0 VALUES IN (('153.10.44.164/3':::INET,), ('704b:4982:7fd5:3121:2bd5:a86e:386:ec8e/22':::INET,), ('474d:74da:f9b5:376e:806:1c7f:ada1:64cb/17':::INET,), ('cbd2:3773:b2f:9990:f18d:8b81:6a24:2f53/127':::INET,), ('39.47.22.106/28':::INET,), (NULL,), ('5d64:f77c:bf60:3892:2911:935a:8186:461c/81':::INET,), ('69.196.60.66/27':::INET,), ('5595:d9d6:d9db:3d28:d8e3:2b0f:177c:444b/121':::INET,)), PARTITION table1_part_1 VALUES IN (('40.171.120.54/14':::INET,), ('c1b9:b456:5764:ac61:9118:c38f:82fd:a386/112':::INET,), ('177.96.116.1/26':::INET,), ('40.50.84.75':::INET,), ('0.0.0.0/0':::INET,), ('231.145.119.189/12':::INET,), ('211.155.109.96/31':::INET,), ('b127:d164:827a:e1a2:5a79:19af:f1d0:732a/15':::INET,), ('77cb:6608:b3ef:995a:fc2b:ac2b:8623:a4d1/57':::INET,)), PARTITION table1_part_2 VALUES IN (('b6eb:daae:a315:baf8:2ec2:d4c8:1027:7264/55':::INET,), ('111.192.98.254/19':::INET,), ('226.109.98.105/10':::INET,), ('205.88.59.187/26':::INET,), ('217.178.142.176/23':::INET,), ('b40e:ec7b:ae8c:faae:d8e1:9ec7:d280:72d1/111':::INET,), ('127.58.107.172/1':::INET,)), PARTITION table1_part_3 VALUES IN (('139.161.167.190/11':::INET,), ('199.161.41.218/7':::INET,), ('84.29.4.67/23':::INET,), ('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET,), ('7816:150b:f3cb:9e7b:5cd:ba23:962e:ed08/124':::INET,), ('11ab:36b8:3427:2fd9:9504:cb94:fd04:f3ec/67':::INET,), ('75.28.147.18/11':::INET,)), PARTITION table1_part_4 VALUES IN (('238.189.227.18/19':::INET,), ('aa31:417b:6363:7cfc:cd23:eb37:d674:158b/43':::INET,), ('9517:e42:9cea:3788:8e22:94df:82aa:af52/72':::INET,), ('a7e6:a9b9:15e8:9c78:a42a:f287:83f1:ea5a/28':::INET,), ('62.85.205.100/16':::INET,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), UNIQUE (col1_2, lower(col1_3) ASC, col1_5, col1_6 DESC, col1_1, col1_9, col1_8 DESC, col1_3 ASC, col1_4 DESC, col1_7 DESC), UNIQUE (col1_8, col1_1 ASC), FAMILY (col1_1), FAMILY (col1_8), FAMILY (col1_2), FAMILY (col1_5), FAMILY (col1_3), FAMILY (col1_6), FAMILY (col1_4), FAMILY (col1_7, col1_0))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=0363a15f-053c-49d1-9d96-53e73accadc4 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (634.47s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 33d70998719051ee058bc9e516afa238ea7b7451:

        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0:::FLOAT8::FLOAT8::FLOAT8, 1.0:::FLOAT8::FLOAT8::FLOAT8, 0.0:::FLOAT8::FLOAT8::FLOAT8, 5.0:::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_108648,
        test_1        |                         1.0:::FLOAT8::FLOAT8 AS col_108649
        test_1        |                 )
        test_1        |                     AS tab_58578
        test_1        |             ORDER BY
        test_1        |                 col_108648 NULLS FIRST, col_108649 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0::FLOAT8::FLOAT8::FLOAT8, 1.0::FLOAT8::FLOAT8::FLOAT8, 0.0::FLOAT8::FLOAT8::FLOAT8, 5.0::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_108648,
        test_1        |                         1.0::FLOAT8::FLOAT8 AS col_108649
        test_1        |                 )
        test_1        |                     AS tab_58578
        test_1        |             ORDER BY
        test_1        |                 col_108648 NULLS FIRST, col_108649 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.40s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BOOL NOT NULL, col1_1 "char" NOT NULL, col1_2 TIMETZ NOT NULL, col1_3 NAME NOT NULL, col1_4 BOX2D NOT NULL, col1_5 STRING NOT NULL AS (lower(col1_1)) VIRTUAL, col1_6 STRING NOT NULL AS (lower(col1_1)) STORED, col1_7 STRING NOT NULL AS (lower(CAST(col1_0 AS STRING))) VIRTUAL, PRIMARY KEY (col1_5 ASC, col1_3 ASC, col1_7 ASC, col1_1 DESC, col1_6 ASC, col1_4, col1_2), UNIQUE (col1_3 ASC, lower(CAST(col1_4 AS STRING)) DESC, col1_4 DESC, col1_2, col1_5, col1_0 DESC), INDEX (col1_0 ASC, col1_5 DESC, col1_1 ASC), INDEX (col1_2 ASC, col1_6 DESC, col1_5 ASC, lower(col1_1) DESC, col1_3 ASC, col1_7 ASC, col1_1, col1_0) WHERE ((table1.col1_7 != '"':::STRING) AND (table1.col1_1 >= e'\'':::STRING)) AND (table1.col1_3 != e'\U00002603':::STRING), UNIQUE (col1_6 ASC, col1_2 DESC, col1_0 DESC, col1_7, col1_5 ASC, col1_4 DESC, col1_3 ASC) WHERE ((((((table1.col1_5 = 'X':::STRING) OR (table1.col1_3 != 'X':::STRING)) OR (NOT table1.col1_0)) AND (table1.col1_6 = '':::STRING)) AND (table1.col1_2 != '24:00:00-15:59:00':::TIMETZ)) AND (table1.col1_7 != e'\'':::STRING)) OR (table1.col1_1 > '':::STRING), FAMILY (col1_4), FAMILY (col1_6), FAMILY (col1_3), FAMILY (col1_1), FAMILY (col1_2, col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 17, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 453, "histo_buckets": [{"distinct_range": 0, "num_eq": 5201621748296947047, "num_range": 0, "upper_bound": "\\u0019u7\\u000c"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 7, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 497, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 22, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 309, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 20, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 994, "histo_buckets": [{"distinct_range": 0, "num_eq": 3746935688082971145, "num_range": 0, "upper_bound": "false"}, {"distinct_range": 0, "num_eq": 7941010639284505267, "num_range": 2000000, "upper_bound": "true"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 16, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 140, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 216, "histo_buckets": [{"distinct_range": 0, "num_eq": 2552210070696866550, "num_range": 0, "upper_bound": "00:00:00+15:59:00"}], "histo_col_type": "TIMETZ", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 20, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 234, "histo_buckets": [{"distinct_range": 0, "num_eq": 9000000000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 4983689550771829744, "num_range": 2688939158168823673, "upper_bound": "cXi\\u0012@p@n\\u0017"}], "histo_col_type": "NAME", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 26, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 382, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 27, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4738466072537104884, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 4, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 175629425536842371, "histo_buckets": [{"distinct_range": 0, "num_eq": 600000, "num_range": 0, "upper_bound": "false"}, {"distinct_range": 5446540912478517000, "num_eq": 800000, "num_range": 5446540912478517051, "upper_bound": "true"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 12, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2705284896995205189, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2084063202912279711, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 12, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 627991117160831178, "histo_buckets": [{"distinct_range": 0, "num_eq": 2000000, "num_range": 0, "upper_bound": "\\u00148\\u0001=\\u001b6S\\u001f1"}, {"distinct_range": 0, "num_eq": 3501532225888012984, "num_range": 30000, "upper_bound": "(=\\u0014\\\\="}, {"distinct_range": 0, "num_eq": 7069881355344554112, "num_range": 5001602352992145589, "upper_bound": "JP\'"}, {"distinct_range": 0, "num_eq": 10000, "num_range": 20000000000, "upper_bound": "K;\\u0007(g\\u0014"}], "histo_col_type": "NAME", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 9, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3102527136277846544, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 31, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4785824548813472573, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}, {"avg_size": 24, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5324291546491133325, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5825308013071481753}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (110.16s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 03d5260a467b8640de41ee08054c1ce05f91966c:

        postgres_1    | 2022-07-07 05:25:11.019 UTC [78] ERROR:  function xor_agg(bytea) does not exist at character 247
        postgres_1    | 2022-07-07 05:25:11.019 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-07 05:25:11.019 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 string_agg(tab_282915.col3_11::TEXT, tab_282915.col3_11::TEXT)::TEXT AS col_432715,
        postgres_1    |                 avg(tab_282915.col3_9::INTERVAL)::INTERVAL AS col_432716,
        postgres_1    |                 tab_282915.tableoid AS col_432717,
        postgres_1    |                 7::OID::OID AS col_432718,
        postgres_1    |                 xor_agg(tab_282915.col3_1::BYTEA)::BYTEA AS col_432719
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table3
        postgres_1    |                     AS tab_282915
        postgres_1    |             WHERE
        postgres_1    |                 tab_282915.col3_5
        postgres_1    |             GROUP BY
        postgres_1    |                 tab_282915.col3_1, tab_282915.col3_7, tab_282915.tableoid, tab_282915.col3_9, tab_282915.col3_11
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_282915.col3_11 DESC, tab_282915.tableoid ASC
        postgres_1    |         )
        postgres_1    |             AS tab_282916
        postgres_1    |     ORDER BY
        postgres_1    |         col_432715 NULLS FIRST,
        postgres_1    |         col_432716 NULLS FIRST,
        postgres_1    |         col_432717 NULLS FIRST,
        postgres_1    |         col_432718 NULLS FIRST,
        postgres_1    |         col_432719 NULLS FIRST
        test_1        | --- FAIL: TestCompare (685.00s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.29s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table3 (col3_0 GEOGRAPHY NOT NULL, col3_1 TIME NOT NULL, col3_2 FLOAT8 NULL, col3_3 TIMESTAMP NOT NULL, col3_4 UUID NOT NULL, col3_5 STRING NOT NULL AS (CASE WHEN col3_3 IS NULL THEN e'\x15\bm':::STRING ELSE e'\x13y8d\x04Lu\t':::STRING END) VIRTUAL, INDEX (col3_3, col3_2 ASC, lower(CAST(col3_4 AS STRING)) DESC, col3_5 DESC, col3_1) PARTITION BY LIST (col3_3) (PARTITION table3_part_0 VALUES IN (('1971-12-20 14:09:57.000246':::TIMESTAMP,), ('1980-09-03 23:28:18.000281':::TIMESTAMP,), ('2012-04-29 10:30:36.000201':::TIMESTAMP,), ('1990-02-08 22:39:40.000881':::TIMESTAMP,)), PARTITION table3_part_1 VALUES IN (('-2000-01-01 00:00:00':::TIMESTAMP,), ('2030-04-17 14:58:08.000996':::TIMESTAMP,), ('2026-12-10 07:38:17.000715':::TIMESTAMP,), ('2010-04-19 15:22:22.000347':::TIMESTAMP,)), PARTITION table3_part_2 VALUES IN (('2021-08-01 12:38:26.000143':::TIMESTAMP,), ('2008-07-11 00:26:33.000421':::TIMESTAMP,), ('1996-04-29 23:37:10.000319':::TIMESTAMP,), ('1994-12-21 19:24:29.000792':::TIMESTAMP,)), PARTITION table3_part_3 VALUES IN (('1993-01-30 20:27:19.00005':::TIMESTAMP,), ('2017-05-19 07:50:39.000164':::TIMESTAMP,), ('294276-12-31 23:59:59.999999':::TIMESTAMP,), ('1983-07-25 17:07:43.000634':::TIMESTAMP,)), PARTITION table3_part_4 VALUES IN (('1991-04-04 19:31:14.000404':::TIMESTAMP,), ('2011-01-08 08:20:48.000763':::TIMESTAMP,), ('2018-10-03 07:39:13.000842':::TIMESTAMP,), ('2000-03-11 01:03:18.000508':::TIMESTAMP,)), PARTITION table3_part_5 VALUES IN (('2008-07-22 13:01:47.000496':::TIMESTAMP,), ('0001-01-01 00:00:00':::TIMESTAMP,), ('2031-11-01 14:55:16.000636':::TIMESTAMP,), ('2024-12-04 09:39:10.000055':::TIMESTAMP,))), INDEX (col3_1 DESC, col3_2 ASC, col3_4 ASC))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=0c2abe95-2876-4beb-bd4b-41f2400d5e13 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (714.25s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 2 years ago

compose.TestComposeCompare failed with artifacts on master @ 88789feea153b61b379c0240a07482bdfaf0c932:

        postgres_1    |         col_838057 NULLS FIRST,
        postgres_1    |         col_838058 NULLS FIRST,
        postgres_1    |         col_838059 NULLS FIRST,
        postgres_1    |         col_838060 NULLS FIRST,
        postgres_1    |         col_838061 NULLS FIRST
        postgres_1    | 2022-07-08 05:26:20.943 UTC [78] ERROR:  frame ending offset must not be null
        postgres_1    | 2022-07-08 05:26:20.943 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 regr_slope(tab_439023.col1_7::FLOAT8, 3.0::FLOAT8::FLOAT8::DECIMAL) OVER (PARTITION BY tab_439023.col1_7 ORDER BY tab_439023.col1_7 ASC GROUPS BETWEEN UNBOUNDED PRECEDING AND NULL::INT8 PRECEDING)::FLOAT8
        postgres_1    |                     AS col_838101,
        postgres_1    |                 regr_avgy(tab_439022.col1_7::FLOAT8, tab_439023.col1_7::FLOAT8)::FLOAT8 AS col_838102
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_439022
        postgres_1    |                 JOIN postgres.public.table1 AS tab_439023 ON
        postgres_1    |                         (tab_439022.col1_5) = (tab_439023.col1_5) AND (tab_439022.col1_2) = (tab_439023.col1_2)
        postgres_1    |                 INNER JOIN postgres.public.table1 AS tab_439024 ON NULL::BOOL
        postgres_1    |             GROUP BY
        postgres_1    |                 tab_439022.col1_7, tab_439023.col1_7
        postgres_1    |         )
        postgres_1    |             AS tab_439025
        postgres_1    |     ORDER BY
        postgres_1    |         col_838101 NULLS FIRST, col_838102 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.48s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.50s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INET NOT NULL, col1_1 BOOL, col1_2 STRING AS (lower(CAST(col1_1 AS STRING))) STORED, INDEX (col1_0), FAMILY (col1_2), FAMILY (col1_0), FAMILY (col1_1));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 21, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1951383173536947135, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3693814134938978201}, {"avg_size": 16, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1264767494650870718, "histo_col_type": "", "name": "__auto__", "null_count": 969447208116803150, "row_count": 3693814134938978201}, {"avg_size": 27, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1359444379835900746, "histo_col_type": "", "name": "__auto__", "null_count": 2450239743095248255, "row_count": 3693814134938978201}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (636.65s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 54b4fcaa231abd16260fb09722ed291dbd6a4900:

        postgres_1    | 2022-07-09 05:30:44.531 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-09 05:30:44.531 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 tab_338251.col2_3 AS col_602558
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_338251
        postgres_1    |             WHERE
        postgres_1    |                 json_valid(tab_338251.col2_4::TEXT)::BOOL
        postgres_1    |             GROUP BY
        postgres_1    |                 tab_338251.col2_3
        postgres_1    |             HAVING
        postgres_1    |                 bool_and(true::BOOL::BOOL)::BOOL
        postgres_1    |         )
        postgres_1    |             AS tab_338252
        postgres_1    |     ORDER BY
        postgres_1    |         col_602558 NULLS FIRST
        postgres_1    | 2022-07-09 05:30:44.825 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-09 05:30:44.825 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-09 05:30:44.825 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_602928) AS tab_338452 ORDER BY col_602928 NULLS FIRST
        postgres_1    | 2022-07-09 05:30:44.886 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-09 05:30:44.886 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-09 05:30:44.886 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_602972) AS tab_338489 ORDER BY col_602972 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.69s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.53s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 DATE NOT NULL, col1_1 INT4 NOT NULL, col1_2 BYTES NOT NULL, col1_3 JSONB NOT NULL, col1_4 FLOAT4 NOT NULL, col1_5 REGROLE NULL, col1_6 FLOAT8 NOT NULL, col1_7 INTERVAL NOT NULL, col1_8 TIMETZ NULL, col1_9 OID NULL, col1_10 VARCHAR, col1_11 STRING NULL, col1_12 OID, col1_13 OID NULL, col1_14 REGNAMESPACE NULL, col1_15 BYTES NOT NULL, col1_16 TIMESTAMPTZ NOT NULL, col1_17 FLOAT8 NOT NULL AS (col1_6 + col1_4) STORED, FAMILY (col1_13, col1_3), FAMILY (col1_15, col1_14), FAMILY (col1_12), FAMILY (col1_0, col1_6, col1_5, col1_4), FAMILY (col1_10), FAMILY (col1_9, col1_8, col1_17, col1_11, col1_1), FAMILY (col1_7, col1_16), FAMILY (col1_2));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 19, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50, "histo_col_type": "", "name": "__auto__", "null_count": 3, "row_count": 60}, {"avg_size": 14, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 54, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 15, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 59, "histo_col_type": "", "name": "__auto__", "null_count": 1, "row_count": 60}, {"avg_size": 16, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 17, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 8, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 49, "histo_col_type": "", "name": "__auto__", "null_count": 13, "row_count": 60}, {"avg_size": 7, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9, "histo_col_type": "", "name": "__auto__", "null_count": 9, "row_count": 60}, {"avg_size": 31, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 25, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 9, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 37, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 15, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 52, "histo_col_type": "", "name": "__auto__", "null_count": 7, "row_count": 60}, {"avg_size": 15, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 21, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 20, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9, "histo_col_type": "", "name": "__auto__", "null_count": 56, "row_count": 60}, {"avg_size": 14, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 40, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 20, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 21, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 16, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 6, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 17, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 60}, {"avg_size": 3, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 21, "histo_col_type": "", "name": "__auto__", "null_count": 51, "row_count": 60}, {"avg_size": 16, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 23, "histo_col_type": "", "name": "__auto__", "null_count": 29, "row_count": 60}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 27, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 52723027, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 1, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 62938912, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 3, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7750608, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 15, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 81788023, "histo_col_type": "", "name": "__auto__", "null_count": 55872898, "row_count": 100000000}, {"avg_size": 7, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 44380126, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 11, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 77979695, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 2, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 73990626, "histo_col_type": "", "name": "__auto__", "null_count": 6208711, "row_count": 100000000}, {"avg_size": 28, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 36035466, "histo_col_type": "", "name": "__auto__", "null_count": 84652590, "row_count": 100000000}, {"avg_size": 17, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 90254695, "histo_col_type": "", "name": "__auto__", "null_count": 76427494, "row_count": 100000000}, {"avg_size": 9, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 71770243, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 7, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 44878516, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 14, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 40622883, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 3, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 56727083, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 20, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 64683222, "histo_col_type": "", "name": "__auto__", "null_count": 7739870, "row_count": 100000000}, {"avg_size": 21, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 55777864, "histo_col_type": "", "name": "__auto__", "null_count": 95316404, "row_count": 100000000}, {"avg_size": 9, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50754810, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 100000000}, {"avg_size": 26, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 35871988, "histo_col_type": "", "name": "__auto__", "null_count": 2241693, "row_count": 100000000}, {"avg_size": 3, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 11697584, "histo_col_type": "", "name": "__auto__", "null_count": 56121533, "row_count": 100000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (633.65s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 6374bd83f192bd509e50313acb431690b9c3f8ae:

        postgres_1    |             ORDER BY
        postgres_1    |                 tab_452732.col2_10
        postgres_1    |         )
        postgres_1    |             AS tab_452733
        postgres_1    |     ORDER BY
        postgres_1    |         col_750368 NULLS FIRST,
        postgres_1    |         col_750369 NULLS FIRST,
        postgres_1    |         col_750370 NULLS FIRST,
        postgres_1    |         col_750371 NULLS FIRST,
        postgres_1    |         col_750372 NULLS FIRST,
        postgres_1    |         col_750373 NULLS FIRST,
        postgres_1    |         col_750374 NULLS FIRST,
        postgres_1    |         col_750375 NULLS FIRST,
        postgres_1    |         col_750376 NULLS FIRST,
        postgres_1    |         col_750377 NULLS FIRST,
        postgres_1    |         col_750378 NULLS FIRST,
        postgres_1    |         col_750379 NULLS FIRST
        postgres_1    | 2022-07-10 05:26:37.405 UTC [78] ERROR:  function st_s2covering(geography) does not exist at character 25
        postgres_1    | 2022-07-10 05:26:37.405 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-10 05:26:37.405 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (SELECT st_s2covering(NULL::GEOGRAPHY::GEOGRAPHY)::GEOGRAPHY AS col_750558) AS tab_452834
        postgres_1    |     ORDER BY
        postgres_1    |         col_750558 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.57s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.50s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 REGROLE, col1_1 BIT(17) NOT NULL, col1_2 BIT(20) NOT NULL, col1_3 FLOAT8, col1_4 CHAR[] NOT NULL, col1_5 TIMETZ NOT NULL, col1_6 TIME NOT NULL, col1_7 FLOAT4 NOT NULL, col1_8 CHAR NOT NULL, col1_9 "char" NOT NULL, col1_10 FLOAT8 AS (col1_3 + col1_7) VIRTUAL, col1_11 STRING NOT NULL AS (lower(col1_9)) VIRTUAL, col1_12 FLOAT8 AS (col1_7 + col1_3) VIRTUAL, UNIQUE (col1_5, col1_8 DESC, col1_10, col1_12, col1_2) STORING (col1_0, col1_1, col1_4, col1_6) WHERE ((((table1.col1_3 = 0.0:::FLOAT8) OR (table1.col1_11 >= e'\U00002603':::STRING)) OR (table1.col1_12 != 5e-324:::FLOAT8)) OR (table1.col1_10 >= '+Inf':::FLOAT8)) OR (table1.col1_6 < '24:00:00':::TIME), INVERTED INDEX (col1_12 ASC, col1_2, col1_5, col1_9 DESC, col1_7 DESC, lower(CAST(col1_2 AS STRING)) DESC, (col1_7 + col1_3) ASC, col1_0 ASC, col1_8 DESC, col1_4) WHERE ((table1.col1_11 >= e'\x00':::STRING) AND (table1.col1_6 = '24:00:00':::TIME)) OR (table1.col1_10 < '-Inf':::FLOAT8), INDEX (col1_11 DESC, col1_12) WHERE ((((table1.col1_3 < '-Inf':::FLOAT8) AND (table1.col1_11 <= '':::STRING)) OR (table1.col1_10 <= '-Inf':::FLOAT8)) AND (table1.col1_9 > e'\'':::STRING)) OR (table1.col1_5 = '00:00:00+15:59:00':::TIMETZ), FAMILY (col1_0), FAMILY (col1_7, col1_1), FAMILY (col1_2), FAMILY (col1_4, col1_3), FAMILY (col1_5), FAMILY (col1_6, col1_9), FAMILY (col1_8));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 27, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 632976, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 30, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4580, "histo_buckets": [{"distinct_range": 0, "num_eq": 30, "num_range": 0, "upper_bound": "08:19:23.491877+05:23:00"}, {"distinct_range": 5784566926653739000, "num_eq": 5000000000, "num_range": 5784566926653738996, "upper_bound": "18:29:08.21962+14:28:00"}, {"distinct_range": 328.8061441845516, "num_eq": 192212533184401464, "num_range": 1000, "upper_bound": "15:39:11.474789+10:31:00"}, {"distinct_range": 0, "num_eq": 3176804009766196492, "num_range": 2550412049620070257, "upper_bound": "05:45:42.858289-01:42:00"}, {"distinct_range": 0, "num_eq": 1666287765690229711, "num_range": 2000000, "upper_bound": "22:51:49.807988+02:24:00"}, {"distinct_range": 0, "num_eq": 2080711268126280283, "num_range": 4615516454545144013, "upper_bound": "16:14:47.309666-07:19:00"}, {"distinct_range": 404344539680388350, "num_eq": 7229933199005615173, "num_range": 763142833880598160, "upper_bound": "17:30:25.057725-06:20:00"}], "histo_col_type": "TIMETZ", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 14, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 51566, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 26, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 251462, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 7, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 182614, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 28, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 396274, "histo_col_type": "", "name": "__auto__", "null_count": 668425, "row_count": 800000}, {"avg_size": 30, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 287052, "histo_buckets": [{"distinct_range": 0, "num_eq": 40000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 1831585874818296000, "num_eq": 0, "num_range": 2293979410716420457, "upper_bound": "\\u0007o1m\\u0011&"}, {"distinct_range": 0, "num_eq": 10000000, "num_range": 40000000, "upper_bound": "\\tM"}, {"distinct_range": 60.67016919538597, "num_eq": 3834707642711086728, "num_range": 600, "upper_bound": ";"}, {"distinct_range": 0, "num_eq": 2000000000, "num_range": 4162623756579776815, "upper_bound": "A\\u001d#p5|"}, {"distinct_range": 0, "num_eq": 6401456761216140, "num_range": 8000, "upper_bound": "T=\\u0003"}, {"distinct_range": 95713127.52127632, "num_eq": 200, "num_range": 100000000, "upper_bound": "z"}, {"distinct_range": 262935726401545440, "num_eq": 40000000000, "num_range": 8300801853453591859, "upper_bound": "~\\u0006"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 21, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 408249, "histo_col_type": "", "name": "__auto__", "null_count": 47978, "row_count": 800000}, {"avg_size": 21, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 75621, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 199237, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 9, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 706790, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000}, {"avg_size": 31, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 111053, "histo_buckets": [{"distinct_range": 0, "num_eq": 8123871052575143197, "num_range": 0, "upper_bound": "-1.0"}, {"distinct_range": 98262.47483983677, "num_eq": 600, "num_range": 9000000, "upper_bound": "-0.952619598464004"}, {"distinct_range": 3.2106957071556312, "num_eq": 4200073602319555190, "num_range": 10, "upper_bound": "-0.08320922569226624"}, {"distinct_range": 0, "num_eq": 2782692745399847586, "num_range": 1644588499193515100, "upper_bound": "-0.053219238885325426"}, {"distinct_range": 2152438487514726100, "num_eq": 10, "num_range": 2152438487514726168, "upper_bound": "1.4498863683683805"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 496927, "row_count": 800000}, {"avg_size": 24, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 12278, "histo_col_type": "", "name": "__auto__", "null_count": 172174, "row_count": 800000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 13, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4548936920011730245, "histo_buckets": [{"distinct_range": 0, "num_eq": 5000, "num_range": 0, "upper_bound": "-1.0197698161253115"}, {"distinct_range": 5259224.8169704955, "num_eq": 5000, "num_range": 6000000, "upper_bound": "1.401298464324817e-45"}, {"distinct_range": 2511329791976773000, "num_eq": 1405702532470696852, "num_range": 3578136551842392108, "upper_bound": "0.13695910736183947"}, {"distinct_range": 7858727665969123000, "num_eq": 70000, "num_range": 7858727665969123088, "upper_bound": "1.496647241364351"}], "histo_col_type": "FLOAT8", "name": "__auto__", "null_count": 2880431627240568766, "row_count": 7493451933144549749}, {"avg_size": 25, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6869163469668283067, "histo_col_type": "", "name": "__auto__", "null_count": 6417395829606494099, "row_count": 7493451933144549749}, {"avg_size": 19, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2488705926622409425, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 11, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2191175697482311047, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 22, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2792984227591927426, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 8, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6413592746532453711, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "\\u0008\'>"}, {"distinct_range": 10000000000, "num_eq": 9000000, "num_range": 10000000000, "upper_bound": "(]G"}, {"distinct_range": 400000, "num_eq": 10000, "num_range": 400000, "upper_bound": "6\\u0005\\u001e,"}, {"distinct_range": 0, "num_eq": 30000000000, "num_range": 445580977584708826, "upper_bound": "<\\u001e?;\\u00033"}, {"distinct_range": 0, "num_eq": 0, "num_range": 80000, "upper_bound": "=?Ki\\tk"}, {"distinct_range": 1155603937229080600, "num_eq": 5570482463588054502, "num_range": 1155603937229080682, "upper_bound": "``:QXUum"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 6, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1655613871551921843, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 18, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6122659697413373312, "histo_col_type": "", "name": "__auto__", "null_count": 1224263401517175989, "row_count": 7493451933144549749}, {"avg_size": 10, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1339611150700135414, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 9, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1487852824169235428, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 8, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1764751326061981962, "histo_col_type": "", "name": "__auto__", "null_count": 360796773772155899, "row_count": 7493451933144549749}, {"avg_size": 10, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1571668216287988569, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}, {"avg_size": 27, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 390430796622457191, "histo_buckets": [{"distinct_range": 0, "num_eq": 40, "num_range": 0, "upper_bound": "00:00:00+15:59:00"}, {"distinct_range": 0, "num_eq": 80000, "num_range": 40000000000, "upper_bound": "01:38:51.499508+01:59:00"}, {"distinct_range": 0, "num_eq": 1629635508463584182, "num_range": 840755625673060731, "upper_bound": "16:13:23.798907+04:57:00"}, {"distinct_range": 0, "num_eq": 1000000, "num_range": 400000, "upper_bound": "07:12:18.325828-10:31:00"}, {"distinct_range": 41352224.78662213, "num_eq": 1000000, "num_range": 500000000, "upper_bound": "21:22:29.526798+02:49:00"}], "histo_col_type": "TIMETZ", "name": "__auto__", "null_count": 0, "row_count": 7493451933144549749}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (634.51s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 86e007dcb5cbde3501f138c1d768519db3487857:

        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (0.00s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        | panic: geos: no locations to init GEOS [recovered]
        test_1        |     panic: geos: no locations to init GEOS
        test_1        | 
        test_1        | goroutine 24 [running]:
        test_1        | testing.tRunner.func1.2({0x1cc2840, 0xc001d654c0})
        test_1        |     GOROOT/src/testing/testing.go:1209 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1212 +0x218
        test_1        | panic({0x1cc2840, 0xc001d654c0})
        test_1        |     GOROOT/src/runtime/panic.go:1038 +0x215
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3ec3040, {0x2de9550, 0xc001d33d10})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:371 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2d7a100, 0x3ec3040)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:304 +0x14b
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc0000c0000)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc001d32bd0, {0xc001d07960, 0x2, 0x0})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:254 +0xa72
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc000083988, 0x1e48d08, {0xc001d07960, 0x1b608a0, 0x1})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1b608a0, {0x1e48d08, 0x5}, 0x2, 0x30, {0xc001bc9a48, 0x3, 0x10000000000004c})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16d
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x3ea50f3489c899b2, 0x3ea50f3489c899b2)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:83 +0x187
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc00028a000)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:72 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0x1e4e3ee)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:45 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc0007ae1a0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc0007ae1a0, 0xc001d32b40)
        test_1        |     GOROOT/src/testing/testing.go:1259 +0x102
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1306 +0x35a
        compare_test_1 exited with code 2
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach1_1 ... done
        Stopping compare_cockroach2_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 2
--- FAIL: TestComposeCompare (20.38s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 571bfa3afb3858ae84d8a8fcdbb0a38e058402a5:

        postgres_1    |             SELECT
        postgres_1    |                 tab_491259.col1_2 AS col_872870,
        postgres_1    |                 tab_491259.col1_3 AS col_872871,
        postgres_1    |                 tab_491259.col1_4 AS col_872872,
        postgres_1    |                 tab_491259.col1_1 AS col_872873,
        postgres_1    |                 5::OID::OID AS col_872874,
        postgres_1    |                 tab_491258.tableoid AS col_872875
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_491258, postgres.public.table1 AS tab_491259
        postgres_1    |             WHERE
        postgres_1    |                 st_coveredby('A'::TEXT::TEXT::TEXT, NULL::TEXT::TEXT)::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_491259.col1_0 DESC
        postgres_1    |         )
        postgres_1    |             AS tab_491260
        postgres_1    |     ORDER BY
        postgres_1    |         col_872870 NULLS FIRST,
        postgres_1    |         col_872871 NULLS FIRST,
        postgres_1    |         col_872872 NULLS FIRST,
        postgres_1    |         col_872873 NULLS FIRST,
        postgres_1    |         col_872874 NULLS FIRST,
        postgres_1    |         col_872875 NULLS FIRST
        postgres_1    | 2022-07-12 05:27:23.898 UTC [80] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-12 05:27:23.898 UTC [80] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-12 05:27:23.898 UTC [80] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_873286) AS tab_491443 ORDER BY col_873286 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.22s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.24s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 "char" NULL, col1_1 BYTES, col1_2 INT4 NOT NULL, col1_3 REGTYPE, col1_4 INT2 NOT NULL, col1_5 TIMESTAMPTZ NOT NULL, col1_6 "char" NULL, col1_7 INT2 NOT NULL, col1_8 TIMETZ NOT NULL, col1_9 REGNAMESPACE, col1_10 DECIMAL NULL, col1_11 INT2 NOT NULL, col1_12 REGNAMESPACE, col1_13 VARCHAR NOT NULL, col1_14 TIME, col1_15 REGCLASS, col1_16 GEOGRAPHY, col1_17 GEOGRAPHY NOT NULL, INDEX (col1_2 ASC, col1_4 ASC, col1_8 ASC, col1_1, col1_13 ASC) STORING (col1_0, col1_3, col1_6, col1_7, col1_9, col1_11, col1_14, col1_15, col1_17) WHERE ((table1.col1_4 = 1:::INT8) OR (table1.col1_10 > 1:::DECIMAL)) OR (table1.col1_5 > '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ), UNIQUE ((col1_2 + (-2143428838):::INT8) ASC, col1_6 DESC, col1_3 ASC, ((col1_7 + col1_11) + col1_4) ASC, col1_11 ASC, col1_14 DESC, (CASE WHEN col1_15 IS NULL THEN '6':::STRING ELSE '':::STRING END), col1_5 ASC, col1_4, col1_0 DESC, col1_8, col1_10 ASC, col1_7 DESC) STORING (col1_1, col1_15, col1_16, col1_17), FAMILY (col1_16), FAMILY (col1_9, col1_3), FAMILY (col1_6), FAMILY (col1_12), FAMILY (col1_7), FAMILY (col1_15, col1_11, col1_13), FAMILY (col1_8), FAMILY (col1_10), FAMILY (col1_0, col1_4, col1_17, col1_5, col1_1), FAMILY (col1_2, col1_14));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 5, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 41167327, "histo_col_type": "", "name": "__auto__", "null_count": 63764884, "row_count": 90000000}, {"avg_size": 26, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 74128501, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 22, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 39283523, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 24, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4226544, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 10, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 23820510, "histo_col_type": "", "name": "__auto__", "null_count": 63614671, "row_count": 90000000}, {"avg_size": 9, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6544205, "histo_col_type": "", "name": "__auto__", "null_count": 75383435, "row_count": 90000000}, {"avg_size": 11, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 16151646, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 10, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 54897549, "histo_col_type": "", "name": "__auto__", "null_count": 62240161, "row_count": 90000000}, {"avg_size": 2, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 64883549, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 2, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 60916917, "histo_col_type": "", "name": "__auto__", "null_count": 9952201, "row_count": 90000000}, {"avg_size": 23, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 56850577, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 14, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 28643597, "histo_col_type": "", "name": "__auto__", "null_count": 56516908, "row_count": 90000000}, {"avg_size": 29, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58760898, "histo_col_type": "", "name": "__auto__", "null_count": 28091412, "row_count": 90000000}, {"avg_size": 18, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 34964196, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 8, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 77153210, "histo_col_type": "", "name": "__auto__", "null_count": 60481394, "row_count": 90000000}, {"avg_size": 9, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 59258550, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000000}, {"avg_size": 5, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 13114226, "histo_col_type": "", "name": "__auto__", "null_count": 40809766, "row_count": 90000000}, {"avg_size": 6, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 35212302, "histo_col_type": "", "name": "__auto__", "null_count": 2929059, "row_count": 90000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (633.76s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 687171ac6c2cd9992486bb3b8c9d252ac95ca1cd:

        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (214.79s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:188: open /home/agent/.cache/bazel/_bazel_agent/40f5e2a2e18a7cdb4cd075f919d8072b/execroot/com_github_cockroachdb_cockroach/_tmp/47c568f68c04b61694d82f4def978aef/TestComposeCompare1978389261/002/postgres.log: no such file or directory
        test_1        |         compare_test.go:190: compare cockroach1 to postgres: unexpected diff:
        test_1        |               []any(Inverse(func1, []any{
        test_1        |             -   nil,
        test_1        |             +   string("0103000000010000000500000000000000008046C0000000000000000000000000008046C00000000000804640000000000000000000000000008046400000000000000000000000000000000000000000008046C00000000000000000"),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (SELECT st_geomfromgeohash('E':::STRING::STRING::STRING, NULL::INT4::INT4)::GEOMETRY AS col_274015) AS tab_150679
        test_1        |             ORDER BY
        test_1        |                 col_274015 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (SELECT st_geomfromgeohash('E'::TEXT::TEXT::TEXT, NULL::INT4::INT4)::GEOMETRY AS col_274015) AS tab_150679
        test_1        |             ORDER BY
        test_1        |                 col_274015 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.49s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 TIME NOT NULL, col1_1 BIT(23) NOT NULL, col1_2 "char" NOT NULL, col1_3 REGPROC NULL, col1_4 TIMESTAMPTZ NOT NULL, col1_5 GEOGRAPHY NOT NULL, col1_6 INT8, col1_7 FLOAT8 NOT NULL, col1_8 REGCLASS NOT NULL, col1_9 INT8 AS (col1_6 + 1404855332812397513:::INT8) VIRTUAL, PRIMARY KEY (col1_8 ASC), INVERTED INDEX (col1_8 DESC, lower(CAST(col1_1 AS STRING)) DESC, col1_7 DESC, col1_9 DESC, col1_4, col1_3 DESC, col1_0, col1_5 DESC) WHERE (table1.col1_7 <= 1.0:::FLOAT8) OR (table1.col1_4 < '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ), UNIQUE (col1_1 ASC), INDEX (lower(CAST(col1_0 AS STRING)) DESC, col1_6 ASC) STORING (col1_0, col1_1) WHERE (((((table1.col1_2 > e'\x00':::STRING) AND (table1.col1_9 > (-1):::INT8)) OR (table1.col1_6 <= 9223372036854775807:::INT8)) AND (table1.col1_7 != 0.0:::FLOAT8)) OR (table1.col1_4 > '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_0 != '24:00:00':::TIME), UNIQUE (col1_6 DESC) STORING (col1_3, col1_4, col1_5), INDEX (col1_1, col1_4 ASC, col1_6, (col1_7 + 0.2225070304084456:::FLOAT8) ASC, col1_7 ASC, col1_8, lower(CAST(col1_0 AS STRING)) ASC, col1_3), FAMILY (col1_8), FAMILY (col1_3, col1_6, col1_7), FAMILY (col1_5, col1_4), FAMILY (col1_2, col1_1), FAMILY (col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 25, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 920, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 7, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 522, "histo_col_type": "", "name": "__auto__", "null_count": 125, "row_count": 1000}, {"avg_size": 6, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 735, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 8, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 795, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 17, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 326, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 9, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 674, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 18, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 409, "histo_buckets": [{"distinct_range": 0, "num_eq": 4608333626870112363, "num_range": 0, "upper_bound": "-6328530912033781138"}, {"distinct_range": 5940745.949641608, "num_eq": 30, "num_range": 7000000, "upper_bound": "-2975677040943881954"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 692, "row_count": 1000}, {"avg_size": 25, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 518, "histo_buckets": [{"distinct_range": 0, "num_eq": 1000000, "num_range": 0, "upper_bound": "749500701"}, {"distinct_range": 0, "num_eq": 4171195016201108653, "num_range": 10000000000, "upper_bound": "919476004"}, {"distinct_range": 80, "num_eq": 1894686713813013213, "num_range": 80, "upper_bound": "1154606239"}, {"distinct_range": 224718444.07715946, "num_eq": 200000000, "num_range": 600000000, "upper_bound": "3429258926"}], "histo_col_type": "REGCLASS", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 18, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 504, "histo_col_type": "", "name": "__auto__", "null_count": 996, "row_count": 1000}, {"avg_size": 11, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 120, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 13, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3210395, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 28, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 823996, "histo_buckets": [{"distinct_range": 0, "num_eq": 3544250657930617127, "num_range": 0, "upper_bound": "-3139344032912050425"}, {"distinct_range": 0, "num_eq": 1592757227134675319, "num_range": 3000000, "upper_bound": "-1060830544918960694"}, {"distinct_range": 0, "num_eq": 2735922573189485791, "num_range": 600000000, "upper_bound": "5268258289109855860"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 260168, "row_count": 9000000}, {"avg_size": 2, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8471168, "histo_col_type": "REGCLASS", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 31, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3678671, "histo_col_type": "", "name": "__auto__", "null_count": 5947887, "row_count": 9000000}, {"avg_size": 27, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7018732, "histo_col_type": "BIT(23)", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 1, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1638678, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 3, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6768132, "histo_col_type": "", "name": "__auto__", "null_count": 197189, "row_count": 9000000}, {"avg_size": 31, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2082958, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 20, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5624421, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9000000}, {"avg_size": 6, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7817113, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 9000000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (246.95s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 88d3253301457ac57820e0f4a4fab8f74bf9f38b:

        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_413165
        postgres_1    |             WHERE
        postgres_1    |                 '2000-01-01 02:00:00'::TIMESTAMP::TIMESTAMP::TIMESTAMP
        postgres_1    |                 IN (
        postgres_1    |                         SELECT
        postgres_1    |                             tab_413167.col4_1::TIMESTAMP AS col_781937
        postgres_1    |                         FROM
        postgres_1    |                             postgres.public.table3 AS tab_413166
        postgres_1    |                             JOIN postgres.public.table4 AS tab_413167 ON
        postgres_1    |                                     (tab_413166.col3_12) = (tab_413167.col4_0)
        postgres_1    |                                     AND (tab_413166.tableoid) = (tab_413167.col4_4)
        postgres_1    |                                     AND (tab_413166.col3_10) = (tab_413167.col4_11)
        postgres_1    |                                     AND (tab_413166.tableoid) = (tab_413167.col4_10)
        postgres_1    |                                     AND (tab_413166.col3_7) = (tab_413167.col4_17)
        postgres_1    |                                     AND (tab_413166.col3_15) = (tab_413167.col4_8)
        postgres_1    |                         WHERE
        postgres_1    |                             tab_413166.col3_2
        postgres_1    |                     )
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_413165.col1_6 ASC, tab_413165.col1_7
        postgres_1    |         )
        postgres_1    |             AS tab_413168
        postgres_1    |     ORDER BY
        postgres_1    |         col_781938 NULLS FIRST,
        postgres_1    |         col_781939 NULLS FIRST,
        postgres_1    |         col_781940 NULLS FIRST,
        postgres_1    |         col_781941 NULLS FIRST,
        postgres_1    |         col_781942 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.51s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.25s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table3 (col3_0 "char" NOT NULL, col3_1 BIT(22) NOT NULL, col3_2 OID, col3_3 INT4, col3_4 INT4 NOT NULL, col3_5 INTERVAL NOT NULL, col3_6 FLOAT8, col3_7 REGCLASS NOT NULL, col3_8 BYTES NOT NULL, col3_9 REGNAMESPACE, col3_10 INET NOT NULL, col3_11 INT8 AS (col3_3 + col3_4) VIRTUAL, col3_12 STRING NOT NULL AS (CASE WHEN col3_8 IS NULL THEN '':::STRING ELSE '>NGc':::STRING END) STORED, col3_13 INT8 AS (col3_4 + col3_3) VIRTUAL, col3_14 INT8 AS (col3_3 + 135667617:::INT8) VIRTUAL, col3_15 INT8 NOT NULL AS (col3_4 + (-1874172864):::INT8) VIRTUAL, col3_16 STRING NOT NULL AS (lower(CAST(col3_2 AS STRING))) VIRTUAL, col3_17 INT8 AS (col3_4 + col3_3) VIRTUAL, PRIMARY KEY (col3_16 ASC, col3_7 ASC, col3_0, col3_15 DESC), UNIQUE (col3_5, col3_8 ASC, col3_1 ASC, col3_15 DESC, (col3_4 + col3_3) DESC, col3_11, col3_16 ASC, col3_2, col3_12, col3_7 ASC, col3_14 ASC, col3_10 ASC, col3_0 DESC, col3_6 ASC, col3_9) WHERE ((((((((table3.col3_4 <= (-128):::INT8) AND (table3.col3_16 >= e'\'':::STRING)) AND (table3.col3_8 >= '\x00':::BYTES)) AND (table3.col3_13 = (-2147483648):::INT8)) AND (table3.col3_15 > 0:::INT8)) OR (table3.col3_14 > (-2147483648):::INT8)) AND (table3.col3_3 <= (-1):::INT8)) OR (table3.col3_17 != (-128):::INT8)) OR (table3.col3_11 >= (-32768):::INT8), UNIQUE (col3_11 ASC, col3_8 DESC) STORING (col3_1, col3_3, col3_4, col3_9), UNIQUE (col3_5 ASC, col3_1 DESC, col3_10, col3_3 ASC, col3_17 DESC, col3_12 ASC, col3_11 DESC, col3_0, col3_4 ASC, col3_9 ASC, col3_14, col3_7 ASC, (CASE WHEN col3_5 IS NULL THEN e'jiZ%\x17\x16\x19\x03':::STRING ELSE e'-/W\x13':::STRING END) ASC, col3_13 ASC, col3_2, col3_6, col3_15 ASC, col3_8) PARTITION BY LIST (col3_5, col3_1, col3_10, col3_3, col3_17, col3_12, col3_11, col3_0, col3_4, col3_9, col3_14, col3_7) (PARTITION table3_part_0 VALUES IN (('23 years 2 mons 354 days 02:03:40.688665':::INTERVAL, B'1110101111100111010111', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, 1473102554:::INT8, NULL, 'YscTI"u':::STRING, (-8638475260742924295):::INT8, '_':::STRING, 153312884:::INT8, 0:::OID, 0:::INT8, 2530556751:::OID), ('-59 years -8 mons -850 days -17:36:09.355818':::INTERVAL, B'1111010101101100101010', '3ff4:526f:4b08:2f32:31c3:63de:d1b5:f310/54':::INET, (-280647022):::INT8, NULL, e'\x19B\x1dV':::STRING, (-779909383185156180):::INT8, 'J':::STRING, (-93755304):::INT8, 1561797639:::OID, (-4919299495813903510):::INT8, 2533453821:::OID), ('61 years 749 days 00:30:51.94508':::INTERVAL, B'1110011011000010111110', '146.181.47.72/22':::INET, (-2143291907):::INT8, 1845922632653497900:::INT8, e'\x1b':::STRING, (-5631474613537644473):::INT8, '0':::STRING, 9590078:::INT8, 828730050:::OID, NULL, 308709177:::OID), ('1 day':::INTERVAL, B'1101000100000110000100', '5ffc:67c7:cbf2:c713:7430:2c59:b287:4496/33':::INET, NULL, 0:::INT8, e'[\x02\x0fl\x0f,\x1d*':::STRING, 6864378314364365103:::INT8, '+':::STRING, (-1135617822):::INT8, 1452559110:::OID, (-1070837482051110326):::INT8, 3691933462:::OID), ('-40 years -6 mons -729 days -23:22:53.541569':::INTERVAL, B'0001110110110010011101', '9e42:e6e5:80:1dd5:e69d:6613:c5dd:1f5a/116':::INET, (-314711002):::INT8, 5555505039458473431:::INT8, e'y``WQ\x05':::STRING, 3885758174326357812:::INT8, 'I':::STRING, 1230093436:::INT8, 2689847483:::OID, (-4750851907072822059):::INT8, 246265788:::OID), ('1 mon 1 day':::INTERVAL, B'1011000000111001101000', '73e9:3056:fad7:8ec6:1a4f:c64:c653:d26a/8':::INET, NULL, 5324600681070749963:::INT8, '':::STRING, 2147483647:::INT8, 'y':::STRING, (-1685177578):::INT8, NULL, NULL, 1025218478:::OID), ('77 years 3 mons 932 days 06:53:54.281609':::INTERVAL, B'1100101111001101111111', '0.0.0.0/0':::INET, (-1765402985):::INT8, 2207053608910372887:::INT8, e'\x1ds3XT]\f``b':::STRING, (-3546569960186805975):::INT8, 'M':::STRING, 805096310:::INT8, 11645401:::OID, (-2713045939558545061):::INT8, 511401431:::OID), ('-43 years -5 mons -106 days -04:20:56.257944':::INTERVAL, B'0110100100111001011010', '8cd2:bd5:84bb:2938:9721:6c9d:91cd:b57a/109':::INET, (-886365626):::INT8, 1436147893281158467:::INT8, 'VlQ<GoNGv':::STRING, 1:::INT8, 'q':::STRING, (-1996285777):::INT8, 1986411466:::OID, NULL, 566362910:::OID), ('-51 years -3 mons -698 days -18:55:04.685767':::INTERVAL, B'1100011110110110000001', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, 32767:::INT8, NULL, 'U[':::STRING, (-5416853437050914585):::INT8, '[':::STRING, (-1458386035):::INT8, 2614966137:::OID, (-8478896326761685497):::INT8, 42210391:::OID), ('28 years 8 mons 251 days 15:55:44.920189':::INTERVAL, B'0010000010110011100100', '0.0.0.0/0':::INET, 377579010:::INT8, (-1044190062414299012):::INT8, 'g':::STRING, 2476038036077545254:::INT8, e'\x13':::STRING, (-1923892360):::INT8, NULL, 1920089249273763428:::INT8, 3675415954:::OID)), PARTITION table3_part_1 VALUES IN (('-20 years -2 mons -80 days -03:39:19.395963':::INTERVAL, B'0001100110100000110100', '119.144.218.120/29':::INET, (-840860747):::INT8, 0:::INT8, '>G':::STRING, 32767:::INT8, 'Z':::STRING, (-783798829):::INT8, 3548547930:::OID, 7094062038325291980:::INT8, 469388749:::OID), ('31 years 2 mons 362 days 13:53:41.143857':::INTERVAL, B'0001101001100000001001', '62.193.245.221/5':::INET, 1807905150:::INT8, 607808324228154251:::INT8, e'Pg?\x04':::STRING, NULL, e'\x01':::STRING, (-403768118):::INT8, 0:::OID, (-6600453321327800061):::INT8, 0:::OID), ('16 years 8 mons 988 days 13:38:04.87482':::INTERVAL, B'0011010010101001000111', '117.96.182.100/22':::INET, 446905705:::INT8, (-2941396280609632260):::INT8, e's\x04J^':::STRING, 78727944963929911:::INT8, '(':::STRING, 528871628:::INT8, 3677541098:::OID, 136557147550035589:::INT8, 2362633625:::OID), ('63 years 5 mons 613 days 05:30:34.750165':::INTERVAL, B'1011100010001011011111', '0.0.0.0/0':::INET, (-1009599786):::INT8, 2081843979682158809:::INT8, e's/\bE%m\x1d}':::STRING, 2400823590067247695:::INT8, e'\x13':::STRING, (-2137872665):::INT8, 0:::OID, 8434236336065419102:::INT8, 356650377:::OID), ('22 years 4 mons 482 days 05:01:20.780169':::INTERVAL, B'0001010110001101100001', '58.9.89.196/19':::INET, 2011380659:::INT8, NULL, 'j':::STRING, (-5441948684464562136):::INT8, '^':::STRING, 685964779:::INT8, 847421290:::OID, 3744401514365555117:::INT8, 181275916:::OID), ('34 years 9 mons 135 days 03:02:42.616192':::INTERVAL, B'0110001000010011110100', '62.22.39.206/1':::INET, (-143906891):::INT8, (-7474557454215756566):::INT8, e'\x0b\x158':::STRING, 9223372036854775807:::INT8, 'P':::STRING, (-582755739):::INT8, 38409119:::OID, NULL, 0:::OID), ('61 years 4 mons 246 days 09:12:53.834173':::INTERVAL, B'1001100011011101100110', 'edc7:f925:9e45:8b9e:3902:f2ad:e217:2b8b/84':::INET, 387907278:::INT8, 3525004919286750133:::INT8, '6':::STRING, 5755523728343649923:::INT8, 'v':::STRING, 1823630314:::INT8, 1495190076:::OID, 8748275996872731501:::INT8, 1515242813:::OID), ('20 years 3 mons 339 days 15:22:09.970371':::INTERVAL, B'0110110111101110101010', '44ef:8d57:4567:1cbe:e6a5:f6d5:ec74:89ba/77':::INET, (-2112493419):::INT8, 7409474734116365794:::INT8, e'[\x19gUgc\x07_4':::STRING, 2534217212212949138:::INT8, '[':::STRING, (-508632022):::INT8, 443189557:::OID, (-4947415603087201541):::INT8, 0:::OID), ('-36 years -9 mons -666 days -21:53:33.930466':::INTERVAL, B'1010000111101011100111', 'c1c1:b6e9:ac87:bbe7:df0c:3ed5:ad8b:ad80/52':::INET, (-157664979):::INT8, (-2541073667447586719):::INT8, e'pS4U~#\nKE':::STRING, 5205923572846229805:::INT8, 'b':::STRING, (-281417811):::INT8, 0:::OID, 279968420382691728:::INT8, 0:::OID), ('-80 years -3 mons -968 days -04:26:46.742512':::INTERVAL, B'0000000000000000000000', '7d63:2fec:c691:c3fa:c503:d3df:154b:a9e5/27':::INET, (-121205276):::INT8, 2292969374069934951:::INT8, e'\x1f\x1ez\x18 \x1f}<':::STRING, (-6735028222915777653):::INT8, 'H':::STRING, 745210488:::INT8, 334958166:::OID, (-32768):::INT8, 1083695404:::OID)), PARTITION table3_part_2 VALUES IN (('-4 mons -973 days -10:24:12.136711':::INTERVAL, B'0100010011011000001011', 'cbe0:5b11:b7e:3cb0:290f:9b30:a965:d120/82':::INET, (-1875298065):::INT8, (-5501930343453593417):::INT8, e' &$2?b\x17\t':::STRING, 2646999243126787515:::INT8, e'\'':::STRING, 235873704:::INT8, 2166097530:::OID, 127:::INT8, 2942643801:::OID), ('10 years 5 mons 235 days 03:59:11.37905':::INTERVAL, B'1011011000011001100011', '85.246.58.172/18':::INET, 1125021347:::INT8, 3651158792797843104:::INT8, e'\b\x10Qafg\x19\rT':::STRING, 5833848998846036734:::INT8, 'U':::STRING, 1713058534:::INT8, 0:::OID, 8698596222354116801:::INT8, 2850745241:::OID), ('-30 years -9 mons -213 days -08:14:57.356612':::INTERVAL, B'1011000001000011000000', '467f:6504:e7c3:3a0f:1a1a:6516:1c55:be8d/99':::INET, (-1):::INT8, 2147483647:::INT8, 'RG':::STRING, 3230207850763398825:::INT8, '|':::STRING, (-128):::INT8, 2923134230:::OID, 2147483647:::INT8, 1201393215:::OID), ('78 years 3 mons 7 days 11:45:22.874153':::INTERVAL, B'0101000110010100100100', '198.173.29.18/12':::INET, 2019410522:::INT8, (-8230272043319759961):::INT8, e'K\n\x16\x17W\x0f5':::STRING, (-4247166731833480518):::INT8, e'\f':::STRING, (-422535808):::INT8, 2033145403:::OID, (-6586403404640173708):::INT8, 0:::OID), ('41 years 5 mons 278 days 05:51:52.185871':::INTERVAL, B'0101010011000001010101', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, (-1):::INT8, 2316977736276582453:::INT8, 'o':::STRING, (-2147483648):::INT8, e'\x04':::STRING, (-1640953583):::INT8, NULL, 9194260459265005945:::INT8, 512175751:::OID), ('-38 years -10 mons -713 days -15:23:41.498555':::INTERVAL, B'1000010000001101100001', '137.53.157.157/17':::INET, 0:::INT8, 741914479873313566:::INT8, 'z':::STRING, (-1252008770448655271):::INT8, ']':::STRING, 16597306:::INT8, 2711648906:::OID, 315134682114908108:::INT8, 3158539180:::OID), ('1 day':::INTERVAL, B'1000010011101111001110', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, 1780608352:::INT8, (-3952420235340376945):::INT8, '9e':::STRING, 106874015525614827:::INT8, '5':::STRING, 1179980896:::INT8, 222444903:::OID, (-8676636875470379793):::INT8, 2706383278:::OID), ('-58 years -7 mons -289 days -22:26:49.532215':::INTERVAL, B'0000011001000101001001', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, (-2125113756):::INT8, (-1955138142190780527):::INT8, e'e\x1f\x1b\bx':::STRING, (-4994699695039026818):::INT8, '+':::STRING, 645008688:::INT8, NULL, (-8945616980550477318):::INT8, 2351877050:::OID), ('22 years 5 mons 471 days 21:08:05.551466':::INTERVAL, B'0110000011010100100010', 'beba:35b7:f3c4:e719:c1af:28b7:28b2:6311/126':::INET, NULL, (-1734417683860937670):::INT8, '':::STRING, (-538632871485122484):::INT8, '>':::STRING, 1904465892:::INT8, 874787087:::OID, (-7452183275063140043):::INT8, 3789805148:::OID), ('40 years 6 mons 545 days 09:59:48.559739':::INTERVAL, B'0011010001100111000011', '228.71.17.9/25':::INET, 1749832972:::INT8, 8557459096797683313:::INT8, e'dO\x17QiQ\x19':::STRING, 4979890259624061254:::INT8, '"':::STRING, (-811672988):::INT8, 3389091813:::OID, 4392695651631485408:::INT8, 1998038159:::OID)), PARTITION table3_part_3 VALUES IN (('69 years 5 mons 138 days 11:02:52.402583':::INTERVAL, B'1010010010110100011111', 'd13b:5c10:b701:85c9:8660:d09a:75ce:b926/43':::INET, 1038559268:::INT8, 7195176792751297398:::INT8, e'Z \f``E1':::STRING, 4288353197811855353:::INT8, '-':::STRING, 243660497:::INT8, 1820605625:::OID, 7254190872120821097:::INT8, 2560623399:::OID), ('-59 years -8 mons -213 days -11:02:22.242761':::INTERVAL, B'0111101011001111101011', '0.0.0.0/0':::INET, 1286418575:::INT8, 3974664301854483075:::INT8, '?]':::STRING, (-7642959530630124370):::INT8, '5':::STRING, 287183509:::INT8, 3959101132:::OID, NULL, 1839163283:::OID), ('36 years 3 mons 282 days 15:13:52.66935':::INTERVAL, B'1101111011000100011011', '1.198.84.215/17':::INET, (-248583897):::INT8, NULL, e'\x19\x18\x01Fb':::STRING, (-915394075300144425):::INT8, '%':::STRING, 2088369050:::INT8, NULL, NULL, 2590137057:::OID), ('53 years 10 mons 756 days 09:30:21.518345':::INTERVAL, B'1100100111001111001110', '44e8:dca9:249e:e1c:6fa:5cae:4f7f:d56c/79':::INET, (-1613634322):::INT8, (-7998607612171893615):::INT8, e'?\x1dh"\x07\x7fN':::STRING, (-682761107139201983):::INT8, ';':::STRING, 1055255292:::INT8, 3388532077:::OID, 4805769059368244223:::INT8, 2878972486:::OID), ('43 years 8 mons 66 days 16:39:32.896614':::INTERVAL, B'1001100111111010100011', '43f7:a330:5863:83ca:ee3d:c4e7:4a1a:bc88/117':::INET, (-704300432):::INT8, 9065593740864998099:::INT8, 'Z':::STRING, 0:::INT8, e'\x14':::STRING, (-1121674660):::INT8, 2644280973:::OID, (-3065415943258486196):::INT8, 2926793209:::OID), ('47 years 4 mons 615 days 22:16:14.186836':::INTERVAL, B'0000100010000101010000', '198.135.232.221/14':::INET, (-32768):::INT8, (-2063241143499474485):::INT8, '':::STRING, 8099375356095749895:::INT8, e'\x07':::STRING, (-1293001665):::INT8, 1910136650:::OID, (-8740637433710550530):::INT8, 710256137:::OID), ('11 years 8 mons 22:39:27.542443':::INTERVAL, B'1000101001011000110001', '109.239.152.25/2':::INET, 1146069005:::INT8, (-4981132692871058691):::INT8, e'dLhx\x1c:1':::STRING, 7125066153438010622:::INT8, e'\x00':::STRING, (-239307933):::INT8, 1721319532:::OID, 6840896124366440337:::INT8, 3571649787:::OID), ('-2 years -8 mons -431 days -11:49:07.801522':::INTERVAL, B'1001110110000000111110', 'd58a:5821:f473:ce42:4d4f:3876:e5e7:e29/93':::INET, 1771841773:::INT8, 3434440355163458374:::INT8, e'1HQ\x0eY+i\x15':::STRING, (-1464251304382700267):::INT8, e'\x0f':::STRING, (-882299803):::INT8, 928673907:::OID, NULL, 1933153335:::OID), ('-31 years -1 mons -400 days -11:09:40.631827':::INTERVAL, B'1110111001011111001000', 'b825:81c:542c:2e2f:8b14:5b8e:c74:d15b/78':::INET, (-379383003):::INT8, 9126012962877415956:::INT8, e'\U00002603':::STRING, 4891663931425474500:::INT8, '':::STRING, 1407380018:::INT8, 2938730137:::OID, (-3980910839065647386):::INT8, 2334781016:::OID), ('18 years 7 mons 614 days 21:14:45.713165':::INTERVAL, B'0010010101001011011011', 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, (-2045351589):::INT8, (-6179362696200838067):::INT8, e'\x12SY*.\x12!':::STRING, (-9122327293459177879):::INT8, e'\x1b':::STRING, 44063802:::INT8, 4018969331:::OID, 5478694509007580945:::INT8, 1543356204:::OID))), INDEX (col3_0 DESC, col3_5, col3_12, (col3_3 + 1914464551:::INT8), col3_16 ASC, col3_15, col3_17 ASC, col3_7, col3_14 ASC, col3_4 ASC, col3_1, col3_2 DESC) WHERE (((((((((((table3.col3_3 < 1:::INT8) AND (table3.col3_4 <= (-1):::INT8)) AND (table3.col3_8 < '\x22':::BYTES)) OR (table3.col3_6 = 0.0:::FLOAT8)) AND (table3.col3_13 >= 2147483647:::INT8)) OR (table3.col3_11 <= (-128):::INT8)) AND (table3.col3_16 <= e'\'':::STRING)) OR (table3.col3_15 = 0:::INT8)) OR (table3.col3_0 > e'\'':::STRING)) OR (table3.col3_17 >= 1:::INT8)) AND (table3.col3_12 < e'\U00002603':::STRING)) OR (table3.col3_14 >= (-1):::INT8), UNIQUE (col3_1 ASC, col3_16 DESC, col3_12 ASC, col3_10, col3_11 DESC, col3_13 DESC, col3_8, col3_17 DESC, col3_14 DESC, col3_4 DESC, col3_15 ASC, (col3_3 + col3_4) ASC) STORING (col3_6) WHERE (((((((table3.col3_14 <= 127:::INT8) OR (table3.col3_15 = 32767:::INT8)) OR (table3.col3_16 <= '':::STRING)) AND (table3.col3_4 > (-1):::INT8)) AND (table3.col3_6 != 'NaN':::FLOAT8)) AND (table3.col3_11 >= 9223372036854775807:::INT8)) AND (table3.col3_13 <= 0:::INT8)) OR (table3.col3_8 <= '\xff':::BYTES), INDEX (col3_11, col3_2, col3_13 ASC, col3_0 DESC) STORING (col3_1, col3_4, col3_6, col3_10, col3_12) WHERE (((((((((((table3.col3_17 > 32767:::INT8) AND (table3.col3_14 != 2147483647:::INT8)) OR (table3.col3_13 <= 127:::INT8)) OR (table3.col3_0 > '':::STRING)) AND (table3.col3_3 > (-128):::INT8)) AND (table3.col3_16 <= e'\'':::STRING)) OR (table3.col3_12 = 'X':::STRING)) AND (table3.col3_8 >= '\x27':::BYTES)) AND (table3.col3_6 > '-Inf':::FLOAT8)) OR (table3.col3_15 < (-2147483648):::INT8)) OR (table3.col3_4 = 32767:::INT8)) OR (table3.col3_11 >= 0:::INT8))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=dd9d4258-8a46-44df-82a2-9bf070965b64 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (634.95s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ e9ee21860458d997a8155734dc608cfcd050ef24:

        postgres_1    | 2022-07-15 05:17:07.866 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-07-15 05:17:09.500 UTC [78] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
        postgres_1    | 2022-07-15 05:17:09.500 UTC [78] STATEMENT:  CREATE TABLE table2 (col2_0 BOX2D NOT NULL, col2_1 BIT(3) NOT NULL, col2_2 INT2 NOT NULL, col2_3 INT8 NOT NULL, col2_4 REGPROCEDURE NOT NULL, col2_5 BIT(49) NOT NULL, col2_6 FLOAT8 NOT NULL, col2_7 TIMESTAMP NOT NULL, col2_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_9 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_5 AS TEXT))) STORED, col2_10 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN 'x'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN e'j\x11d;>)``\b'::TEXT ELSE e'5J\f\x1d\x10'::TEXT END) STORED, col2_12 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_4 IS NULL THEN NULL ELSE 'b8'::TEXT END) STORED, PRIMARY KEY (col2_2, col2_11, col2_5, col2_4, col2_6, col2_8, col2_12, col2_7, col2_1, col2_9));
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_2 DESC, col2_12 DESC, col2_8 ASC, col2_11);
        postgres_1    |     CREATE INDEX ON table2 (col2_9 ASC, col2_2 ASC, col2_8 ASC, col2_7 ASC, (col2_6 + 0.7019942916320792::FLOAT8), col2_12 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_10 ASC, col2_9 DESC, col2_7 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_7 DESC);
        postgres_1    |     CREATE INDEX ON table2 (col2_9 ASC, col2_3 DESC, col2_1 DESC, lower(CAST(col2_0 AS TEXT)) DESC, col2_7, col2_12 DESC, col2_2 ASC, col2_10 ASC, col2_5, col2_4, col2_6, col2_8 DESC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_11 DESC, col2_1, col2_3 ASC, col2_2 ASC, col2_7, col2_10 DESC, col2_5 DESC, col2_6 ASC);
        postgres_1    |     CREATE INDEX ON table2 ((col2_6 + (-0.04882824677415698)::FLOAT8) DESC, col2_10 DESC, col2_4 ASC, col2_1 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_7);
        postgres_1    |     CREATE INDEX ON table2 (col2_10 DESC, col2_11, col2_1 ASC, col2_7, col2_3 DESC, col2_6 ASC, col2_4, col2_8 DESC, col2_9 DESC, col2_2 ASC, col2_5, col2_12);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.22s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (0.94s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:159: CREATE TABLE table2 (col2_0 BOX2D NOT NULL, col2_1 BIT(3) NOT NULL, col2_2 INT2 NOT NULL, col2_3 INT8 NOT NULL, col2_4 REGPROCEDURE NOT NULL, col2_5 BIT(49) NOT NULL, col2_6 FLOAT8 NOT NULL, col2_7 TIMESTAMP NOT NULL, col2_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_9 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_5 AS TEXT))) STORED, col2_10 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN 'x'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN e'j\x11d;>)``\b'::TEXT ELSE e'5J\f\x1d\x10'::TEXT END) STORED, col2_12 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_4 IS NULL THEN NULL ELSE 'b8'::TEXT END) STORED, PRIMARY KEY (col2_2, col2_11, col2_5, col2_4, col2_6, col2_8, col2_12, col2_7, col2_1, col2_9));
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_2 DESC, col2_12 DESC, col2_8 ASC, col2_11);
        test_1        |             CREATE INDEX ON table2 (col2_9 ASC, col2_2 ASC, col2_8 ASC, col2_7 ASC, (col2_6 + 0.7019942916320792::FLOAT8), col2_12 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_10 ASC, col2_9 DESC, col2_7 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_7 DESC);
        test_1        |             CREATE INDEX ON table2 (col2_9 ASC, col2_3 DESC, col2_1 DESC, lower(CAST(col2_0 AS TEXT)) DESC, col2_7, col2_12 DESC, col2_2 ASC, col2_10 ASC, col2_5, col2_4, col2_6, col2_8 DESC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_11 DESC, col2_1, col2_3 ASC, col2_2 ASC, col2_7, col2_10 DESC, col2_5 DESC, col2_6 ASC);
        test_1        |             CREATE INDEX ON table2 ((col2_6 + (-0.04882824677415698)::FLOAT8) DESC, col2_10 DESC, col2_4 ASC, col2_1 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_7);
        test_1        |             CREATE INDEX ON table2 (col2_10 DESC, col2_11, col2_1 ASC, col2_7, col2_3 DESC, col2_6 ASC, col2_4, col2_8 DESC, col2_9 DESC, col2_2 ASC, col2_5, col2_12);
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: invalid byte sequence for encoding "UTF8": 0x00 (SQLSTATE 22021)
        test_1        |     --- FAIL: TestCompare/mutators (0.15s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INT2 NOT NULL, col1_1 DECIMAL NOT NULL, col1_2 NAME[] NOT NULL, col1_3 REGROLE, col1_4 INT4 NOT NULL, INVERTED INDEX (col1_2), UNIQUE (col1_0 DESC, col1_1, col1_3, col1_4) WHERE table1.col1_4 != 1:::INT8, INVERTED INDEX (col1_1, col1_2 DESC) WHERE (table1.col1_0 >= (-1):::INT8) AND (table1.col1_4 = (-1):::INT8), UNIQUE (col1_0 ASC, col1_4 ASC, col1_3), INDEX (col1_3) WHERE (table1.col1_4 != (-128):::INT8) OR (table1.col1_1 > 'Infinity':::DECIMAL), UNIQUE (col1_1, col1_3 DESC), INDEX (col1_1 ASC) STORING (col1_0, col1_2) WHERE ((table1.col1_1 != 'Infinity':::DECIMAL) AND (table1.col1_0 > (-1):::INT8)) OR (table1.col1_4 != (-1):::INT8), INDEX (col1_4, col1_3 DESC) STORING (col1_1, col1_2) WHERE ((table1.col1_0 < (-1):::INT8) OR (table1.col1_1 < '-Infinity':::DECIMAL)) OR (table1.col1_4 <= (-128):::INT8), INDEX (col1_4 DESC, col1_3, col1_1) STORING (col1_2) PARTITION BY LIST (col1_4, col1_3) (PARTITION table1_part_0 VALUES IN ((297607389:::INT8, 0:::OID), (2147483647:::INT8, 1640559734:::OID))) WHERE table1.col1_0 > 32767:::INT8, FAMILY (col1_0), FAMILY (col1_1, col1_3, col1_4), FAMILY (col1_2))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=940bd72f-54bc-4673-9e87-a839ed9d2f70 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (21.21s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 0e816efe5443764591a944edcb385c7b2762523e:

        postgres_1    | 2022-07-16 05:27:59.437 UTC [77] ERROR:  operator is not unique: text || geometry at character 54
        postgres_1    | 2022-07-16 05:27:59.437 UTC [77] HINT:  Could not choose a best candidate operator. You might need to add explicit type casts.
        postgres_1    | 2022-07-16 05:27:59.437 UTC [77] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 ('C'::TEXT::TEXT::TEXT || NULL::GEOMETRY::GEOMETRY)::TEXT AS col_676613,
        postgres_1    |                 tab_377847.col1_7 AS col_676614,
        postgres_1    |                 'F'::TEXT::TEXT AS col_676615,
        postgres_1    |                 B'0000'::BIT AS col_676616,
        postgres_1    |                 tab_377847.col1_0 AS col_676617,
        postgres_1    |                 NULL::OID AS col_676618
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1
        postgres_1    |                     AS tab_377847
        postgres_1    |         )
        postgres_1    |             AS tab_377848
        postgres_1    |     ORDER BY
        postgres_1    |         col_676613 NULLS FIRST,
        postgres_1    |         col_676614 NULLS FIRST,
        postgres_1    |         col_676615 NULLS FIRST,
        postgres_1    |         col_676616 NULLS FIRST,
        postgres_1    |         col_676617 NULLS FIRST,
        postgres_1    |         col_676618 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.57s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.44s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 REGCLASS NOT NULL, col1_1 BIT(2) NOT NULL, col1_2 UUID NOT NULL, col1_3 INTERVAL NOT NULL, col1_4 BOOL NOT NULL, col1_5 OID NOT NULL, col1_6 DATE NOT NULL, col1_7 TIMESTAMP, col1_8 BOOL, col1_9 BOOL NOT NULL, col1_10 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) VIRTUAL, col1_11 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) STORED, col1_12 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) STORED, col1_13 STRING AS (lower(CAST(col1_5 AS STRING))) STORED, PRIMARY KEY (col1_9, col1_3 ASC, col1_5 ASC, col1_11, col1_1 DESC, col1_10 DESC, col1_0 ASC, col1_2 ASC), INVERTED INDEX (col1_5 ASC, col1_6, col1_8, col1_10 DESC, col1_9 ASC, col1_4, col1_13 gin_trgm_ops ASC), UNIQUE (col1_3, col1_9 DESC, col1_2 DESC, lower(CAST(col1_5 AS STRING)), col1_8 DESC, col1_4 ASC) WHERE (((((table1.col1_8 AND (table1.col1_10 >= e'\'':::STRING)) OR table1.col1_4) AND (NOT table1.col1_9)) OR (table1.col1_11 < '"':::STRING)) OR (table1.col1_6 < '5874897-12-31':::DATE)) OR (table1.col1_12 = e'\U00002603':::STRING), INDEX (col1_9 DESC, col1_2 ASC, (CASE WHEN col1_6 IS NULL THEN '':::STRING ELSE e'\x0f':::STRING END) ASC, col1_11, col1_10 DESC, col1_4 DESC, col1_3 DESC, col1_8, col1_1, (CASE WHEN col1_3 IS NULL THEN e'>)\'G':::STRING ELSE e'EC\x1c[\x16E3#':::STRING END), col1_6, col1_13 ASC) STORING (col1_12), INDEX (col1_2 ASC, col1_11, col1_8 ASC, col1_10 ASC, col1_5 ASC, col1_0 ASC, col1_9 DESC, col1_1, col1_3 ASC, col1_4, col1_13) STORING (col1_7), UNIQUE (col1_3) STORING (col1_4, col1_6, col1_8, col1_12) WHERE ((((table1.col1_6 < '-infinity':::DATE) OR (table1.col1_7 = '0001-01-01 00:00:00':::TIMESTAMP)) AND table1.col1_8) OR (table1.col1_13 != '"':::STRING)) OR (NOT table1.col1_9), FAMILY (col1_9), FAMILY (col1_6, col1_4), FAMILY (col1_7, col1_3, col1_5), FAMILY (col1_11, col1_0, col1_1, col1_12), FAMILY (col1_2, col1_13), FAMILY (col1_8));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 1, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 362819715, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 17, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 277953103, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 15, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 17505597, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 28, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 121455828, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 10, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 462926123, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 21, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 323113349, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000000000, "num_range": 0, "upper_bound": "1638024159"}], "histo_col_type": "OID", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 21, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 69480579, "histo_col_type": "", "name": "__auto__", "null_count": 192831033, "row_count": 500000000}, {"avg_size": 17, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 331886848, "histo_buckets": [{"distinct_range": 0, "num_eq": 4000000, "num_range": 0, "upper_bound": "false"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 8, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 447220615, "histo_buckets": [{"distinct_range": 0, "num_eq": 800000000, "num_range": 0, "upper_bound": "60844a9a-c5bf-4f07-b389-0391d423a729"}, {"distinct_range": 400000000, "num_eq": 5426922615555414597, "num_range": 400000000, "upper_bound": "f4a53929-a96a-4475-ab06-90102f3b5666"}, {"distinct_range": 500000000, "num_eq": 0, "num_range": 500000000, "upper_bound": "ffffffff-ffff-ffff-ffff-ffffffffffff"}], "histo_col_type": "UUID", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 26, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 305719519, "histo_col_type": "", "name": "__auto__", "null_count": 323324033, "row_count": 500000000}, {"avg_size": 24, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 319418171, "histo_buckets": [{"distinct_range": 0, "num_eq": 1000, "num_range": 0, "upper_bound": "-41 years -3 mons -876 days -05:21:11.289393"}, {"distinct_range": 3986959150582039600, "num_eq": 80000000000, "num_range": 4374789687133605161, "upper_bound": "-12 years -10 mons -803 days -14:13:31.361675"}, {"distinct_range": 7118879192277088000, "num_eq": 30000000, "num_range": 7118879192277088752, "upper_bound": "-9 years -4 mons -457 days -18:02:40.106662"}, {"distinct_range": 43132.88564955493, "num_eq": 10, "num_range": 90000, "upper_bound": "-1 years -6 mons -901 days -19:00:03.352611"}, {"distinct_range": 1432656342111861200, "num_eq": 8000000, "num_range": 3246992797839371721, "upper_bound": "23 years 5 mons 210 days 16:36:57.256881"}, {"distinct_range": 0, "num_eq": 30, "num_range": 3860524731840849673, "upper_bound": "29 years 10 mons 107 days 21:02:21.483918"}, {"distinct_range": 4063273837419126300, "num_eq": 100000000, "num_range": 4063273837419126098, "upper_bound": "58 years 8 mons 954 days 05:49:19.675133"}, {"distinct_range": 61692715.43313348, "num_eq": 900000, "num_range": 800000000, "upper_bound": "72 years 10 mons 191 days 16:45:40.399732"}, {"distinct_range": 47340751.895355575, "num_eq": 0, "num_range": 60000000, "upper_bound": "78 years 94 days 13:59:19.609232"}], "histo_col_type": "INTERVAL", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 30, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 226240939, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}, {"avg_size": 26, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 79436052, "histo_col_type": "", "name": "__auto__", "null_count": 353425873, "row_count": 500000000}, {"avg_size": 19, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 187315013, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 500000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 30, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2466, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 20, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 73976, "histo_col_type": "", "name": "__auto__", "null_count": 26510, "row_count": 90000}, {"avg_size": 25, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58375, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 31, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 70512, "histo_col_type": "", "name": "__auto__", "null_count": 39827, "row_count": 90000}, {"avg_size": 28, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 60801, "histo_buckets": [{"distinct_range": 0, "num_eq": 4802826232655684309, "num_range": 0, "upper_bound": "4b723d19-421c-4f5b-8067-58f7da0fd35c"}, {"distinct_range": 6008428.744889982, "num_eq": 7108766326064114658, "num_range": 8000000, "upper_bound": "4d64116a-f7e6-48fe-8742-8c73a626b59a"}, {"distinct_range": 0, "num_eq": 339335084406519792, "num_range": 9145403607539636742, "upper_bound": "57f0dec5-8931-4df8-b6a7-d256b581127f"}, {"distinct_range": 20, "num_eq": 100, "num_range": 20, "upper_bound": "73f4f751-b37c-4c64-b5e5-ea758b48056a"}, {"distinct_range": 200000, "num_eq": 80000000, "num_range": 200000, "upper_bound": "a0a965df-87a0-40bd-96aa-9dbe4a206f22"}], "histo_col_type": "UUID", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 23, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 44637, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 25, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 74308, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 19, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 15692, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 13, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 79387, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 8, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 81722, "histo_buckets": [{"distinct_range": 0, "num_eq": 2925124257523559320, "num_range": 0, "upper_bound": "-68 years -2 mons -114 days -21:17:21.822277"}, {"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "1 day"}], "histo_col_type": "INTERVAL", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 3, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 80799, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 11, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 45550, "histo_col_type": "", "name": "__auto__", "null_count": 76605, "row_count": 90000}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 83671, "histo_buckets": [{"distinct_range": 0, "num_eq": 70000000000, "num_range": 0, "upper_bound": "false"}, {"distinct_range": 4974522011791140000, "num_eq": 10000000, "num_range": 4974522011791140028, "upper_bound": "true"}], "histo_col_type": "BOOL", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 12, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 70715, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (635.82s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ e4cafeb8b1d586d091fb98e3e570650d7eeea294:

        test_1        |             ORDER BY
        test_1        |                 col_195205 NULLS FIRST;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         string_agg(tab_111939.col_195204::STRING, tab_111939.col_195204::STRING ORDER BY tab_111939.col_195204)::STRING
        test_1        |                             AS col_195205
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (('H':::STRING::STRING::STRING || log(2:::DECIMAL::DECIMAL::DECIMAL)::DECIMAL::DECIMAL)::STRING),
        test_1        |                                 ('E':::STRING::STRING),
        test_1        |                                 ('B':::STRING::STRING),
        test_1        |                                 ('F':::STRING::STRING)
        test_1        |                         )
        test_1        |                             AS tab_111939 (col_195204)
        test_1        |                     GROUP BY
        test_1        |                         tab_111939.col_195204
        test_1        |                     ORDER BY
        test_1        |                         tab_111939.col_195204 ASC, tab_111939.col_195204 ASC
        test_1        |                 )
        test_1        |                     AS tab_111940
        test_1        |             ORDER BY
        test_1        |                 col_195205 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.34s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 INTERVAL NOT NULL, col1_1 BOX2D NOT NULL, PRIMARY KEY (col1_0), INDEX (col1_1 DESC), FAMILY (col1_1, col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 5, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2097497755085735657, "histo_buckets": [{"distinct_range": 0, "num_eq": 2954467732913305733, "num_range": 0, "upper_bound": "-60 years -2 mons -934 days -12:10:55.888295"}, {"distinct_range": 0, "num_eq": 4588676734812127975, "num_range": 300, "upper_bound": "-59 years -7 mons -250 days -22:06:17.895645"}, {"distinct_range": 0, "num_eq": 1229798701771614880, "num_range": 10000, "upper_bound": "-38 years -4 mons -84 days -04:53:31.284319"}, {"distinct_range": 152216.29158261055, "num_eq": 1480136009334936355, "num_range": 500000, "upper_bound": "00:00:00"}, {"distinct_range": 0, "num_eq": 6112250865824504946, "num_range": 663795556220164539, "upper_bound": "40 years 4 mons 145 days 00:55:05.937392"}, {"distinct_range": 0, "num_eq": 80000000000, "num_range": 4379920464947937098, "upper_bound": "67 years 1 mon 467 days 17:17:22.005"}], "histo_col_type": "INTERVAL", "name": "__auto__", "null_count": 0, "row_count": 7480217616972803204}, {"avg_size": 21, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2140233758362433303, "histo_buckets": [{"distinct_range": 0, "num_eq": 40000000000, "num_range": 0, "upper_bound": "BOX(-0.8687343400732718 -0.9529674065957057,1.5889127901703413 1.681597802781722)"}, {"distinct_range": 0, "num_eq": 4598212330492219983, "num_range": 40000000000, "upper_bound": "BOX(-0.7639077801073371 1.929682175551554,0.663108779845179 2.008461476752142)"}, {"distinct_range": 0, "num_eq": 5080045041881528985, "num_range": 10000000000, "upper_bound": "BOX(-0.23529953442720394 -0.854809860381179,0.5502384861115384 -0.023039153658162448)"}, {"distinct_range": 4518024358042297000, "num_eq": 500000000, "num_range": 4518024358042296580, "upper_bound": "BOX(-0.18812852066700203 -0.012339081382820138,0.15726256143907522 0.26872951107734333)"}, {"distinct_range": 7414870071469085000, "num_eq": 6902218600604130564, "num_range": 8104668295679264488, "upper_bound": "BOX(0.13940365363032287 -0.7750424071055306,1.7532531925212478 1.811189292090521)"}, {"distinct_range": 0, "num_eq": 100000000, "num_range": 1449814401077795805, "upper_bound": "BOX(0.37825915094395124 -1.0505064065585712,1.243421282304914 -1.012825118844486)"}, {"distinct_range": 0, "num_eq": 0, "num_range": 100, "upper_bound": "BOX(0.47666173862849437 -0.17572511431528615,1.3036211709131755 1.8224757090416426)"}, {"distinct_range": 0, "num_eq": 8399389632912907718, "num_range": 2589435837943949709, "upper_bound": "BOX(0.5302830144282997 0.4386818346820698,0.5854403720747259 0.5619686103103813)"}], "histo_col_type": "BOX2D", "name": "__auto__", "null_count": 0, "row_count": 7480217616972803204}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 15, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1556, "histo_buckets": [{"distinct_range": 0, "num_eq": 7326329692814290373, "num_range": 0, "upper_bound": "BOX(-10 -10,10 10)"}, {"distinct_range": 0, "num_eq": 7554618179142207390, "num_range": 0, "upper_bound": "BOX(-2.6718761135757303 0.45709709718169095,-1.1492804694010657 0.8716937798219506)"}, {"distinct_range": 2644641742794324500, "num_eq": 6177024509705286003, "num_range": 3012872343773737515, "upper_bound": "BOX(-0.2924997701419949 -2.232927355815411,-0.16731125373584607 -0.67212802640082)"}, {"distinct_range": 7186281675888320000, "num_eq": 90000000, "num_range": 7186281675888320123, "upper_bound": "BOX(-0.10435220820759072 0.19676824032823953,0.1657535086454494 0.38507487213886166)"}], "histo_col_type": "BOX2D", "name": "__auto__", "null_count": 0, "row_count": 7000}, {"avg_size": 5, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3284, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (170.97s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ dc382b1ec54b4599cce1f5f50f243723a4286da6:

        postgres_1    |                         (tab_500200.col1_2) = (tab_500201.col1_2) AND (tab_500200.col1_2) = (tab_500201.col1_2)
        postgres_1    |             WHERE
        postgres_1    |                 NULL::GEOMETRY::GEOMETRY NOT IN (NULL::GEOMETRY)
        postgres_1    |         )
        postgres_1    |             AS tab_500203
        postgres_1    |     ORDER BY
        postgres_1    |         col_711559 NULLS FIRST
        postgres_1    | 2022-07-18 05:27:04.895 UTC [78] ERROR:  function overlaps(time with time zone, interval, time with time zone, interval) does not exist at character 196
        postgres_1    | 2022-07-18 05:27:04.895 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-18 05:27:04.895 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 '::4/0'::INET::INET AS col_711617, '2000-01-02'::DATE::DATE AS col_711618, tab_500247.col1_1 AS col_711619
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_500247
        postgres_1    |             WHERE
        postgres_1    |                 overlaps((NULL::TIMETZ::TIMETZ + (NULL::INTERVAL::INTERVAL * (NULL::FLOAT8::FLOAT8 / 3.0::FLOAT8::FLOAT8::FLOAT8)::FLOAT8::FLOAT8)::INTERVAL::INTERVAL)::TIMETZ::TIMETZ, '00:00:08'::INTERVAL::INTERVAL::INTERVAL, NULL::TIMETZ::TIMETZ, age('2000-01-01 07:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ, '2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ)::INTERVAL::INTERVAL)::BOOL
        postgres_1    |             GROUP BY
        postgres_1    |                 tab_500247.col1_3, tab_500247.col1_1, tab_500247.col1_0
        postgres_1    |         )
        postgres_1    |             AS tab_500248
        postgres_1    |     ORDER BY
        postgres_1    |         col_711617 NULLS FIRST, col_711618 NULLS FIRST, col_711619 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.68s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.51s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 FLOAT4 NOT NULL, col1_1 OID, col1_2 BOOL NOT NULL, col1_3 CHAR NOT NULL, col1_4 GEOMETRY NOT NULL, col1_5 INT8 NOT NULL, col1_6 INT4 NOT NULL, col1_7 INET, col1_8 FLOAT4 NULL, col1_9 INT2 NOT NULL, col1_10 TIMESTAMPTZ NOT NULL, col1_11 INT8 NOT NULL AS ((col1_6 + col1_9) + col1_5) VIRTUAL, col1_12 INT8 NOT NULL AS (col1_9 + (-29723):::INT8) VIRTUAL, col1_13 INT8 NOT NULL AS (col1_6 + col1_5) STORED, col1_14 FLOAT8 NOT NULL AS (col1_0 + col1_8) VIRTUAL, col1_15 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) STORED, col1_16 INT8 NOT NULL AS (col1_9 + (-19992):::INT8) VIRTUAL, col1_17 STRING AS (lower(CAST(col1_1 AS STRING))) STORED, PRIMARY KEY (col1_11 ASC, col1_14 DESC, col1_5 DESC, col1_6 ASC, col1_10 ASC, col1_3 ASC, col1_13 ASC), INVERTED INDEX (col1_10 DESC, col1_3 DESC, col1_4) WHERE ((table1.col1_5 <= (-32768):::INT8) OR (table1.col1_10 != '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_9 < 1:::INT8), INDEX (col1_7 DESC, col1_2 DESC, col1_10 ASC, col1_9 ASC, col1_15 DESC, col1_3 DESC, col1_0 DESC, col1_1 ASC, col1_14 ASC, ((col1_6 + col1_9) + col1_5), col1_8 ASC, col1_13 ASC, col1_11 ASC, col1_6) STORING (col1_4, col1_17) WHERE ((table1.col1_12 >= (-9223372036854775807):::INT8) OR (table1.col1_15 != e'\x00':::STRING)) OR (table1.col1_14 < 'NaN':::FLOAT8), UNIQUE (col1_9 ASC, col1_3 DESC, col1_10 DESC) STORING (col1_0, col1_2, col1_4, col1_7) WHERE ((((((table1.col1_9 <= (-1):::INT8) AND (table1.col1_5 = (-128):::INT8)) OR (table1.col1_17 > e'\U00002603':::STRING)) AND (table1.col1_6 >= 127:::INT8)) AND (table1.col1_10 >= '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ)) AND (table1.col1_15 >= 'X':::STRING)) OR (table1.col1_13 >= (-32768):::INT8), INDEX (col1_9 DESC, col1_8 ASC, col1_5, col1_13 ASC, col1_17, col1_3 DESC, col1_7, col1_6 ASC), UNIQUE (((col1_6 + col1_5) + col1_9), col1_3) STORING (col1_4, col1_8, col1_9) WHERE ((((table1.col1_6 > 127:::INT8) OR (NOT table1.col1_2)) OR (table1.col1_16 != (-1):::INT8)) OR (table1.col1_13 < 1:::INT8)) AND (table1.col1_17 = 'X':::STRING), FAMILY (col1_4, col1_10), FAMILY (col1_8, col1_0), FAMILY (col1_17, col1_3), FAMILY (col1_13, col1_9), FAMILY (col1_15, col1_1), FAMILY (col1_5), FAMILY (col1_2, col1_6), FAMILY (col1_7));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 29, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2433379525478830449, "histo_col_type": "", "name": "__auto__", "null_count": 3667547564838997478, "row_count": 5594847674813899779}, {"avg_size": 11, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1903527042816940999, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 30, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4334249757721996769, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 3, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1279764485062221749, "histo_buckets": [{"distinct_range": 0, "num_eq": 6000000, "num_range": 0, "upper_bound": "-7788440038125132145"}, {"distinct_range": 8000000000, "num_eq": 3060691383517733204, "num_range": 8000000000, "upper_bound": "-7744656113115776872"}, {"distinct_range": 0, "num_eq": 7723360777529346635, "num_range": 2453307722514687732, "upper_bound": "-1423842418799150937"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 18, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4122594044723779256, "histo_col_type": "", "name": "__auto__", "null_count": 2723827027194364932, "row_count": 5594847674813899779}, {"avg_size": 25, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2303665709252419223, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 17, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2269831823010968288, "histo_col_type": "", "name": "__auto__", "null_count": 2329626279353934366, "row_count": 5594847674813899779}, {"avg_size": 6, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4347175642193641681, "histo_buckets": [{"distinct_range": 0, "num_eq": 20000000, "num_range": 0, "upper_bound": "-26891"}, {"distinct_range": 8963458996841838000, "num_eq": 3986559284217195340, "num_range": 8963458996841838057, "upper_bound": "11666"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 1, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2195053360561628978, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 21, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3760787101878351958, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2081262085035787909, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 16, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 328553965237097695, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 9, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2496074805520530749, "histo_buckets": [{"distinct_range": 0, "num_eq": 100, "num_range": 0, "upper_bound": "1.164.187.178/20"}], "histo_col_type": "INET", "name": "__auto__", "null_count": 5058031678079913728, "row_count": 5594847674813899779}, {"avg_size": 27, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2083021380627478323, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 1, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3147638654534988604, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 3, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 628431913584468088, "histo_buckets": [{"distinct_range": 0, "num_eq": 3000000000, "num_range": 0, "upper_bound": "1977-03-30 21:19:11.000139+00:00"}, {"distinct_range": 500000000, "num_eq": 10, "num_range": 500000000, "upper_bound": "2016-01-13 23:45:10.000412+00:00"}, {"distinct_range": 2209277006389273900, "num_eq": 5000000, "num_range": 3299915402863082458, "upper_bound": "2025-04-25 16:36:23.00095+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 5, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2662261358789005464, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}, {"avg_size": 13, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3807508750725657872, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 5594847674813899779}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 16, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 92, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 20, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 863, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 28, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 485, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 9, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 630, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 25, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 399, "histo_col_type": "", "name": "__auto__", "null_count": 42, "row_count": 1000}, {"avg_size": 26, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 762, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 18, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 208, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 25, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 24, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 55, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 24, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 129, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 15, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 193, "histo_col_type": "", "name": "__auto__", "null_count": 967, "row_count": 1000}, {"avg_size": 29, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 549, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000, "num_range": 0, "upper_bound": "-17901"}, {"distinct_range": 141682381466687250, "num_eq": 4664086479157709396, "num_range": 1937175333488125273, "upper_bound": "-4440"}, {"distinct_range": 0, "num_eq": 40000000000, "num_range": 30000000, "upper_bound": "-2828"}, {"distinct_range": 48017746644621610, "num_eq": 80000, "num_range": 48017746644621606, "upper_bound": "1668"}, {"distinct_range": 0, "num_eq": 90, "num_range": 7771162554989019110, "upper_bound": "12047"}, {"distinct_range": 10000000, "num_eq": 1000000000, "num_range": 10000000, "upper_bound": "12880"}, {"distinct_range": 429370189508590700, "num_eq": 70000, "num_range": 1582060405431214242, "upper_bound": "18532"}, {"distinct_range": 8280305514129211000, "num_eq": 800000, "num_range": 8280305514129211747, "upper_bound": "18582"}, {"distinct_range": 0, "num_eq": 8796751486813696424, "num_range": 3000000000, "upper_bound": "27195"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 24, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 910, "histo_buckets": [{"distinct_range": 0, "num_eq": 2536112035768225296, "num_range": 0, "upper_bound": "-6310727676680784578"}, {"distinct_range": 3880738349233288700, "num_eq": 47001132426462717, "num_range": 8389713868502827798, "upper_bound": "-4431284795606597175"}, {"distinct_range": 0, "num_eq": 3706627585952306000, "num_range": 400, "upper_bound": "-4110044783078122200"}, {"distinct_range": 533402646162841100, "num_eq": 4928125684936407927, "num_range": 748719315028672684, "upper_bound": "2679901597037845510"}, {"distinct_range": 4983544790168217000, "num_eq": 1000000, "num_range": 4983544790168216836, "upper_bound": "2834569380742003262"}, {"distinct_range": 14495960363454236, "num_eq": 7798500518568205665, "num_range": 14495960363454236, "upper_bound": "3936968442303351462"}, {"distinct_range": 1647729732256053500, "num_eq": 90000000000, "num_range": 1647729732256053490, "upper_bound": "6934120494730178682"}, {"distinct_range": 2106570015603957000, "num_eq": 5588312341016884549, "num_range": 3530862804584401466, "upper_bound": "8801836348541132607"}, {"distinct_range": 40.22275027009337, "num_eq": 3000, "num_range": 300, "upper_bound": "9138217387637557757"}], "histo_col_type": "INT8", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 14, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 809, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 16, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 270, "histo_buckets": [{"distinct_range": 0, "num_eq": 1555660780674173490, "num_range": 0, "upper_bound": "0.0.0.0/0"}, {"distinct_range": 50000000, "num_eq": 9000, "num_range": 50000000, "upper_bound": "44.171.21.50/7"}, {"distinct_range": 9587144221.225555, "num_eq": 8491752261182616906, "num_range": 30000000000, "upper_bound": "19.230.180.130/24"}, {"distinct_range": 0, "num_eq": 2390805753278566417, "num_range": 70000000000, "upper_bound": "7d35:b64a:20b5:ff2b:66e9:1e33:f416:ff71/4"}, {"distinct_range": 30000, "num_eq": 300000000, "num_range": 30000, "upper_bound": "9e32:2e5d:d49b:cd1b:f30a:7fac:c941:3804/38"}, {"distinct_range": 2988272159727886000, "num_eq": 1929630786792039062, "num_range": 4277792562917991536, "upper_bound": "f583:d21:580b:4fde:491d:717b:7a0e:f27/65"}, {"distinct_range": 6940342765716968000, "num_eq": 80000, "num_range": 6940342765716968596, "upper_bound": "590e:39b0:3836:be3e:ea1c:749a:9b60:5ad4/126"}], "histo_col_type": "INET", "name": "__auto__", "null_count": 840, "row_count": 1000}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 820, "histo_buckets": [{"distinct_range": 0, "num_eq": 1169446807981387870, "num_range": 0, "upper_bound": "1972-05-20 11:56:27.000491+00:00"}, {"distinct_range": 14.733141000853436, "num_eq": 6347166008113786718, "num_range": 20, "upper_bound": "1986-11-28 18:29:06.000621+00:00"}, {"distinct_range": 5251398881377593000, "num_eq": 1877924642615836713, "num_range": 7575492662839322106, "upper_bound": "2009-08-04 13:29:42.000954+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 11, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 728, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1000}, {"avg_size": 20, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 645, "histo_col_type": "", "name": "__auto__", "null_count": 312, "row_count": 1000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (632.58s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 3dcf715f37595a73e8504b5331493f75207c6524:

        postgres_1    |                 tab_239215.col2_4 AS col_409138,
        postgres_1    |                 'G'::TEXT::TEXT AS col_409139,
        postgres_1    |                 tab_239213.col2_7 AS col_409140
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_239213,
        postgres_1    |                 postgres.public.table3 AS tab_239214,
        postgres_1    |                 postgres.public.table2 AS tab_239215
        postgres_1    |             WHERE
        postgres_1    |                 (tab_239214.col3_1 AND false::BOOL)
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_239213.col2_0 DESC, tab_239213.tableoid ASC
        postgres_1    |         )
        postgres_1    |             AS tab_239216
        postgres_1    |     ORDER BY
        postgres_1    |         col_409126 NULLS FIRST,
        postgres_1    |         col_409127 NULLS FIRST,
        postgres_1    |         col_409128 NULLS FIRST,
        postgres_1    |         col_409129 NULLS FIRST,
        postgres_1    |         col_409130 NULLS FIRST,
        postgres_1    |         col_409131 NULLS FIRST,
        postgres_1    |         col_409132 NULLS FIRST,
        postgres_1    |         col_409133 NULLS FIRST,
        postgres_1    |         col_409134 NULLS FIRST,
        postgres_1    |         col_409135 NULLS FIRST,
        postgres_1    |         col_409136 NULLS FIRST,
        postgres_1    |         col_409137 NULLS FIRST,
        postgres_1    |         col_409138 NULLS FIRST,
        postgres_1    |         col_409139 NULLS FIRST,
        postgres_1    |         col_409140 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.16s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.13s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 FLOAT4 NOT NULL, col1_1 INET, col1_2 GEOMETRY NOT NULL, col1_3 FLOAT8 NULL, col1_4 OID NULL, col1_5 INT8 NULL, col1_6 BIT(34) NOT NULL, col1_7 TIMESTAMP[] NOT NULL, col1_8 INT2 NOT NULL, col1_9 JSONB NOT NULL, col1_10 REGCLASS NULL, col1_11 INT2 NOT NULL, col1_12 TIMESTAMPTZ NOT NULL, col1_13 VARCHAR NULL, col1_14 TIME NULL, col1_15 TIMESTAMPTZ NOT NULL, col1_16 INT2 NULL, UNIQUE (col1_12 DESC, col1_10, col1_8) WHERE (((table1.col1_15 = '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ) OR (table1.col1_16 >= (-1):::INT8)) OR (table1.col1_5 < 32767:::INT8)) OR (table1.col1_11 >= 0:::INT8), UNIQUE (col1_5, col1_0 DESC, col1_16, col1_14 ASC) PARTITION BY LIST (col1_5, col1_0, col1_16, col1_14) (PARTITION table1_part_0 VALUES IN (((-3720488776423301362):::INT8, 0.934955894947052:::FLOAT8, (-1659):::INT8, '02:51:52.487939':::TIME), (372259160586900758:::INT8, (-0.929036021232605):::FLOAT8, 1:::INT8, '02:35:33.991117':::TIME), ((-4793144617036369557):::INT8, 1.354378342628479:::FLOAT8, (-2337):::INT8, '00:00:00':::TIME), (8153137290858311849:::INT8, (-0.5723002552986145):::FLOAT8, 1:::INT8, '06:20:53.247241':::TIME), (NULL, 0.0:::FLOAT8, 1:::INT8, '16:09:54.792769':::TIME)), PARTITION table1_part_1 VALUES IN (((-32768):::INT8, 0.04358655959367752:::FLOAT8, (-6061):::INT8, '06:10:46.95218':::TIME), (1787238879483464455:::INT8, (-0.800542414188385):::FLOAT8, (-32300):::INT8, '10:23:56.65014':::TIME), ((-7000793949259563578):::INT8, 0.05010773241519928:::FLOAT8, NULL, '07:22:35.655378':::TIME), ((-4065259574663591136):::INT8, (-0.3757012188434601):::FLOAT8, (-1709):::INT8, '14:14:55.201687':::TIME), (4312203489492247391:::INT8, 0.5115355849266052:::FLOAT8, (-6051):::INT8, '01:35:49.126882':::TIME)), PARTITION "DEFAULT" VALUES IN ((DEFAULT, DEFAULT, DEFAULT, DEFAULT))), INVERTED INDEX (col1_4 ASC, col1_8, col1_13 gin_trgm_ops ASC) WHERE (((((((((table1.col1_16 > (-1):::INT8) OR (table1.col1_14 >= '24:00:00':::TIME)) OR (table1.col1_3 <= '-Inf':::FLOAT8)) OR (table1.col1_0 < (-1.0):::FLOAT8)) AND (table1.col1_8 = (-32768):::INT8)) OR (table1.col1_13 != '':::STRING)) AND (table1.col1_15 <= '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_12 = '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_5 != 0:::INT8)) OR (table1.col1_11 = (-32768):::INT8), UNIQUE (col1_6 ASC, (CASE WHEN col1_12 IS NULL THEN '':::STRING ELSE 'X':::STRING END) ASC, col1_3, (col1_0 + col1_3) ASC, col1_12 DESC, col1_1) STORING (col1_0, col1_5, col1_9, col1_15, col1_16))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=99b43d81-eeae-491c-9f19-68e8633310f7 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (632.06s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ b77d49e1aa199014c520a652624e801eb28893c5:

        postgres_1    |                 tab_426002.col1_0 DESC, tab_426002.col1_12 ASC
        postgres_1    |         )
        postgres_1    |             AS tab_426004
        postgres_1    |     ORDER BY
        postgres_1    |         col_845916 NULLS FIRST, col_845917 NULLS FIRST
        postgres_1    | 2022-07-20 05:27:51.716 UTC [78] ERROR:  function st_geogfromgeojson(text) does not exist at character 31
        postgres_1    | 2022-07-20 05:27:51.716 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-20 05:27:51.716 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 st_geogfromgeojson(tab_426226.col1_5::TEXT)::GEOGRAPHY AS col_846320,
        postgres_1    |                 'G'::TEXT::CHAR AS col_846321,
        postgres_1    |                 '\x44'::BYTEA::BYTEA AS col_846322
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table1 AS tab_426226
        postgres_1    |             WHERE
        postgres_1    |                 false::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_426226.col1_5 ASC
        postgres_1    |         )
        postgres_1    |             AS tab_426227
        postgres_1    |     ORDER BY
        postgres_1    |         col_846320 NULLS FIRST, col_846321 NULLS FIRST, col_846322 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.36s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.37s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 FLOAT8 NOT NULL, col1_1 TIME NOT NULL, col1_2 INET NOT NULL, col1_3 INET NOT NULL, col1_4 REGCLASS, col1_5 REGROLE NOT NULL, col1_6 STRING NOT NULL AS (lower(CAST(col1_3 AS STRING))) VIRTUAL, col1_7 FLOAT8 NOT NULL AS (col1_0 + 3.1073157772542572:::FLOAT8) STORED, col1_8 STRING AS (CASE WHEN col1_4 IS NULL THEN '':::STRING ELSE e'\x15d':::STRING END) STORED, PRIMARY KEY (col1_2, col1_3, col1_7 ASC, col1_5 DESC), UNIQUE (lower(CAST(col1_1 AS STRING)) ASC, col1_7, col1_0 ASC) WHERE ((((table1.col1_0 != 1.401298464324817e-45:::FLOAT8) OR (table1.col1_8 <= e'\x00':::STRING)) OR (table1.col1_6 <= '"':::STRING)) AND (table1.col1_1 != '24:00:00':::TIME)) OR (table1.col1_7 >= 0.0:::FLOAT8), UNIQUE (col1_8 DESC, col1_2, (CASE WHEN col1_4 IS NULL THEN '[2;id;4;':::STRING ELSE '':::STRING END), col1_3 ASC, col1_5 ASC, col1_0, col1_6 DESC, col1_1 DESC) STORING (col1_4) WHERE (((table1.col1_8 < 'X':::STRING) OR (table1.col1_7 > 1.0:::FLOAT8)) AND (table1.col1_6 <= e'\U00002603':::STRING)) AND (table1.col1_1 < '24:00:00':::TIME), UNIQUE (col1_4 ASC, col1_0) WHERE (((table1.col1_6 <= '"':::STRING) AND (table1.col1_8 = e'\U00002603':::STRING)) OR (table1.col1_1 <= '24:00:00':::TIME)) AND (table1.col1_0 = '-Inf':::FLOAT8), FAMILY (col1_4, col1_0), FAMILY (col1_1), FAMILY (col1_3, col1_5), FAMILY (col1_2, col1_7), FAMILY (col1_8));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 16, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1992719531, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 3, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2584034297, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 25, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1342456037, "histo_buckets": [{"distinct_range": 0, "num_eq": 5626344595143008703, "num_range": 0, "upper_bound": ""}, {"distinct_range": 3.4443292917692485, "num_eq": 210683432706545238, "num_range": 20, "upper_bound": ")X|\\u0008=gYK\\n"}, {"distinct_range": 5010488722429155000, "num_eq": 7531562900464764824, "num_range": 8006604540079084210, "upper_bound": ">o"}, {"distinct_range": 2298673560050352600, "num_eq": 7731504869902039189, "num_range": 5903604691821772608, "upper_bound": "DL\\u0002Jf"}, {"distinct_range": 5000, "num_eq": 900, "num_range": 5000, "upper_bound": "XSo8a"}, {"distinct_range": 137874054889759580, "num_eq": 186070694569879301, "num_range": 611209481786075276, "upper_bound": "]yT\\u001ed%(DM"}, {"distinct_range": 1000000, "num_eq": 70000, "num_range": 1000000, "upper_bound": "f\\t\\u0012\\u0012t\\u001d"}, {"distinct_range": 0, "num_eq": 20000000, "num_range": 7204164958282827101, "upper_bound": "k9"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 2727242384, "row_count": 3000000000}, {"avg_size": 6, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 41162101, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 29, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 973187973, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 4, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 433676912, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 12, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1747123046, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 5, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 396285297, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 3000000000}, {"avg_size": 27, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 479268292, "histo_buckets": [{"distinct_range": 0, "num_eq": 1776613785217021426, "num_range": 0, "upper_bound": "0"}, {"distinct_range": 0, "num_eq": 20, "num_range": 80, "upper_bound": "4098828021"}], "histo_col_type": "REGCLASS", "name": "__auto__", "null_count": 2794473104, "row_count": 3000000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 27, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 49927, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 23, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 25520, "histo_buckets": [{"distinct_range": 0, "num_eq": 5819604274028712840, "num_range": 0, "upper_bound": "246.14.239.139/9"}, {"distinct_range": 125953.10224633443, "num_eq": 2308687642263752392, "num_range": 900000, "upper_bound": "b6af:58f5:3a33:ad6f:81c4:cd62:d416:e55/31"}], "histo_col_type": "INET", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 24, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 30120, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 17, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 28122, "histo_col_type": "", "name": "__auto__", "null_count": 307, "row_count": 50000}, {"avg_size": 2, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 16269, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 21, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 24235, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 11, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 20282, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 2, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4785, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 50000}, {"avg_size": 2, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 19386, "histo_buckets": [{"distinct_range": 0, "num_eq": 60, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 8000000000, "num_range": 2010825836078719591, "upper_bound": "\\u0002\\u0003"}, {"distinct_range": 8743108.448633807, "num_eq": 0, "num_range": 100000000, "upper_bound": "~,Tw!t"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 27775, "row_count": 50000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (638.35s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 457d724622e4fa2e62d6f4e7926509dbc7d18511:

        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         ('E':::STRING::STRING::STRING || ('2000-01-01 05:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ - '00:00:01':::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ)::STRING
        test_1        |                             AS col_264311,
        test_1        |                         B'0101'::BIT(37) AS col_264312
        test_1        |                 )
        test_1        |                     AS tab_150883
        test_1        |             ORDER BY
        test_1        |                 col_264311 NULLS FIRST, col_264312 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         ('E'::TEXT::TEXT::TEXT || ('2000-01-01 05:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ - '00:00:01'::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ)::TEXT
        test_1        |                             AS col_264311,
        test_1        |                         B'0101'::BIT(37) AS col_264312
        test_1        |                 )
        test_1        |                     AS tab_150883
        test_1        |             ORDER BY
        test_1        |                 col_264311 NULLS FIRST, col_264312 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.31s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 VARCHAR, col1_1 FLOAT4 NOT NULL, UNIQUE (col1_0 DESC, col1_1 DESC) WHERE (table1.col1_1 != 1.401298464324817e-45:::FLOAT8) AND (table1.col1_0 >= '"':::STRING), UNIQUE (lower(col1_0) DESC) STORING (col1_0), UNIQUE (col1_1 ASC, col1_0) WHERE (table1.col1_1 <= 'NaN':::FLOAT8) OR (table1.col1_0 = 'X':::STRING), INDEX (col1_0 DESC, col1_1 DESC), UNIQUE (col1_1 ASC) STORING (col1_0) WHERE (table1.col1_0 <= e'\U00002603':::STRING) AND (table1.col1_1 > 'NaN':::FLOAT8), FAMILY (col1_1), FAMILY (col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 22, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 735648588882836175, "histo_buckets": [{"distinct_range": 0, "num_eq": 50, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 4150444135809491684, "num_range": 100000000, "upper_bound": "\\u001b#q"}, {"distinct_range": 20, "num_eq": 900, "num_range": 20, "upper_bound": "\'"}], "histo_col_type": "VARCHAR", "name": "__auto__", "null_count": 2990365904826957233, "row_count": 3244795957460142923}, {"avg_size": 14, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1493255321904084330, "histo_col_type": "FLOAT4", "name": "__auto__", "null_count": 0, "row_count": 3244795957460142923}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 6, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 225104, "histo_buckets": [{"distinct_range": 0, "num_eq": 6426397420510572936, "num_range": 0, "upper_bound": ""}, {"distinct_range": 2088148967860190000, "num_eq": 80000000, "num_range": 2088148967860190005, "upper_bound": "EE3QC3!"}], "histo_col_type": "VARCHAR", "name": "__auto__", "null_count": 184729, "row_count": 400000}, {"avg_size": 31, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 153687, "histo_buckets": [{"distinct_range": 0, "num_eq": 1088012630994166107, "num_range": 0, "upper_bound": "-2.3998782634735107"}, {"distinct_range": 0, "num_eq": 30, "num_range": 8735177987086019097, "upper_bound": "-1.3683083057403564"}, {"distinct_range": 300000000, "num_eq": 7179301818988649162, "num_range": 300000000, "upper_bound": "-0.8914995789527893"}, {"distinct_range": 1000000, "num_eq": 635079222462662422, "num_range": 1000000, "upper_bound": "-0.7002972364425659"}, {"distinct_range": 55580972378305720, "num_eq": 6000000, "num_range": 121324353744360574, "upper_bound": "-0.11626393347978592"}, {"distinct_range": 400000000, "num_eq": 400000, "num_range": 400000000, "upper_bound": "-0.027600454166531563"}, {"distinct_range": 0, "num_eq": 900000, "num_range": 8188245827775720694, "upper_bound": "0.08716454356908798"}, {"distinct_range": 0, "num_eq": 20000, "num_range": 9066172783821314145, "upper_bound": "0.10234720259904861"}, {"distinct_range": 4681037995217064000, "num_eq": 8384038789811756462, "num_range": 4681037995217063803, "upper_bound": "1.3315454721450806"}], "histo_col_type": "FLOAT4", "name": "__auto__", "null_count": 0, "row_count": 400000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (243.38s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ fafc3330130a016a881592d0337ec48d9ce43b61:

        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 4::OID::OID AS col_415744,
        postgres_1    |                 tab_223502.col2_3 AS col_415745,
        postgres_1    |                 '\x45'::BYTEA::BYTEA AS col_415746,
        postgres_1    |                 tab_223502.col2_4 AS col_415747,
        postgres_1    |                 tab_223502.col2_5 AS col_415748,
        postgres_1    |                 tab_223502.col2_6 AS col_415749,
        postgres_1    |                 st_geometryfromtext('E'::TEXT::TEXT::TEXT)::GEOMETRY AS col_415750,
        postgres_1    |                 0::INT8::INT2 AS col_415751
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_223502
        postgres_1    |         )
        postgres_1    |             AS tab_223503
        postgres_1    |     ORDER BY
        postgres_1    |         col_415744 NULLS FIRST,
        postgres_1    |         col_415745 NULLS FIRST,
        postgres_1    |         col_415746 NULLS FIRST,
        postgres_1    |         col_415747 NULLS FIRST,
        postgres_1    |         col_415748 NULLS FIRST,
        postgres_1    |         col_415749 NULLS FIRST,
        postgres_1    |         col_415750 NULLS FIRST,
        postgres_1    |         col_415751 NULLS FIRST
        test_1        | --- FAIL: TestCompare (1210.59s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.29s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 TIMESTAMPTZ NOT NULL, col1_1 CHAR NOT NULL, col1_2 REGNAMESPACE NOT NULL, col1_3 REGNAMESPACE NOT NULL, col1_4 DECIMAL NOT NULL, col1_5 TIME NOT NULL, col1_6 CHAR NOT NULL, col1_7 OID NULL, col1_8 INT4 NOT NULL, col1_9 BYTES NOT NULL, col1_10 OID NOT NULL, PRIMARY KEY (col1_0 DESC, col1_8 ASC, col1_6, col1_3 DESC, col1_1 ASC, col1_10, col1_4, col1_2 ASC, col1_5, col1_9 ASC), INDEX (col1_2, col1_9, col1_3 ASC, col1_0, col1_7) WHERE (table1.col1_1 > 'X':::STRING) AND (table1.col1_4 >= (-1.234E+401):::DECIMAL), FAMILY (col1_6), FAMILY (col1_1), FAMILY (col1_5), FAMILY (col1_8), FAMILY (col1_9, col1_4, col1_0, col1_2, col1_7, col1_3, col1_10));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 242, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 23, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 361, "histo_buckets": [{"distinct_range": 0, "num_eq": 300, "num_range": 0, "upper_bound": "0"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 27, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 386, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 30, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 615, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 20, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 384, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 4, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 263, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 5, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 173, "histo_col_type": "", "name": "__auto__", "null_count": 584, "row_count": 700}, {"avg_size": 29, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 300, "histo_buckets": [{"distinct_range": 0, "num_eq": 2546733381212932245, "num_range": 0, "upper_bound": "-4713-11-24 00:00:00+00:00"}, {"distinct_range": 2907346903695850500, "num_eq": 3382105911487030879, "num_range": 4705651596845265358, "upper_bound": "1986-01-06 00:11:39.000111+00:00"}, {"distinct_range": 1207698639.9142375, "num_eq": 913775552467523452, "num_range": 2000000000, "upper_bound": "1987-10-22 12:35:21.000922+00:00"}, {"distinct_range": 0, "num_eq": 696142738124026619, "num_range": 400000000, "upper_bound": "1990-05-08 16:44:49.000773+00:00"}, {"distinct_range": 8190124544125483000, "num_eq": 4699364888001607101, "num_range": 8190124544125483341, "upper_bound": "2005-03-10 08:55:09.000706+00:00"}, {"distinct_range": 27.440105734271654, "num_eq": 8000000000, "num_range": 60, "upper_bound": "2014-03-08 16:01:16.000102+00:00"}, {"distinct_range": 0, "num_eq": 1423969748617961523, "num_range": 288979251887544519, "upper_bound": "2018-05-05 18:29:02.0002+00:00"}, {"distinct_range": 7000000, "num_eq": 1000000, "num_range": 7000000, "upper_bound": "2029-05-15 00:12:53.000868+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 25, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 246, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 28, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 671, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}, {"avg_size": 3, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 196, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 700}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 5, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 145, "histo_buckets": [{"distinct_range": 0, "num_eq": 324177569751624246, "num_range": 0, "upper_bound": "1999-07-31 12:10:13.000155+00:00"}, {"distinct_range": 0, "num_eq": 0, "num_range": 3007014786736839950, "upper_bound": "2002-01-17 01:57:04.000549+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 23, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 235, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 18, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 232, "histo_buckets": [{"distinct_range": 0, "num_eq": 9000000000, "num_range": 0, "upper_bound": "259785883"}, {"distinct_range": 3958650498725877000, "num_eq": 400000, "num_range": 5816174801452874557, "upper_bound": "1310391841"}, {"distinct_range": 10, "num_eq": 10000, "num_range": 10, "upper_bound": "1939294534"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 1, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 89, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 24, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 202, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 25, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 235, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 4, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 196, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 24, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 33, "histo_col_type": "", "name": "__auto__", "null_count": 120, "row_count": 300}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 192, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 21, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 72, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 70, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 300}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach1_1 ... done
        Stopping compare_cockroach2_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (1232.78s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 8fd5b3500796fae41c07fffd4246648b349b6460:

        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (SELECT 7::DECIMAL::DECIMAL AS col_673339, NULL::VOID AS col_673340) AS tab_437258
        postgres_1    |     ORDER BY
        postgres_1    |         col_673339 NULLS FIRST, col_673340 NULLS FIRST
        postgres_1    | 2022-07-23 05:28:32.420 UTC [78] ERROR:  function sum_int(integer) does not exist at character 31
        postgres_1    | 2022-07-23 05:28:32.420 UTC [78] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
        postgres_1    | 2022-07-23 05:28:32.420 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 sum_int(tab_437306.col3_10::INT4)::INT8 AS col_673422, bit_and(tab_437306.col3_10::INT4)::INT8 AS col_673423
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table3
        postgres_1    |                     AS tab_437306
        postgres_1    |             WHERE
        postgres_1    |                 false::BOOL
        postgres_1    |             GROUP BY
        postgres_1    |                 tab_437306.col3_10, tab_437306.col3_9
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_437306.col3_9
        postgres_1    |         )
        postgres_1    |             AS tab_437307
        postgres_1    |     ORDER BY
        postgres_1    |         col_673422 NULLS FIRST, col_673423 NULLS FIRST
        postgres_1    | 2022-07-23 05:28:32.552 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-23 05:28:32.552 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-23 05:28:32.552 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_673588) AS tab_437398 ORDER BY col_673588 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.57s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.22s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BIT(13) NOT NULL, col1_1 BIT NOT NULL, col1_2 REGPROCEDURE, col1_3 BIT(48) NOT NULL, col1_4 TIME NULL, col1_5 REGPROC NULL, col1_6 STRING NULL, col1_7 INT4, col1_8 REGCLASS NULL, col1_9 STRING NOT NULL AS (CASE WHEN col1_5 IS NULL THEN e'j\x02Y?\x1aj``0B':::STRING ELSE e'\x144':::STRING END) STORED, col1_10 STRING NULL AS (CASE WHEN col1_5 IS NULL THEN NULL ELSE NULL END) STORED, col1_11 STRING NOT NULL AS (lower(CAST(col1_3 AS STRING))) VIRTUAL, PRIMARY KEY (col1_9 DESC, col1_11 ASC), INDEX (col1_11 ASC, col1_2 ASC, col1_0 DESC, col1_8 DESC, col1_9 DESC, col1_6 ASC) STORING (col1_4, col1_5, col1_7, col1_10), UNIQUE (col1_9 DESC, col1_3, col1_0, col1_7 DESC, col1_6, col1_11 ASC, col1_5 DESC, col1_8 DESC, col1_4 DESC, col1_10 ASC), UNIQUE (col1_0, col1_3 ASC, col1_11 DESC, col1_4 ASC, col1_2 ASC, col1_6 ASC, col1_7) STORING (col1_1), INDEX (lower(CAST(col1_0 AS STRING)), col1_3 ASC, col1_10 DESC, col1_8 DESC, col1_0 DESC, col1_2 DESC, col1_5 DESC, col1_6, col1_7 ASC, col1_4, col1_11 DESC), UNIQUE (col1_0 DESC, col1_8, col1_2 DESC, col1_5 DESC, col1_3 ASC) WHERE (((((table1.col1_11 <= e'\x00':::STRING) AND (table1.col1_9 > '"':::STRING)) AND (table1.col1_4 = '00:00:00':::TIME)) OR (table1.col1_10 = e'\x00':::STRING)) OR (table1.col1_6 >= e'\U00002603':::STRING)) OR (table1.col1_7 >= 127:::INT8), UNIQUE (col1_4 DESC, col1_6 ASC, col1_10, col1_1, col1_3 ASC, col1_8, col1_2, col1_9, col1_11 ASC, col1_5 DESC, col1_0) STORING (col1_7) PARTITION BY LIST (col1_4, col1_6, col1_10, col1_1, col1_3, col1_8, col1_2, col1_9) (PARTITION table1_part_0 VALUES IN (('00:28:28.640118':::TIME, NULL, 'X':::STRING, B'1', B'100100010101011100111001110000011010111100010001', 1741827554:::OID, 1623300884:::OID, e'h\x183H_Ng%h':::STRING), ('09:55:44.055044':::TIME, e'\nNQ':::STRING, NULL, B'0', B'001101100100101110100111000010100010110110010010', 0:::OID, 3855613949:::OID, e'\x14\x1f?D ]Ol':::STRING), ('00:48:12.874845':::TIME, e'@S+E\x05':::STRING, e'I^\x02kU':::STRING, B'1', B'000100101100111100001110011110101110010011100110', 2230478799:::OID, 1134873981:::OID, e'i3\x01\x1dP':::STRING), ('00:00:00':::TIME, e'|w\x04y\x14':::STRING, NULL, B'0', B'011100100111010110010101100111111101011010110110', 0:::OID, 3342358031:::OID, e'``\x07:p':::STRING)), PARTITION table1_part_1 VALUES IN ((NULL, e'8\x0b\x14':::STRING, e'?pwm7\t\x1e\x17':::STRING, B'1', B'011010100011100100010101000100010010010011101110', 1337174427:::OID, 4025420210:::OID, e'\x1e``sxqr8':::STRING), ('08:18:25.956932':::TIME, e'\x02\x18>':::STRING, e'\b*\x157\x10':::STRING, B'1', B'011101010100011000110001010100111110011101010010', 3215506708:::OID, 0:::OID, 'g/+2btX~_':::STRING), ('10:42:43.728111':::TIME, NULL, e'\'':::STRING, B'0', B'011011010001101001001011110101010001100001100010', NULL, 2468953144:::OID, e'\x1d@\b\x1a':::STRING), ('12:07:47.716852':::TIME, 'o!':::STRING, NULL, B'0', B'001011100111111010001100011110100000001001010111', 4286095541:::OID, 3324655255:::OID, e'\x1b++nZ':::STRING)), PARTITION table1_part_2 VALUES IN (('11:57:11.018901':::TIME, e'\x018b~L8s-0':::STRING, ']kC':::STRING, B'0', B'100011100100011000111100010111011110101110011101', 2586775791:::OID, 400044656:::OID, 'q/fNk?F``':::STRING), ('13:23:48.917369':::TIME, e'x4t@\x0fv':::STRING, e'"\x14W\x06':::STRING, B'0', B'001000000001100100011111100111100011000001010000', 3912279379:::OID, 2662952507:::OID, e'f=}B\x18\x11\x1d':::STRING), ('17:38:04.096577':::TIME, '#':::STRING, 'oaG@':::STRING, B'0', B'011110101110000001100110100010110000010010011100', 87911232:::OID, 2778856417:::OID, 'RNC':::STRING), ('19:51:37.155365':::TIME, e'\t\x03\x13glpVT':::STRING, e'\x18Gf/%1i':::STRING, B'0', B'111100010000110010010101100111001100101000000101', 400403829:::OID, 666021109:::OID, e'2Ly\x07\nOY8\x7f':::STRING)), PARTITION table1_part_3 VALUES IN (('20:44:16.368382':::TIME, e'\x04>+*6x':::STRING, e'_M\x12"':::STRING, B'0', B'100011110111011101000100100100100000001110001001', 3521680443:::OID, 3802332420:::OID, '1&':::STRING), ('09:31:23.277028':::TIME, e'MzUk\x10':::STRING, '':::STRING, B'1', B'100100001011110100111101010001011100000111111111', 3794857133:::OID, 1990820846:::OID, e'\x00':::STRING), ('17:31:28.854829':::TIME, e'"}u\x07c\x05\r':::STRING, 'j':::STRING, B'0', B'100010110101101001000001000001001111110001011001', 3714119001:::OID, 843398513:::OID, '':::STRING), ('12:58:52.478748':::TIME, e'"\nK':::STRING, e'\x0eo~-':::STRING, B'1', B'110001100010010101000101011010100000011001011011', 1195277365:::OID, 3196729309:::OID, '':::STRING)), PARTITION table1_part_4 VALUES IN (('13:00:55.100609':::TIME, e'cUh\x1ay\x1c\x10\x1b':::STRING, NULL, B'1', B'000101000001011110100101010100010110111000101010', 949741901:::OID, 2934115233:::OID, e':\x1137\x18wdE':::STRING), ('09:23:26.962615':::TIME, '*1':::STRING, NULL, B'0', B'110011101100001011101110101000000101100100100001', 1533612062:::OID, 0:::OID, e'\x14XZHxNj':::STRING), ('21:54:10.019358':::TIME, NULL, '':::STRING, B'0', B'000000000000111010111011110010110110011010100101', 1145527447:::OID, 399294926:::OID, e'\bBX9\x1a\b\tt':::STRING), ('18:23:54.348747':::TIME, e'KG\b\n':::STRING, e'i\x05':::STRING, B'1', B'101010100100000100100010001000001001101010000101', 3441707934:::OID, 0:::OID, 'SNj8GSff':::STRING)), PARTITION table1_part_5 VALUES IN (('21:32:54.809143':::TIME, 'TK':::STRING, 'joK7d@':::STRING, B'1', B'010110000000011000111001000100110001001000110001', 3827514224:::OID, NULL, e'\'':::STRING), ('23:24:27.293575':::TIME, e'\x1d\x1c}\x11':::STRING, e'Yk\x14ry\x0e/``':::STRING, B'0', B'011111111111111111111111111111111111111111111111', 2627731977:::OID, 3888973534:::OID, e'Ogu)G/\x1b=':::STRING), ('01:09:24.539091':::TIME, '':::STRING, '':::STRING, B'0', B'011111111111111111111111111111111111111111111111', 1342642572:::OID, 697411080:::OID, e'(\x02OfDC':::STRING), ('07:49:45.371769':::TIME, e'\x1am\x05{':::STRING, e'3D\x06*.\x02':::STRING, B'1', B'000010101111001101001110000101111000111110001100', 4228159590:::OID, 1476206391:::OID, e'\x14:H\x19]Wq~':::STRING)), PARTITION table1_part_6 VALUES IN (('00:00:00':::TIME, e'\x19$G-Z\x192':::STRING, '':::STRING, B'1', B'010001011110111100100111101001010011100010011010', 4044795808:::OID, 789476319:::OID, e'4SkuA\x14[5F':::STRING), ('16:31:28.85665':::TIME, e'.E/k\x0fV\x15JD':::STRING, '``R':::STRING, B'0', B'100100001100101010010001111011010101000100011000', 3621937682:::OID, 609049860:::OID, 'R':::STRING), ('15:02:06.693243':::TIME, e'\x16':::STRING, 'X':::STRING, B'0', B'000010001101101011010000010111011010101101110110', 3310154723:::OID, 3132248095:::OID, e'\'':::STRING), ('10:34:44.748756':::TIME, ';s}Rte3':::STRING, 'a#|dy0':::STRING, B'0', B'010001101011011000011000101100110111011111101101', 3850517611:::OID, 3429069726:::OID, 'X':::STRING)), PARTITION table1_part_7 VALUES IN (('22:22:56.507594':::TIME, e'\x00':::STRING, 'i^>cw':::STRING, B'1', B'100000101011101101110101011010011111011111111111', 0:::OID, 0:::OID, '':::STRING), (NULL, '~w':::STRING, e'\x1dVB':::STRING, B'1', B'100001101010110011011111010101000101111111011100', 480694423:::OID, 0:::OID, '&':::STRING), ('20:54:02.409846':::TIME, e'F``t\x1bO':::STRING, e'YO>\x1e\'\x17R\x1c&':::STRING, B'1', B'011111111111111111111111111111111111111111111111', NULL, 3856275247:::OID, e'2\x07\\Vj':::STRING), ('11:26:39.523908':::TIME, NULL, NULL, B'1', B'010111110100100001001001000001101101101011010111', 3650894540:::OID, 1604040136:::OID, e'A <|\x020j\x12':::STRING)), PARTITION table1_part_8 VALUES IN (('10:01:18.744603':::TIME, NULL, e'\x13':::STRING, B'0', B'000000011110001100101001111010011111001001011010', 4209107787:::OID, 3634606178:::OID, e'31>B\x1ba':::STRING), ('06:06:55.455644':::TIME, NULL, e'M!\x1d\x12o~':::STRING, B'0', B'011000010101010010010100010001101111101101010110', 1796308253:::OID, 1008735083:::OID, '|':::STRING), (NULL, '':::STRING, e'/\x04\x0f':::STRING, B'1', B'100000001010101000111000000001010000100100011011', 2706411325:::OID, 1499682449:::OID, e'##Y\x11gm#':::STRING), ('12:21:00.551907':::TIME, e'y#e\x18m':::STRING, e'\'mTok1O||':::STRING, B'1', B'011111111111111111111111111111111111111111111111', 2066164722:::OID, 4017489537:::OID, e'>f].\x1bVtt\x0b':::STRING)), PARTITION table1_part_9 VALUES IN (('08:36:31.740857':::TIME, e'?O2{\'u^\bz':::STRING, 'ln5bmQ':::STRING, B'1', B'011111111111111111111111111111111111111111111111', 3953420292:::OID, 901150333:::OID, e'g}\x0bM&=n':::STRING), ('04:22:55.259676':::TIME, e'\b\x06\x01\x02[&\x1b{*':::STRING, e'SA^Ow\'':::STRING, B'0', B'000000000000000000000000000000000000000000000000', 56415291:::OID, 2382417496:::OID, e'-$(?\x03\x0e':::STRING), ('16:24:03.754679':::TIME, NULL, 'Lp2':::STRING, B'1', B'011111011000001100001101000100001011100111111100', 993617797:::OID, 4118546178:::OID, e'\x05O\bg&':::STRING), ('20:39:14.703809':::TIME, '0h':::STRING, NULL, B'1', B'100111000001010100110010000100000011111010100110', 3709058876:::OID, 0:::OID, e'\'2U\x7f':::STRING)), PARTITION "DEFAULT" VALUES IN ((DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT))) WHERE ((((table1.col1_10 = '"':::STRING) AND (table1.col1_9 >= '"':::STRING)) AND (table1.col1_6 < '"':::STRING)) OR (table1.col1_11 < e'\'':::STRING)) AND (table1.col1_7 != (-32768):::INT8), INDEX (col1_3 ASC, col1_8 ASC, (col1_7 + 0:::INT8), col1_7, col1_5, (CASE WHEN col1_8 IS NULL THEN e'\x7fd%4{\x03U\x1d':::STRING ELSE e'\x167\x15':::STRING END) ASC, col1_9 DESC, col1_4 ASC, col1_1 DESC, col1_10 DESC))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=eadc0ea6-8820-44ff-b910-e67de1b41d22 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (636.35s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ eabdc49383a19d5731b765dbb0d8b45bd9e24404:

        postgres_1    |             AS tab_395445
        postgres_1    |     ORDER BY
        postgres_1    |         col_717694 NULLS FIRST,
        postgres_1    |         col_717695 NULLS FIRST,
        postgres_1    |         col_717696 NULLS FIRST,
        postgres_1    |         col_717697 NULLS FIRST,
        postgres_1    |         col_717698 NULLS FIRST,
        postgres_1    |         col_717699 NULLS FIRST,
        postgres_1    |         col_717700 NULLS FIRST,
        postgres_1    |         col_717701 NULLS FIRST,
        postgres_1    |         col_717702 NULLS FIRST,
        postgres_1    |         col_717703 NULLS FIRST,
        postgres_1    |         col_717704 NULLS FIRST,
        postgres_1    |         col_717705 NULLS FIRST,
        postgres_1    |         col_717706 NULLS FIRST,
        postgres_1    |         col_717707 NULLS FIRST,
        postgres_1    |         col_717708 NULLS FIRST,
        postgres_1    |         col_717709 NULLS FIRST,
        postgres_1    |         col_717710 NULLS FIRST,
        postgres_1    |         col_717711 NULLS FIRST,
        postgres_1    |         col_717712 NULLS FIRST,
        postgres_1    |         col_717713 NULLS FIRST
        postgres_1    | 2022-07-24 05:27:42.259 UTC [78] ERROR:  could not identify an ordering operator for type void at character 72
        postgres_1    | 2022-07-24 05:27:42.259 UTC [78] HINT:  Use an explicit ordering operator or modify the query.
        postgres_1    | 2022-07-24 05:27:42.259 UTC [78] STATEMENT:  SELECT * FROM (SELECT NULL::VOID AS col_717766) AS tab_395476 ORDER BY col_717766 NULLS FIRST
        test_1        | --- FAIL: TestCompare (605.08s)
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     --- FAIL: TestCompare/mutators (0.39s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BOX2D NOT NULL, col1_1 BYTES NOT NULL, col1_2 DATE NOT NULL, col1_3 REGROLE NOT NULL, col1_4 INTERVAL[] NOT NULL, col1_5 BOOL NOT NULL, col1_6 OID NOT NULL, col1_7 BYTES NOT NULL, col1_8 STRING NOT NULL AS (CASE WHEN col1_7 IS NULL THEN 'mCv6':::STRING ELSE 'l':::STRING END) VIRTUAL, col1_9 STRING NOT NULL AS (CASE WHEN col1_7 IS NULL THEN e'\x07':::STRING ELSE e'``2\x1eF&,Vh':::STRING END) VIRTUAL, col1_10 STRING NOT NULL AS (CASE WHEN col1_7 IS NULL THEN e'\x7fnxUU\f?Q\n':::STRING ELSE 'z5':::STRING END) VIRTUAL, UNIQUE ((CASE WHEN col1_4 IS NULL THEN e'f*K,\x19ri\x06B':::STRING ELSE e'x<\x1a\x15{~\x0e':::STRING END) ASC, col1_9 DESC, col1_7 ASC, col1_6) STORING (col1_0, col1_2, col1_3, col1_4) WHERE ((((((table1.col1_8 >= e'\x00':::STRING) AND (table1.col1_2 != '5874897-12-31':::DATE)) OR (table1.col1_9 != e'\U00002603':::STRING)) OR (table1.col1_1 > e'\\x58':::BYTES)) AND table1.col1_5) OR (table1.col1_10 >= '':::STRING)) AND (table1.col1_7 != e'\\x':::BYTES), UNIQUE (col1_3, col1_7, col1_2 ASC, col1_0 ASC, col1_9 ASC, col1_6 ASC, (CASE WHEN col1_2 IS NULL THEN e'V%,\x1b':::STRING ELSE e'\'':::STRING END) DESC, col1_5 ASC, col1_1, col1_10 ASC) WHERE ((((((table1.col1_8 = 'X':::STRING) AND (table1.col1_9 <= e'\x00':::STRING)) AND (table1.col1_2 > '4714-11-24 BC':::DATE)) AND (NOT table1.col1_5)) OR (table1.col1_1 > e'\\x22':::BYTES)) AND (table1.col1_10 != e'\U00002603':::STRING)) OR (table1.col1_7 = e'\\x27':::BYTES), UNIQUE (col1_8 DESC, lower(CAST(col1_0 AS STRING)), col1_7 DESC, col1_9 ASC, (CASE WHEN col1_4 IS NULL THEN e'\x1d\b/\x02\x05F\r':::STRING ELSE e'\x0455hMb':::STRING END), col1_3 ASC) STORING (col1_0, col1_1, col1_4, col1_5, col1_6) WHERE (((((table1.col1_9 > '"':::STRING) AND (table1.col1_7 >= '\x':::BYTES)) AND (table1.col1_10 <= '"':::STRING)) OR (table1.col1_2 <= '4714-11-24 BC':::DATE)) OR (NOT table1.col1_5)) OR (table1.col1_1 <= '\x27':::BYTES), FAMILY (col1_4, col1_7), FAMILY (col1_1, col1_6, col1_3), FAMILY (col1_2), FAMILY (col1_0, col1_5));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 0, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 0}, {"avg_size": 0, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 0, "histo_buckets": [{"distinct_range": 0, "num_eq": 2000, "num_range": 0, "upper_bound": "2968320176"}], "histo_col_type": "REGROLE", "name": "__auto__", "null_count": 0, "row_count": 0}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 17, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4944864633403127324, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 13, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1855038089326035840, "histo_buckets": [{"distinct_range": 0, "num_eq": 2000000000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 5000000, "num_range": 4931288927370969005, "upper_bound": "((="}, {"distinct_range": 0, "num_eq": 50000, "num_range": 30000000, "upper_bound": "/@"}, {"distinct_range": 979519149591945900, "num_eq": 20000, "num_range": 7997156065600152775, "upper_bound": "L\\u000fz\\u0001W\\u0016\\n\\\\"}, {"distinct_range": 9000000, "num_eq": 8883054312009111020, "num_range": 9000000, "upper_bound": "Nw)"}, {"distinct_range": 0, "num_eq": 3606041060092280255, "num_range": 50, "upper_bound": "e"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 9, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 817294095860584502, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 21, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5577023213159108166, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 7, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5131984014101850407, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 19, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6939071598614145, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 14, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2573920895171887903, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 10, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4479714779536036626, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 1, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1599497184860965732, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 6, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4017490096268619589, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}, {"avg_size": 29, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5307685582092945554, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7552591841238971303}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (635.95s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ eabdc49383a19d5731b765dbb0d8b45bd9e24404:

        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | 
        postgres_1    | 2022-07-25 05:17:47.008 UTC [49] LOG:  received fast shutdown request
        postgres_1    | waiting for server to shut down....2022-07-25 05:17:47.009 UTC [49] LOG:  aborting any active transactions
        postgres_1    | 2022-07-25 05:17:47.011 UTC [49] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
        postgres_1    | 2022-07-25 05:17:47.014 UTC [51] LOG:  shutting down
        postgres_1    | 2022-07-25 05:17:47.102 UTC [49] LOG:  database system is shut down
        postgres_1    |  done
        postgres_1    | server stopped
        postgres_1    | 
        postgres_1    | PostgreSQL init process complete; ready for start up.
        postgres_1    | 
        postgres_1    | 2022-07-25 05:17:47.128 UTC [1] LOG:  starting PostgreSQL 13.5 (Debian 13.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
        postgres_1    | 2022-07-25 05:17:47.128 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-07-25 05:17:47.128 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-07-25 05:17:47.131 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-07-25 05:17:47.135 UTC [68] LOG:  database system was shut down at 2022-07-25 05:17:47 UTC
        postgres_1    | 2022-07-25 05:17:47.140 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-07-25 05:17:48.706 UTC [78] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
        postgres_1    | 2022-07-25 05:17:48.706 UTC [78] STATEMENT:  CREATE TABLE table3 (col3_0 TEXT NOT NULL, col3_1 CHAR, col3_2 REGPROC NOT NULL, col3_3 BOOL NOT NULL, col3_4 GEOGRAPHY NOT NULL, col3_5 BOOL, col3_6 FLOAT8 NOT NULL, col3_7 TIMESTAMPTZ NOT NULL, col3_8 TIME NOT NULL, col3_9 TIME NOT NULL, col3_10 INT2 NOT NULL, col3_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_7 IS NULL THEN e'\x00'::TEXT ELSE e'@\x16\x07\x05!'::TEXT END) STORED)
        test_1        | --- FAIL: TestCompare (4.15s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/postgres (0.87s)
        test_1        |         compare_test.go:128: starting test: postgres
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:159: CREATE TABLE table3 (col3_0 TEXT NOT NULL, col3_1 CHAR, col3_2 REGPROC NOT NULL, col3_3 BOOL NOT NULL, col3_4 GEOGRAPHY NOT NULL, col3_5 BOOL, col3_6 FLOAT8 NOT NULL, col3_7 TIMESTAMPTZ NOT NULL, col3_8 TIME NOT NULL, col3_9 TIME NOT NULL, col3_10 INT2 NOT NULL, col3_11 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_7 IS NULL THEN e'\x00'::TEXT ELSE e'@\x16\x07\x05!'::TEXT END) STORED)
        test_1        |         compare_test.go:160: postgres: exec: ERROR: invalid byte sequence for encoding "UTF8": 0x00 (SQLSTATE 22021)
        test_1        |     --- FAIL: TestCompare/mutators (0.15s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 OID NULL, col1_1 BIT(24), col1_2 REGCLASS NULL, col1_3 GEOGRAPHY NOT NULL, col1_4 BOOL NULL, col1_5 STRING NOT NULL AS (lower(CAST(col1_3 AS STRING))) STORED, col1_6 STRING AS (lower(CAST(col1_1 AS STRING))) VIRTUAL, col1_7 STRING NULL AS (lower(CAST(col1_0 AS STRING))) STORED, INVERTED INDEX (col1_7 DESC, col1_5 ASC, col1_3 ASC) WHERE ((table1.col1_5 <= e'\'':::STRING) OR (NOT table1.col1_4)) OR (table1.col1_6 >= 'X':::STRING), INDEX (col1_2, lower(CAST(col1_1 AS STRING)) DESC, col1_0) STORING (col1_1, col1_3, col1_5), UNIQUE (col1_1 ASC, col1_6 DESC) WHERE (((table1.col1_7 <= e'\'':::STRING) AND (table1.col1_5 <= 'X':::STRING)) OR (table1.col1_6 < 'X':::STRING)) OR (NOT table1.col1_4), INDEX (col1_5, col1_1) PARTITION BY LIST (col1_5) (PARTITION table1_part_0 VALUES IN ((e'\'':::STRING,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), UNIQUE (col1_2 DESC, col1_7, col1_0, col1_5, col1_4) WHERE (((table1.col1_5 >= 'X':::STRING) OR (table1.col1_6 >= '':::STRING)) OR (table1.col1_7 > e'\'':::STRING)) AND table1.col1_4, FAMILY (col1_2), FAMILY (col1_4, col1_0), FAMILY (col1_3, col1_7), FAMILY (col1_1), FAMILY (col1_5))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=aa190597-294a-4b1d-a902-c95337697e01 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (21.05s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 8db26695114981eec5c12317f3dc5d770b522a3f:

        postgres_1    |             SELECT
        postgres_1    |                 '2000-01-01 03:00:00'::TIMESTAMP::TIMESTAMP AS col_602225,
        postgres_1    |                 to_char('2000-01-07'::DATE::DATE::DATE)::TEXT AS col_602226
        postgres_1    |             FROM
        postgres_1    |                 postgres.public.table2 AS tab_406158, postgres.public.table2 AS tab_406159
        postgres_1    |             WHERE
        postgres_1    |                 NULL::BOOL
        postgres_1    |             ORDER BY
        postgres_1    |                 tab_406159.col2_12
        postgres_1    |         )
        postgres_1    |             AS tab_406160
        postgres_1    |     ORDER BY
        postgres_1    |         col_602225 NULLS FIRST, col_602226 NULLS FIRST
        postgres_1    | 2022-07-26 05:27:05.591 UTC [78] ERROR:  cannot get array length of a non-array
        postgres_1    | 2022-07-26 05:27:05.591 UTC [78] STATEMENT:  SELECT
        postgres_1    |         *
        postgres_1    |     FROM
        postgres_1    |         (
        postgres_1    |             SELECT
        postgres_1    |                 jsonb_array_length('{"A": "F", "D": {"A": {"C": false, "E": [null, {"D": false}, {"G": {"G": {"E": [{"E": true, "H": "H", "I": false}, false]}, "J": [{"D": false}]}, "I": {"C": {"F": [3, true, true], "I": {"A": {"E": true, "J": 1}}, "J": {"D": {"D": null}, "E": null, "G": 4}}, "E": {"E": "J", "I": 7}}, "J": {"E": true}}], "F": {"J": null}}, "E": null}}'::JSONB::JSONB::JSONB)::INT8
        postgres_1    |                     AS col_602249
        postgres_1    |         )
        postgres_1    |             AS tab_406191
        postgres_1    |     ORDER BY
        postgres_1    |         col_602249 NULLS FIRST
        test_1        | --- FAIL: TestCompare (604.35s)
        test_1        |     compare_test.go:119: Checking connection to: postgres
        test_1        |     compare_test.go:119: Checking connection to: cockroach1
        test_1        |     compare_test.go:119: Checking connection to: cockroach2
        test_1        |     --- FAIL: TestCompare/mutators (0.25s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:137: initializing connection: cockroach2
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 REGCLASS NOT NULL, PRIMARY KEY (col1_0), UNIQUE (col1_0 ASC), INDEX (col1_0 DESC), INDEX (col1_0), UNIQUE (col1_0), UNIQUE (col1_0 ASC), INDEX (col1_0), INDEX (col1_0 ASC));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 31, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 576552, "histo_buckets": [{"distinct_range": 0, "num_eq": 4068490049242563087, "num_range": 0, "upper_bound": "0"}, {"distinct_range": 579352380451799200, "num_eq": 100000000, "num_range": 579352380451799227, "upper_bound": "1280813860"}, {"distinct_range": 3000000000, "num_eq": 5543456414855440581, "num_range": 3000000000, "upper_bound": "2496278539"}, {"distinct_range": 1312023.6088021158, "num_eq": 90000000, "num_range": 20000000, "upper_bound": "3110381939"}, {"distinct_range": 1000000000, "num_eq": 3994043688342775764, "num_range": 1000000000, "upper_bound": "3252228728"}, {"distinct_range": 0, "num_eq": 9000, "num_range": 7005132036022698238, "upper_bound": "3499492227"}, {"distinct_range": 6826654002159900000, "num_eq": 600, "num_range": 6826654002159899304, "upper_bound": "4219532036"}], "histo_col_type": "REGCLASS", "name": "__auto__", "null_count": 0, "row_count": 1000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 15, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3246, "histo_buckets": [{"distinct_range": 0, "num_eq": 8726697483949285123, "num_range": 0, "upper_bound": "0"}, {"distinct_range": 0, "num_eq": 3000000, "num_range": 3000000000, "upper_bound": "69855713"}, {"distinct_range": 4515888423028152300, "num_eq": 1000000, "num_range": 6907364448155586759, "upper_bound": "420365493"}, {"distinct_range": 0, "num_eq": 1260539736874157776, "num_range": 4802762432185821823, "upper_bound": "1993759691"}, {"distinct_range": 700000, "num_eq": 30, "num_range": 700000, "upper_bound": "3791955287"}, {"distinct_range": 5069896131589249000, "num_eq": 8168773269841713101, "num_range": 5069896131589248926, "upper_bound": "3834037533"}], "histo_col_type": "REGCLASS", "name": "__auto__", "null_count": 0, "row_count": 10000}]':::JSONB;
        test_1        |             
        test_1        |         compare_test.go:160: cockroach2: exec: ERROR: cannot inject statistics in an explicit transaction (SQLSTATE XXUUU)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (632.63s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 0f100f3a09246bc80ef2c3119e4ec1c24ef36801:

        test_1        |         compare_test.go:137: initializing connection: postgres
        test_1        |         compare_test.go:188: open /home/agent/.cache/bazel/_bazel_agent/40f5e2a2e18a7cdb4cd075f919d8072b/execroot/com_github_cockroachdb_cockroach/_tmp/47c568f68c04b61694d82f4def978aef/TestComposeCompare987268209/002/postgres.log: no such file or directory
        test_1        |         compare_test.go:190: compare postgres to cockroach1: unexpected diff:
        test_1        |               []any(Inverse(func1, []any{
        test_1        |             -   string("0103000000010000000500000000000000000000400000000000001C40000000000000004000000000000000000000000000002040000000000000000000000000000020400000000000001C4000000000000000400000000000001C40"),
        test_1        |             +   string("010300000000000000"),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0:::FLOAT8::FLOAT8::FLOAT8, 7.0:::FLOAT8::FLOAT8::FLOAT8, 8.0:::FLOAT8::FLOAT8::FLOAT8, 0.0:::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_3606
        test_1        |                 )
        test_1        |                     AS tab_2241
        test_1        |             ORDER BY
        test_1        |                 col_3606 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         st_makeenvelope(2.0::FLOAT8::FLOAT8::FLOAT8, 7.0::FLOAT8::FLOAT8::FLOAT8, 8.0::FLOAT8::FLOAT8::FLOAT8, 0.0::FLOAT8::FLOAT8::FLOAT8)::GEOMETRY
        test_1        |                             AS col_3606
        test_1        |                 )
        test_1        |                     AS tab_2241
        test_1        |             ORDER BY
        test_1        |                 col_3606 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.13s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table1 (col1_0 BIT(4) NOT NULL, col1_1 CHAR NULL, col1_2 INT8 NULL, col1_3 INT8 NOT NULL, col1_4 INT2 NOT NULL, col1_5 JSONB NULL, col1_6 BYTES NULL, col1_7 INT8 NOT NULL, col1_8 TIMESTAMPTZ NOT NULL, col1_9 UUID NULL, col1_10 REGTYPE, col1_11 BIT(9) NULL, col1_12 REGTYPE NULL, col1_13 STRING NULL AS (lower(CAST(col1_11 AS STRING))) VIRTUAL, UNIQUE (col1_2 ASC), INVERTED INDEX (col1_3 ASC, col1_7, col1_0 ASC, col1_11 ASC, col1_6, ((col1_2 + col1_4) + col1_3) ASC, col1_9 ASC, col1_10, col1_1 ASC, col1_8, col1_5 ASC) WHERE ((((((table1.col1_7 < (-2147483648):::INT8) OR (table1.col1_3 > 127:::INT8)) OR (table1.col1_8 <= '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_13 > e'\'':::STRING)) OR (table1.col1_1 >= e'\x00':::STRING)) AND (table1.col1_6 > '\x':::BYTES)) OR (table1.col1_4 < 0:::INT8), UNIQUE (col1_7 ASC) PARTITION BY LIST (col1_7) (PARTITION table1_part_0 VALUES IN ((100464467206537720:::INT8,), ((-8214304346491084614):::INT8,), (1:::INT8,), ((-2704169183984475208):::INT8,), (2287755289668559924:::INT8,), (9223372036854775807:::INT8,)), PARTITION table1_part_1 VALUES IN ((0:::INT8,), ((-1609236606459506218):::INT8,), ((-8436560214418604487):::INT8,), (4182354448974604595:::INT8,), (2826691090540980136:::INT8,), ((-8296153153087760966):::INT8,)), PARTITION table1_part_2 VALUES IN (((-8358553412605982841):::INT8,), (7499861523798351602:::INT8,), (7153265648097403850:::INT8,), (6080237218967180536:::INT8,), ((-2186843262377595886):::INT8,), ((-8406208711669772521):::INT8,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))) WHERE (((((((table1.col1_4 >= 1:::INT8) OR (table1.col1_13 < e'\'':::STRING)) AND (table1.col1_2 = 0:::INT8)) OR (table1.col1_1 <= e'\x00':::STRING)) AND (table1.col1_3 = (-128):::INT8)) OR (table1.col1_7 >= (-32768):::INT8)) AND (table1.col1_6 > '\x':::BYTES)) OR (table1.col1_8 > '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ), UNIQUE ((((col1_7 + col1_3) + col1_2) + col1_4), col1_11 ASC) WHERE (((((((table1.col1_1 < '':::STRING) OR (table1.col1_7 != 2147483647:::INT8)) OR (table1.col1_8 != '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_13 < '"':::STRING)) OR (table1.col1_2 > (-128):::INT8)) OR (table1.col1_3 > 0:::INT8)) OR (table1.col1_6 <= '\x00':::BYTES)) AND (table1.col1_4 > (-1):::INT8), INDEX (col1_2 ASC, col1_13 DESC) WHERE ((table1.col1_8 <= '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ) OR (table1.col1_6 = '\x58':::BYTES)) AND (table1.col1_4 >= (-128):::INT8), INDEX (col1_0 DESC, (CASE WHEN col1_6 IS NULL THEN 'eW3':::STRING ELSE '':::STRING END) ASC, col1_1 DESC, col1_8, col1_11, col1_4 ASC, col1_13, col1_3 ASC, ((col1_3 + col1_4) + col1_7) DESC, lower(col1_1) DESC, (CASE WHEN col1_12 IS NULL THEN e'I5Q\'G?|\x19':::STRING ELSE '':::STRING END) DESC, col1_9 ASC) STORING (col1_6) PARTITION BY LIST (col1_0) (PARTITION table1_part_0 VALUES IN ((B'0001',), (B'0010',), (B'1101',)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), UNIQUE (col1_4 DESC) WHERE (((((((table1.col1_3 > 0:::INT8) OR (table1.col1_1 <= '':::STRING)) OR (table1.col1_6 <= '\x22':::BYTES)) AND (table1.col1_2 > 1:::INT8)) OR (table1.col1_7 >= 2147483647:::INT8)) AND (table1.col1_8 = '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_13 < e'\U00002603':::STRING)) OR (table1.col1_4 <= (-128):::INT8))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=d8b0a0ae-a53f-417d-8c0b-ecb1454f4fd0 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach2_1 ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (32.71s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 7c95ccd0a9f0b0aca9cdb0ed813caf8d60b28732:

        test_1        |                 }, ""),
        test_1        |                 []uint8("B"),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::BOX2D AS col_58334,
        test_1        |                         (('2000-01-01 06:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:05':::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ || ('2000-01-01 03:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ || 'G':::STRING::STRING::STRING)::STRING::STRING)::STRING
        test_1        |                             AS col_58335,
        test_1        |                         '\x42':::BYTES::BYTES AS col_58336
        test_1        |                 )
        test_1        |                     AS tab_35484
        test_1        |             ORDER BY
        test_1        |                 CAST(col_58334 AS STRING) NULLS FIRST, col_58335 NULLS FIRST, col_58336 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::BOX2D AS col_58334,
        test_1        |                         (('2000-01-01 06:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ + '00:00:05'::INTERVAL::INTERVAL::INTERVAL)::TIMESTAMPTZ::TIMESTAMPTZ || ('2000-01-01 03:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ::TIMESTAMPTZ || 'G'::TEXT::TEXT::TEXT)::TEXT::TEXT)::TEXT
        test_1        |                             AS col_58335,
        test_1        |                         '\x42'::BYTEA::BYTEA AS col_58336
        test_1        |                 )
        test_1        |                     AS tab_35484
        test_1        |             ORDER BY
        test_1        |                 CAST(col_58334 AS TEXT) NULLS FIRST, col_58335 NULLS FIRST, col_58336 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.17s)
        test_1        |         compare_test.go:128: starting test: mutators
        test_1        |         compare_test.go:137: initializing connection: cockroach1
        test_1        |         compare_test.go:159: CREATE TABLE table4 (col4_0 BIT(6) NOT NULL, col4_1 TIMETZ NOT NULL, col4_2 UUID NOT NULL, col4_3 INTERVAL NOT NULL, col4_4 INT4 NOT NULL, col4_5 GEOMETRY, PRIMARY KEY (col4_0 DESC, col4_4 DESC), INDEX (col4_4 DESC, col4_1 ASC) WHERE (table4.col4_4 = 1:::INT8) AND (table4.col4_1 = '00:00:00+15:59:00':::TIMETZ), INDEX (col4_2, col4_0 ASC) PARTITION BY LIST (col4_2) (PARTITION table4_part_0 VALUES IN (('862d1c7a-3942-44a3-9387-7d01d58e936c':::UUID,), ('6c52aca3-f381-4392-953f-3e3910b7279d':::UUID,), ('e98d8e94-b22e-427c-bde3-2435a427e960':::UUID,), ('7314381a-5057-4466-9a05-edd29999b752':::UUID,), ('769d1861-87aa-4e9b-b337-e5b08882c89f':::UUID,), ('b121ab53-15e3-42ba-90c2-8fe9d59c319a':::UUID,), ('8143eac8-fbad-4117-823d-ac6f301a1c28':::UUID,), ('2ec09472-c94c-4f68-b9ce-bfd30a31200f':::UUID,)), PARTITION table4_part_1 VALUES IN (('0b4a172d-712f-4a0b-b00b-4de4f7ef4756':::UUID,), ('32813920-de4f-4f41-99f2-facba9e5ddf8':::UUID,), ('ba17d31a-9618-4ab0-9667-39794f86eaf0':::UUID,), ('de8a8417-6188-4668-86cd-b533cb0d59c4':::UUID,), ('6f46dd7d-ee96-414c-9820-66c4beff4aa4':::UUID,), ('16429545-fb36-4dc0-8340-53946efb44b3':::UUID,), ('d232fe2a-7605-4f71-929e-f55f0e85841a':::UUID,), ('d7048f82-e52b-4771-be72-ada47062c7bb':::UUID,)), PARTITION table4_part_2 VALUES IN (('1e671129-149d-4985-a234-10790a23f68b':::UUID,), ('4f6ef9a1-988b-4ef5-8711-b81c8375f97b':::UUID,), ('00000000-0000-0000-0000-000000000000':::UUID,), ('16368657-ae0b-481e-b4cd-a0756db25a55':::UUID,), ('fe252a22-2bb8-4e41-9f92-572338627626':::UUID,), ('ffffffff-ffff-ffff-ffff-ffffffffffff':::UUID,), ('7d9452e6-cf96-4dff-8b4d-fc643454c5be':::UUID,), ('906edeb0-eed7-4d55-b625-f7b8b554623a':::UUID,)), PARTITION table4_part_3 VALUES IN (('99f2d41c-2a7b-40f1-bab0-33be1b9e24a1':::UUID,), ('3437cfd2-7360-4593-aaa4-bcfd9cd06758':::UUID,), ('6f44c427-5490-4c52-8944-f3aa7bc994d5':::UUID,), ('7325f034-1a0a-41fd-9155-a6b8c229952d':::UUID,), ('c47d71a1-16a9-42f5-ae9c-aa7037fd425f':::UUID,), ('d3ecf3cd-4aa1-413d-8269-60b2f305881b':::UUID,), ('2509f5c0-ad67-4539-9648-d7c34c23de2e':::UUID,), ('3013c1bc-d017-4007-8217-8e2fdef256f1':::UUID,)), PARTITION table4_part_4 VALUES IN (('8f8a901c-fff6-4ed2-a528-c25ebe5d5c75':::UUID,), ('209236af-b7e1-490a-a54b-25e37b29dbb6':::UUID,), ('4e9bf1fd-a09c-4c64-8274-154649724c24':::UUID,), ('add69acb-c255-4b0d-add5-e570b0d8e6c8':::UUID,), ('84a2221f-2409-42d0-bc73-2ec17a3ad53e':::UUID,), ('d70461bb-bc91-4588-8092-b0a9f567963a':::UUID,), ('773469bb-f88d-4142-b165-82ff37dea792':::UUID,)), PARTITION table4_part_5 VALUES IN (('f80d4009-2028-4a81-bd60-b69eeb7fa93d':::UUID,), ('1e886336-6f44-406b-b4a8-131226e52c92':::UUID,), ('843baf6d-2a4c-43d0-b9d2-103e8fb669be':::UUID,), ('53992423-afbb-4a06-b65c-519a35463501':::UUID,), ('e598b127-2dd9-4aa1-a709-14f59bf98388':::UUID,), ('4037aea9-38ce-4355-b6b9-82f4f7860df9':::UUID,), ('170fac00-ff15-48e0-9ad2-38bb48270be1':::UUID,), ('1f3b8b67-c841-4995-9c4b-2bac604f3849':::UUID,)), PARTITION table4_part_6 VALUES IN (('6a97953f-91cf-49bd-ad04-2ae4236a4f1f':::UUID,), ('2b81b043-3b68-4d3f-b6dd-384af7853f11':::UUID,), ('a3b99563-9d3d-45c2-ae0e-d36d1dfbdb3f':::UUID,), ('65ed108c-364c-4847-a46a-a20c9168338f':::UUID,), ('59411ba4-a871-43a9-9aac-597217f229a2':::UUID,), ('884a0308-678e-421b-95b0-d5bcd045b761':::UUID,), ('3b5a4422-1352-4e1b-941d-b6ba92d3d2da':::UUID,), ('30e81ddc-93b2-48e8-b21f-36a7a8889cb6':::UUID,)), PARTITION table4_part_7 VALUES IN (('7217abca-8233-496b-81d1-ec6fe4856f73':::UUID,), ('f04cdca7-75bd-4a8e-a9d9-71653e082480':::UUID,), ('eec16bfc-5913-4f1a-9a36-fa2bc100c6b1':::UUID,), ('dfc2cffb-53b6-42c5-9a48-8509842300df':::UUID,), ('d293e8bc-160d-4f06-ac43-f6ced02d0d9b':::UUID,), ('9ac8497b-a040-46ef-9f83-6b4501d0e97e':::UUID,), ('40c6a887-0151-4b3e-918b-5d3ca413a943':::UUID,), ('726373a8-87ef-4c4b-8fc1-fb17b2e9b627':::UUID,)), PARTITION table4_part_8 VALUES IN (('15d8fe6f-adef-4c22-9ca2-c9d1223a251f':::UUID,), ('2c3bd124-8d10-455d-892c-6ff8c709aaec':::UUID,), ('589ab33b-ce1d-42d7-875d-36b617586db1':::UUID,), ('455796eb-cb3f-4d6c-b4e7-a6dd7459380a':::UUID,), ('0d6b17d0-9316-42f7-a8ae-615ef9c53d88':::UUID,), ('2d3ab1f4-e7f3-4eeb-a61f-4940fe51237f':::UUID,), ('e9478b53-78ba-46a3-95bf-5cec7cbd3357':::UUID,), ('a6de8b2a-e1d5-4246-9ee0-450705c2a76c':::UUID,)), PARTITION table4_part_9 VALUES IN (('43f13f71-f9a7-412d-b6be-f91d8584cddd':::UUID,), ('76ab08ef-1c9d-4cb0-9cb3-7c9ff1721617':::UUID,), ('248d96d0-6721-4003-aa62-11395c8b3011':::UUID,), ('871eba4b-6424-4bd7-86c2-05eafec4b1b5':::UUID,), ('0fd8d21c-fb8f-4999-ae79-1222f38983ab':::UUID,), ('128c713f-d3fe-4d2f-8ef5-69d698fc6372':::UUID,), ('26fcd5cd-0f90-4561-be97-2adc0eb10570':::UUID,), ('03dc2eda-0e62-44d0-a71a-ec99a7abb422':::UUID,))) WHERE (table4.col4_1 >= '00:00:00+15:59:00':::TIMETZ) OR (table4.col4_4 != (-128):::INT8), UNIQUE (col4_0, col4_3 ASC) STORING (col4_1, col4_2, col4_5) WHERE (table4.col4_1 <= '24:00:00-15:59:00':::TIMETZ) OR (table4.col4_4 < (-128):::INT8), INDEX (col4_4 ASC, col4_0 DESC, col4_3) STORING (col4_2, col4_5) WHERE table4.col4_1 >= '00:00:00+15:59:00':::TIMETZ)
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=4953a87a-ed35-4377-925f-80ab802b2327 for details on how to enable enterprise features (SQLSTATE XXC02)
        test_1        | FAIL
        compare_test_1 exited with code 1
        Stopping compare_cockroach2_1 ... 
        Stopping compare_postgres_1   ... 
        Stopping compare_cockroach1_1 ... 
        Stopping compare_postgres_1   ... done
        Stopping compare_cockroach2_1 ... done
        Stopping compare_cockroach1_1 ... done
        Aborting on container exit...

    compose_test.go:120: exit status 1
--- FAIL: TestComposeCompare (76.45s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 1129fbc650fe3a037b03aea1e5f1d8078618cb1c:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ cd113bf428e8868c38b2f2f295210f5c30d13a2d:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 0352fbee5e6933e8bca28aae4b136bcd495ab227:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ b83e83b7e54fabf6ebd3a42cff67f4b8c5b7b863:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 748b89a3fbef294f4b0f930c9dbdf88294b3deeb:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!

cockroach-teamcity commented 1 year ago

compose.TestComposeCompare failed with artifacts on master @ 7326bbbf94610c40ae2d2fdf42c119dfea93a170:

=== RUN   TestComposeCompare
    compose_test.go:74: TempDir: stat /artifacts/tmp/_tmp/47c568f68c04b61694d82f4def978aef: no such file or directory
--- FAIL: TestComposeCompare (0.00s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

Same failure on other branches

- #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.1 sync-me-8] - #73421 compose: TestComposeCompare failed [C-test-failure O-robot branch-release-21.2 sync-me-8]

This test on roachdash | Improve this report!