cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.76k stars 3.76k forks source link

compose: TestComposeCompare failed #82867

Closed cockroach-teamcity closed 1 year 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 1 year ago

compose.TestComposeCompare failed with artifacts on master @ ea7c52e5a930be203318db6e338edd5dde7537bd:

=== RUN   TestComposeCompare
    compose_test.go:65: -cockroach not set
--- FAIL: TestComposeCompare (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ a035d2e6e7ea57b30115ecc8ee1a5d553a9e3412:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 36 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ a035d2e6e7ea57b30115ecc8ee1a5d553a9e3412:

=== RUN   TestComposeCompare
    compose_test.go:65: -cockroach not set
--- FAIL: TestComposeCompare (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ a035d2e6e7ea57b30115ecc8ee1a5d553a9e3412:

=== RUN   TestComposeCompare
    compose_test.go:65: -cockroach not set
--- FAIL: TestComposeCompare (0.00s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ a035d2e6e7ea57b30115ecc8ee1a5d553a9e3412:

=== RUN   TestComposeCompare
    compose_test.go:65: -cockroach not set
--- FAIL: TestComposeCompare (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 8357abb668a5adaff781343b394b162fb1b66c6e:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 49 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ cfb5ae9a96e1770daa4aef1615a46e212b561a84:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 35 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ f694132d6ed73c707576a28f6e784fda8ea13c63:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 49 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ dca415eddac0d659ae6d76b4e3dfdf4076adbd34:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 17 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 0d9669a8669cf5abe22b61e1f1faf9a520f2f372:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 20 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 39250f643837156c8fb75b0ced07ef8a99c14185:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 8 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ b5be006bedd7d3cedc3fb3d2248df168e3d64be2:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 50 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 1a6e9f885baa124d5ff2996adb966ea15a1a9b2b:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 9 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 1a6e9f885baa124d5ff2996adb966ea15a1a9b2b:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 34 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 1a6e9f885baa124d5ff2996adb966ea15a1a9b2b:

        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | 
        postgres_1    | waiting for server to shut down...2022-11-28 06:17:07.394 UTC [49] LOG:  received fast shutdown request
        postgres_1    | .2022-11-28 06:17:07.395 UTC [49] LOG:  aborting any active transactions
        postgres_1    | 2022-11-28 06:17:07.397 UTC [49] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
        postgres_1    | 2022-11-28 06:17:07.399 UTC [51] LOG:  shutting down
        postgres_1    | 2022-11-28 06:17:07.501 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-11-28 06:17:07.617 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-11-28 06:17:07.617 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-11-28 06:17:07.617 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-11-28 06:17:07.621 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-11-28 06:17:07.626 UTC [68] LOG:  database system was shut down at 2022-11-28 06:17:07 UTC
        postgres_1    | 2022-11-28 06:17:07.631 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-11-28 06:17:08.940 UTC [78] ERROR:  foreign key constraint "table2_col2_10_col2_8_col2_3_col2_2_fkey" cannot be implemented
        postgres_1    | 2022-11-28 06:17:08.940 UTC [78] DETAIL:  Key columns "col2_10" and "col1_1" are of incompatible types: name and "char".
        postgres_1    | 2022-11-28 06:17:08.940 UTC [78] STATEMENT:  ALTER TABLE table2 ADD FOREIGN KEY (col2_10, col2_8, col2_3, col2_2) REFERENCES table1 (col1_1, col1_3, col1_0, col1_4) ON UPDATE RESTRICT
        test_1        | --- FAIL: TestCompare (4.67s)
        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 (1.19s)
        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: ALTER TABLE table2 ADD FOREIGN KEY (col2_10, col2_8, col2_3, col2_2) REFERENCES table1 (col1_1, col1_3, col1_0, col1_4) ON UPDATE RESTRICT
        test_1        |         compare_test.go:160: postgres: exec: ERROR: foreign key constraint "table2_col2_10_col2_8_col2_3_col2_2_fkey" cannot be implemented (SQLSTATE 42804)
        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:159: CREATE TABLE table3 (col3_0 NAME NOT NULL, col3_1 BYTES NOT NULL, col3_2 DATE NOT NULL, col3_3 BOOL NOT NULL, col3_4 REGCLASS, col3_5 GEOMETRY NULL, col3_6 STRING NOT NULL AS (lower(CAST(col3_3 AS STRING))) VIRTUAL, col3_7 STRING NOT NULL AS (lower(col3_0)) STORED, col3_8 STRING NOT NULL AS (CASE WHEN col3_2 IS NULL THEN e'\U00002603':::STRING ELSE e'\x00':::STRING END) VIRTUAL, PRIMARY KEY (col3_8, col3_1 ASC), INDEX (col3_4) STORING (col3_2, col3_3, col3_5) PARTITION BY LIST (col3_4) (PARTITION table3_part_0 VALUES IN ((2537028169:::OID,)), PARTITION table3_part_1 VALUES IN ((4110078402:::OID,)), PARTITION table3_part_2 VALUES IN ((4252155385:::OID,)), PARTITION table3_part_3 VALUES IN ((0:::OID,)), PARTITION table3_part_4 VALUES IN ((1699113443:::OID,)), PARTITION table3_part_5 VALUES IN ((690197147:::OID,))), UNIQUE (col3_6 DESC, col3_8) STORING (col3_0), UNIQUE (col3_1, col3_2 DESC, lower(CAST(col3_5 AS STRING)) DESC, col3_3 DESC, col3_7) STORING (col3_0) WHERE (((table3.col3_6 < '':::STRING) AND (table3.col3_0 != e'\'':::STRING:::NAME)) AND (table3.col3_2 > '4714-11-24 BC':::DATE)) AND (table3.col3_8 >= 'X':::STRING), INDEX (col3_0 DESC, col3_4 ASC) WHERE (((((table3.col3_7 != 'X':::STRING) AND (table3.col3_1 = '\x00':::BYTES)) OR (table3.col3_6 > e'\'':::STRING)) AND (table3.col3_8 > e'\'':::STRING)) AND (NOT table3.col3_3)) AND (table3.col3_0 < e'\'':::STRING:::NAME), INVERTED INDEX (col3_5), FAMILY (col3_1, col3_3), FAMILY (col3_5, col3_2), FAMILY (col3_7, col3_0, col3_4))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=c49a8289-b69f-44dc-8749-cf47a004ca1b 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 (19.37s)
Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 2b595c5214aead3e7d4f47f9a1dedce57dba6e7f:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 19 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 7823e2f75474417a44f0d34f76c5f8914cb91d52:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 8 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ db71e045cc3f2937bf20170d254dd7e54a620ffb:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 49 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ e7b15ebaed9c14668ade0a7827a5525aedef1ab0:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 19 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 9c21578450e395c83a1dc0df7090296fef06e006:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 35 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 859e1e1f26d79af43cce16519f9ba984baaa495c:

        postgres_1    | .2022-12-04 06:16:01.109 UTC [49] LOG:  aborting any active transactions
        postgres_1    | 2022-12-04 06:16:01.111 UTC [49] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
        postgres_1    | 2022-12-04 06:16:01.112 UTC [51] LOG:  shutting down
        postgres_1    | 2022-12-04 06:16:01.204 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-12-04 06:16:01.225 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-12-04 06:16:01.225 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-12-04 06:16:01.225 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-12-04 06:16:01.228 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-12-04 06:16:01.232 UTC [68] LOG:  database system was shut down at 2022-12-04 06:16:01 UTC
        postgres_1    | 2022-12-04 06:16:01.236 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-12-04 06:16:02.684 UTC [78] ERROR:  syntax error at or near "ASC" at character 509
        postgres_1    | 2022-12-04 06:16:02.684 UTC [78] STATEMENT:  CREATE TABLE table1 (col1_0 NAME NOT NULL, col1_1 BOOL NOT NULL, col1_2 TIMESTAMP, col1_3 GEOGRAPHY NOT NULL, col1_4 GEOMETRY NOT NULL, col1_5 "char" NULL, col1_6 REGPROCEDURE NULL, col1_7 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_9 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_10 TEXT NOT NULL GENERATED ALWAYS AS (lower(col1_0)) STORED, INVERTED INDEX (col1_8 ASC, col1_0 ASC, col1_7, col1_10 DESC, col1_5 DESC, lower(CAST(col1_3 AS TEXT)), col1_3 ASC) WHERE ((((((table1.col1_1 AND (table1.col1_5 > e'\''::TEXT)) OR (table1.col1_2 = '-2000-01-01 00:00:00'::TIMESTAMP)) OR (table1.col1_10 = e'\x00'::TEXT)) AND (table1.col1_0 > e'\U00002603'::TEXT::NAME)) OR (table1.col1_8 > e'\x00'::TEXT)) OR (table1.col1_9 >= '"'::TEXT)) AND (table1.col1_7 = 'X'::TEXT));
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.52s)
        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.78s)
        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 table1 (col1_0 NAME NOT NULL, col1_1 BOOL NOT NULL, col1_2 TIMESTAMP, col1_3 GEOGRAPHY NOT NULL, col1_4 GEOMETRY NOT NULL, col1_5 "char" NULL, col1_6 REGPROCEDURE NULL, col1_7 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_9 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col1_1 AS TEXT))) STORED, col1_10 TEXT NOT NULL GENERATED ALWAYS AS (lower(col1_0)) STORED, INVERTED INDEX (col1_8 ASC, col1_0 ASC, col1_7, col1_10 DESC, col1_5 DESC, lower(CAST(col1_3 AS TEXT)), col1_3 ASC) WHERE ((((((table1.col1_1 AND (table1.col1_5 > e'\''::TEXT)) OR (table1.col1_2 = '-2000-01-01 00:00:00'::TIMESTAMP)) OR (table1.col1_10 = e'\x00'::TEXT)) AND (table1.col1_0 > e'\U00002603'::TEXT::NAME)) OR (table1.col1_8 > e'\x00'::TEXT)) OR (table1.col1_9 >= '"'::TEXT)) AND (table1.col1_7 = 'X'::TEXT));
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: syntax error at or near "ASC" (SQLSTATE 42601)
        test_1        |     --- FAIL: TestCompare/mutators (0.62s)
        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 TIMETZ[] NOT NULL, col1_2 BYTES NOT NULL, col1_3 INET NOT NULL, PRIMARY KEY (col1_1 DESC, col1_0 ASC, col1_3 ASC, col1_2), UNIQUE (col1_0 DESC, col1_3, col1_2 ASC) WHERE (table1.col1_2 <= '\x27':::BYTES) AND (table1.col1_0 != '24:00:00':::TIME), UNIQUE (col1_1 ASC, col1_0 DESC) WHERE (table1.col1_0 >= '24:00:00':::TIME) OR (table1.col1_2 = '\xe29883':::BYTES), UNIQUE (col1_2 DESC, col1_3 DESC) WHERE (table1.col1_0 = '24:00:00':::TIME) AND (table1.col1_2 >= e'\\x58':::BYTES), INDEX (col1_0, col1_1, col1_2 DESC, col1_3 ASC) WHERE (table1.col1_0 >= '24:00:00':::TIME) OR (table1.col1_2 < e'\\x':::BYTES), INDEX (col1_1 DESC, col1_2 DESC, col1_0 ASC) WHERE (table1.col1_2 < '\x58':::BYTES) AND (table1.col1_0 != '24:00:00':::TIME), UNIQUE (col1_0) WHERE (table1.col1_0 > '24:00:00':::TIME) OR (table1.col1_2 != '\xff':::BYTES), INDEX ((CASE WHEN col1_1 IS NULL THEN ' nt-':::STRING ELSE '':::STRING END)) WHERE (table1.col1_2 = e'\\xe29883':::BYTES) OR (table1.col1_0 != '24:00:00':::TIME), FAMILY (col1_2), FAMILY (col1_1, col1_0), FAMILY (col1_3), UNIQUE (col1_2));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 6, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 428, "histo_buckets": [{"distinct_range": 0, "num_eq": 3092634785267051537, "num_range": 0, "upper_bound": "\\\\x095cd2529a2ea6"}, {"distinct_range": 3274110449324599300, "num_eq": 0, "num_range": 5443520313287973206, "upper_bound": "\\\\x2ceb907e7c3a"}, {"distinct_range": 0, "num_eq": 3794713267944148136, "num_range": 4300642547415650919, "upper_bound": "\\\\x36b7beedad"}, {"distinct_range": 0, "num_eq": 6029029164696677065, "num_range": 70000000, "upper_bound": "\\\\x508814a782de63bace"}, {"distinct_range": 0, "num_eq": 5843916198722618986, "num_range": 90, "upper_bound": "\\\\x644e24b80f"}, {"distinct_range": 30, "num_eq": 60000000000, "num_range": 30, "upper_bound": "\\\\xb60ecf7dba62"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 0, "row_count": 40000}, {"avg_size": 26, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 36962, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 40000}, {"avg_size": 17, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3092, "histo_buckets": [{"distinct_range": 0, "num_eq": 3894054694453236765, "num_range": 0, "upper_bound": "09:38:47.659155"}, {"distinct_range": 0, "num_eq": 2566669583078682350, "num_range": 201397729593140508, "upper_bound": "17:28:31.608123"}, {"distinct_range": 0, "num_eq": 3000, "num_range": 1972478368191302631, "upper_bound": "20:47:47.754486"}, {"distinct_range": 5000000, "num_eq": 3696203172900839465, "num_range": 5000000, "upper_bound": "24:00:00"}], "histo_col_type": "TIME", "name": "__auto__", "null_count": 0, "row_count": 40000}, {"avg_size": 4, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4312, "histo_buckets": [{"distinct_range": 0, "num_eq": 200000000, "num_range": 0, "upper_bound": "ARRAY[]"}, {"distinct_range": 61695.22656206675, "num_eq": 100000, "num_range": 100000, "upper_bound": "ARRAY[\'05:37:47.51924+00:41:00\':::TIMETZ,\'24:00:00-15:59:00\':::TIMETZ]"}, {"distinct_range": 0, "num_eq": 7972834225967463424, "num_range": 80, "upper_bound": "ARRAY[\'10:12:20.750715-00:45:00\':::TIMETZ,\'08:17:10.11475-09:56:00\':::TIMETZ,\'07:45:27.388028-01:43:00\':::TIMETZ]"}, {"distinct_range": 0, "num_eq": 20000000000, "num_range": 2525619697286804095, "upper_bound": "ARRAY[\'19:55:09.20473+00:24:00\':::TIMETZ,\'16:33:35.037662+07:51:00\':::TIMETZ]"}, {"distinct_range": 31.90260784706847, "num_eq": 300000, "num_range": 100, "upper_bound": "ARRAY[\'22:12:55.516746+02:05:00\':::TIMETZ]"}], "histo_col_type": "TIMETZ[]", "name": "__auto__", "null_count": 0, "row_count": 40000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 1, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5253278029, "histo_buckets": [{"distinct_range": 0, "num_eq": 5785582449946749809, "num_range": 0, "upper_bound": "ARRAY[\'00:00:00+15:59:00\':::TIMETZ,\'04:22:13.766057-11:18:00\':::TIMETZ,\'24:00:00-15:59:00\':::TIMETZ,\'01:42:44.079849+12:50:00\':::TIMETZ]"}, {"distinct_range": 0, "num_eq": 2000000000, "num_range": 991559998314999547, "upper_bound": "ARRAY[\'09:39:13.957908+06:02:00\':::TIMETZ,\'00:58:55.741033-06:14:00\':::TIMETZ,\'06:03:58.209116+04:30:00\':::TIMETZ,\'09:28:34.858305+01:08:00\':::TIMETZ,\'20:53:44.675138+09:19:00\':::TIMETZ]"}], "histo_col_type": "TIMETZ[]", "name": "__auto__", "null_count": 0, "row_count": 6000000000}, {"avg_size": 9, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1903657397, "histo_buckets": [{"distinct_range": 0, "num_eq": 7385732618365312260, "num_range": 0, "upper_bound": "\\\\x94c0e1d707cbb1a2b1"}, {"distinct_range": 10000000000, "num_eq": 400, "num_range": 10000000000, "upper_bound": "\\\\xa98a9b"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 0, "row_count": 6000000000}, {"avg_size": 5, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3264056101, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 6000000000}, {"avg_size": 14, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 746747810, "histo_buckets": [{"distinct_range": 0, "num_eq": 9207015655526893981, "num_range": 0, "upper_bound": "03:35:41.938229"}], "histo_col_type": "TIME", "name": "__auto__", "null_count": 0, "row_count": 6000000000}]':::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 (17.89s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 8a5cb5109d6b7e122e996a44f940bfd61698cd81:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 33 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 146556e19f5e4fdc8c3e6a623b280cc33aee4d18:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 13 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 8165e3974c10e88b6ae11c6255872ea16f3a67e3:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 35 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ ec095bc2fdbe4e518b076db20e4920fab67222bf:

        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 9 [running]:
        test_1        | testing.tRunner.func1.2({0x1e5e9e0, 0xc0002f3d60})
        test_1        |     GOROOT/src/testing/testing.go:1396 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1399 +0x39f
        test_1        | panic({0x1e5e9e0, 0xc0002f3d60})
        test_1        |     GOROOT/src/runtime/panic.go:884 +0x212
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3dd6620?, {0x2cdc5e8?, 0xc0004c4d80?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:371 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2cac100?, 0x3dd6620)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:304 +0x13c
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc001f3d1e0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc001f3a5d0, {0xc001f1bdc0?, 0x4, 0x0?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:254 +0x71f
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc000711990?, 0x20062ce?, {0xc001f1bdc0?, 0x1cdd4e0?, 0xc001f3a501?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1cdd4e0?, {0x20062ce, 0x5}, 0x4, 0xbf?, {0xc00118ba58, 0x3, 0x31b7b84?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16a
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x64ebb7ada8c35755?, 0x64ebb7ada8c35755?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:87 +0x186
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc00027a000?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:76 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0xc001f3c1a0?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:49 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc001f3c1a0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc001f3c1a0, 0xc001f3a540)
        test_1        |     GOROOT/src/testing/testing.go:1446 +0x10b
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1493 +0x35f
        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 (16.41s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience deprecated-branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 24854994805cede37e6845ee2a94e10272b5506b:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 17 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience deprecated-branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ f2b00e8039af6ea8887ec124dad8daf19da6fbf1:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 19 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience deprecated-branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ c050c9b4b57ecf2ceb5d449c31c617fe12c920e0:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 12 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience deprecated-branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 942a4d468e9c8ad0ef45a7be33f0a326dfb19fef:

        postgres_1    | 
        postgres_1    | waiting for server to shut down...2022-12-12 06:14:49.728 UTC [50] LOG:  received fast shutdown request
        postgres_1    | .2022-12-12 06:14:49.729 UTC [50] LOG:  aborting any active transactions
        postgres_1    | 2022-12-12 06:14:49.731 UTC [50] LOG:  background worker "logical replication launcher" (PID 57) exited with exit code 1
        postgres_1    | 2022-12-12 06:14:49.732 UTC [52] LOG:  shutting down
        postgres_1    | 2022-12-12 06:14:49.826 UTC [50] 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-12-12 06:14:49.844 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-12-12 06:14:49.844 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-12-12 06:14:49.844 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-12-12 06:14:49.847 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-12-12 06:14:49.852 UTC [69] LOG:  database system was shut down at 2022-12-12 06:14:49 UTC
        postgres_1    | 2022-12-12 06:14:49.856 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-12-12 06:14:51.361 UTC [79] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
        postgres_1    | 2022-12-12 06:14:51.361 UTC [79] STATEMENT:  CREATE TABLE table2 (col2_0 REGPROCEDURE NOT NULL, col2_1 DATE, col2_2 INT2, col2_3 BIT(38), col2_4 REGCLASS, col2_5 TIME, col2_6 REGNAMESPACE NULL, col2_7 REGPROCEDURE, col2_8 GEOMETRY NOT NULL, col2_9 TIMESTAMPTZ NOT NULL, col2_10 BIT(15) NOT NULL, col2_11 FLOAT4 NULL, col2_12 REGROLE NOT NULL, col2_13 INT2 NOT NULL, col2_14 UUID NOT NULL, col2_15 BIT(26), col2_16 TEXT GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN e'5_Tt\x1a``+*U'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_17 INT8 GENERATED ALWAYS AS (col2_2 + col2_13) STORED, col2_18 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_8 AS TEXT))) STORED, PRIMARY KEY (col2_0, col2_14, col2_12));
        postgres_1    |     CREATE INDEX ON table2 (col2_3, col2_18 ASC, col2_1 ASC, col2_13, col2_14 ASC, col2_2 DESC, col2_0 ASC, col2_7, col2_12) INCLUDE (col2_4, col2_6);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.31s)
        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.93s)
        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 REGPROCEDURE NOT NULL, col2_1 DATE, col2_2 INT2, col2_3 BIT(38), col2_4 REGCLASS, col2_5 TIME, col2_6 REGNAMESPACE NULL, col2_7 REGPROCEDURE, col2_8 GEOMETRY NOT NULL, col2_9 TIMESTAMPTZ NOT NULL, col2_10 BIT(15) NOT NULL, col2_11 FLOAT4 NULL, col2_12 REGROLE NOT NULL, col2_13 INT2 NOT NULL, col2_14 UUID NOT NULL, col2_15 BIT(26), col2_16 TEXT GENERATED ALWAYS AS (CASE WHEN col2_7 IS NULL THEN e'5_Tt\x1a``+*U'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_17 INT8 GENERATED ALWAYS AS (col2_2 + col2_13) STORED, col2_18 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_8 AS TEXT))) STORED, PRIMARY KEY (col2_0, col2_14, col2_12));
        test_1        |             CREATE INDEX ON table2 (col2_3, col2_18 ASC, col2_1 ASC, col2_13, col2_14 ASC, col2_2 DESC, col2_0 ASC, col2_7, col2_12) INCLUDE (col2_4, col2_6);
        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:159: CREATE TABLE table1 (col1_0 VARCHAR, col1_1 REGPROCEDURE, col1_2 VARCHAR NOT NULL, col1_3 DATE NOT NULL, col1_4 INT4 NOT NULL, col1_5 TIME NOT NULL, col1_6 INT2[] NOT NULL, col1_7 BYTES NOT NULL, col1_8 INT2 NOT NULL, col1_9 CHAR NOT NULL, col1_10 TIMESTAMPTZ NOT NULL, col1_11 INT2 NOT NULL, col1_12 INT4 NOT NULL, col1_13 BIT(12) NOT NULL, col1_14 BIT(37) NOT NULL, col1_15 INT2 NOT NULL, col1_16 INT8 NOT NULL AS (((col1_15 + col1_11) + col1_12) + col1_8) VIRTUAL, INDEX (col1_7 DESC, (col1_12 + col1_4) DESC) STORING (col1_1, col1_2, col1_5, col1_6, col1_8, col1_9, col1_11, col1_12, col1_13) WHERE table1.col1_5 < '24:00:00':::TIME, UNIQUE (((((col1_8 + col1_12) + col1_15) + col1_4) + col1_11) DESC, col1_14 ASC, col1_9 ASC, col1_15 ASC, col1_1, col1_11, col1_13 ASC, col1_3 DESC) WHERE (((((((table1.col1_0 <= e'\U00002603':::STRING) OR (table1.col1_2 = '"':::STRING)) AND (table1.col1_15 >= (-128):::INT8)) AND (table1.col1_3 = '-infinity':::DATE)) OR (table1.col1_10 < '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) AND (table1.col1_11 < 127:::INT8)) AND (table1.col1_8 <= (-1):::INT8)) AND (table1.col1_7 > '\x27':::BYTES), UNIQUE (col1_10 ASC) PARTITION BY LIST (col1_10) (PARTITION table1_part_0 VALUES IN (('2027-07-31 07:14:47.000202+00:00':::TIMESTAMPTZ,), ('3000-01-01 00:00:00+00:00':::TIMESTAMPTZ,), ('1978-10-15 18:06:57.000973+00:00':::TIMESTAMPTZ,), ('2010-09-28 03:11:42.000433+00:00':::TIMESTAMPTZ,), ('1972-05-11 14:06:47.000443+00:00':::TIMESTAMPTZ,), ('2029-10-16 00:12:27.000367+00:00':::TIMESTAMPTZ,), ('2002-01-04 05:13:38.000416+00:00':::TIMESTAMPTZ,), ('2000-05-10 20:52:00.000063+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_1 VALUES IN (('2031-09-25 11:31:47.000388+00:00':::TIMESTAMPTZ,), ('294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ,), ('2010-04-27 23:02:32.00077+00:00':::TIMESTAMPTZ,), ('2003-11-20 08:29:47.000038+00:00':::TIMESTAMPTZ,), ('1988-12-13 00:30:35.000931+00:00':::TIMESTAMPTZ,), ('2001-11-20 09:07:23.000417+00:00':::TIMESTAMPTZ,), ('1988-05-14 11:38:54.00096+00:00':::TIMESTAMPTZ,), ('2017-02-24 18:10:44.000943+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_2 VALUES IN (('1991-12-11 12:05:45.000769+00:00':::TIMESTAMPTZ,), ('2005-09-08 00:33:24.000383+00:00':::TIMESTAMPTZ,), ('2025-08-11 04:16:00.000096+00:00':::TIMESTAMPTZ,), ('1982-08-16 10:30:52.000603+00:00':::TIMESTAMPTZ,), ('2030-10-23 13:04:29.000469+00:00':::TIMESTAMPTZ,), ('2005-02-26 13:56:50.000304+00:00':::TIMESTAMPTZ,), ('2001-05-17 13:47:09.00001+00:00':::TIMESTAMPTZ,), ('2008-05-17 16:40:20.000283+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_3 VALUES IN (('2020-12-20 05:17:05.000359+00:00':::TIMESTAMPTZ,), ('1978-02-04 12:01:51.000026+00:00':::TIMESTAMPTZ,), ('1975-09-17 00:57:06.000676+00:00':::TIMESTAMPTZ,), ('2016-10-31 22:09:51.000124+00:00':::TIMESTAMPTZ,), ('1990-12-13 07:51:03.000122+00:00':::TIMESTAMPTZ,), ('2010-09-01 01:56:10.000905+00:00':::TIMESTAMPTZ,), ('1999-12-06 19:00:40.000314+00:00':::TIMESTAMPTZ,), ('1971-04-03 15:04:55.000057+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_4 VALUES IN (('1982-10-09 01:46:01.000717+00:00':::TIMESTAMPTZ,), ('2022-10-06 11:38:06.000119+00:00':::TIMESTAMPTZ,), ('2032-11-19 14:20:51.000723+00:00':::TIMESTAMPTZ,), ('2019-05-19 14:08:12.000229+00:00':::TIMESTAMPTZ,), ('1987-09-14 00:13:13.00022+00:00':::TIMESTAMPTZ,), ('2015-04-25 16:22:53.000758+00:00':::TIMESTAMPTZ,), ('1975-12-31 16:11:25.000461+00:00':::TIMESTAMPTZ,), ('2029-04-05 12:36:26.000554+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_5 VALUES IN (('1989-01-20 05:50:23.000763+00:00':::TIMESTAMPTZ,), ('1983-03-08 11:15:00.000599+00:00':::TIMESTAMPTZ,), ('1972-10-19 05:49:42.000922+00:00':::TIMESTAMPTZ,), ('2005-09-04 08:29:31.000621+00:00':::TIMESTAMPTZ,), ('2021-10-04 18:54:46.000477+00:00':::TIMESTAMPTZ,), ('1996-02-01 12:47:34.000178+00:00':::TIMESTAMPTZ,), ('1989-09-18 17:46:59.000906+00:00':::TIMESTAMPTZ,), ('2003-08-28 20:58:04.000639+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_6 VALUES IN (('1993-08-26 03:36:09.000725+00:00':::TIMESTAMPTZ,), ('2013-07-25 04:55:32.000493+00:00':::TIMESTAMPTZ,), ('1970-02-16 15:02:01.000828+00:00':::TIMESTAMPTZ,), ('2032-08-12 00:42:44.000403+00:00':::TIMESTAMPTZ,), ('1983-03-18 09:56:35.000742+00:00':::TIMESTAMPTZ,), ('1978-01-03 14:15:02.000031+00:00':::TIMESTAMPTZ,), ('1984-07-02 08:07:55.000879+00:00':::TIMESTAMPTZ,), ('2025-10-12 21:32:42.000311+00:00':::TIMESTAMPTZ,)), PARTITION table1_part_7 VALUES IN (('1987-03-02 18:19:26.000276+00:00':::TIMESTAMPTZ,), ('1985-05-15 00:05:23.000069+00:00':::TIMESTAMPTZ,), ('1974-04-14 05:55:47.000474+00:00':::TIMESTAMPTZ,), ('2005-07-08 08:02:09.000616+00:00':::TIMESTAMPTZ,), ('2019-07-28 16:27:19.000327+00:00':::TIMESTAMPTZ,), ('1972-09-21 00:11:14.000096+00:00':::TIMESTAMPTZ,), ('1976-12-21 08:33:48.000764+00:00':::TIMESTAMPTZ,))) WHERE (((((((((((table1.col1_15 != 127:::INT8) AND (table1.col1_9 > e'\x00':::STRING)) OR (table1.col1_4 < (-2147483648):::INT8)) OR (table1.col1_12 >= 1:::INT8)) OR (table1.col1_2 != e'\x00':::STRING)) AND (table1.col1_8 >= (-1):::INT8)) OR (table1.col1_10 != '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_0 > e'\x00':::STRING)) AND (table1.col1_11 < 127:::INT8)) OR (table1.col1_16 <= (-9223372036854775807):::INT8)) OR (table1.col1_3 > '4714-11-24 BC':::DATE)) OR (table1.col1_5 <= '00:00:00':::TIME), UNIQUE (col1_10, col1_13 DESC, col1_5, col1_11, col1_0 DESC, col1_14, col1_15 DESC, col1_9 DESC, col1_12, col1_2, col1_4) PARTITION BY LIST (col1_10, col1_13) (PARTITION table1_part_0 VALUES IN (('2007-03-01 19:17:07.000092+00:00':::TIMESTAMPTZ, B'011111111111'), ('-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ, B'000000001111'), ('1978-04-02 16:59:36.000275+00:00':::TIMESTAMPTZ, B'111011101001')), PARTITION table1_part_1 VALUES IN (('2019-05-24 14:30:19.000648+00:00':::TIMESTAMPTZ, B'111011111111'), ('1973-01-25 22:00:43.000343+00:00':::TIMESTAMPTZ, B'110101111001'), ('2000-11-26 19:36:43.000096+00:00':::TIMESTAMPTZ, B'001000001111')), PARTITION table1_part_2 VALUES IN (('2032-05-30 10:15:36.000058+00:00':::TIMESTAMPTZ, B'011110110100'), ('1984-06-27 15:30:08.000995+00:00':::TIMESTAMPTZ, B'110100101100'), ('1979-06-01 17:15:35.000844+00:00':::TIMESTAMPTZ, B'111010001101')), PARTITION table1_part_3 VALUES IN (('2014-09-29 19:08:51.000694+00:00':::TIMESTAMPTZ, B'101110010110'), ('2023-07-15 20:12:36.000702+00:00':::TIMESTAMPTZ, B'011010110110'), ('0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, B'111101001010')), PARTITION table1_part_4 VALUES IN (('1977-05-18 10:03:57.000171+00:00':::TIMESTAMPTZ, B'010000001110'), ('2019-07-04 18:30:18.000284+00:00':::TIMESTAMPTZ, B'110101101001'), ('2001-08-27 04:40:01.000794+00:00':::TIMESTAMPTZ, B'100110000000'))) WHERE ((table1.col1_9 > 'X':::STRING) AND (table1.col1_0 <= e'\'':::STRING)) OR (table1.col1_16 != 127:::INT8), UNIQUE (col1_13 DESC, col1_3, col1_8, col1_6 DESC, col1_4 DESC), INDEX (col1_8, col1_10, col1_0 DESC, col1_14 DESC, col1_13 DESC, col1_11 DESC, col1_12, col1_15, col1_1 ASC) STORING (col1_4, col1_7, col1_9) PARTITION BY LIST (col1_8, col1_10, col1_0) (PARTITION table1_part_0 VALUES IN (((-16585):::INT8, '1974-02-01 21:00:39.000758+00:00':::TIMESTAMPTZ, e'\x00':::STRING), ((-1):::INT8, '2021-12-09 07:58:00.000932+00:00':::TIMESTAMPTZ, e'\x1cA':::STRING), (121:::INT8, '2025-03-10 12:05:33.000072+00:00':::TIMESTAMPTZ, e'?\x17':::STRING)), PARTITION table1_part_1 VALUES IN ((25167:::INT8, '2017-06-14 14:17:04.000058+00:00':::TIMESTAMPTZ, e'b\x14&~L\x02uHV':::STRING), ((-25819):::INT8, '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ, e'``\r\x10\nf7F':::STRING), ((-25128):::INT8, '1975-04-12 16:39:48.00056+00:00':::TIMESTAMPTZ, e'\U00002603':::STRING)), PARTITION table1_part_2 VALUES IN ((17524:::INT8, '2021-05-05 12:52:30.000232+00:00':::TIMESTAMPTZ, 'z?>CM{':::STRING), (10313:::INT8, '2003-04-20 20:40:02.000031+00:00':::TIMESTAMPTZ, e'\x036MGSEO\t=':::STRING), (9452:::INT8, '1979-06-18 13:08:16.000371+00:00':::TIMESTAMPTZ, e'#q\x06l\x1d':::STRING)), PARTITION table1_part_3 VALUES IN ((13888:::INT8, '1982-10-15 08:04:02.000425+00:00':::TIMESTAMPTZ, '':::STRING), (23676:::INT8, '1981-02-23 11:57:56.000745+00:00':::TIMESTAMPTZ, e',\x04N\'4':::STRING), ((-4421):::INT8, '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, '#':::STRING)), PARTITION table1_part_4 VALUES IN (((-24375):::INT8, '2020-04-03 16:54:19.000951+00:00':::TIMESTAMPTZ, '"':::STRING), (13954:::INT8, '1998-10-22 08:15:04.00088+00:00':::TIMESTAMPTZ, '':::STRING), ((-16250):::INT8, '2008-04-06 15:06:11.000877+00:00':::TIMESTAMPTZ, 'Z#!>suX*':::STRING))))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=d262a47a-ade8-4104-a648-514e140b8db1 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 (17.56s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience deprecated-branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ a80652b2e4691ea76ea49e797b1b9e0998e1d61f:

        test_1        |                     "2000-01-01 06:00:00G",
        test_1        |                 }, ""),
        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         (hostmask('::2/0':::INET::INET::INET)::INET::INET || ('2000-01-01 06:00:00':::TIMESTAMP::TIMESTAMP::TIMESTAMP || 'G':::STRING::STRING::STRING)::STRING::STRING)::STRING
        test_1        |                             AS col_69337
        test_1        |                 )
        test_1        |                     AS tab_39054
        test_1        |             ORDER BY
        test_1        |                 col_69337 NULLS FIRST;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         (hostmask('::2/0'::INET::INET::INET)::INET::INET || ('2000-01-01 06:00:00'::TIMESTAMP::TIMESTAMP::TIMESTAMP || 'G'::TEXT::TEXT::TEXT)::TEXT::TEXT)::TEXT
        test_1        |                             AS col_69337
        test_1        |                 )
        test_1        |                     AS tab_39054
        test_1        |             ORDER BY
        test_1        |                 col_69337 NULLS FIRST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.74s)
        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 INT4 NOT NULL, col1_1 GEOGRAPHY NOT NULL, col1_2 GEOGRAPHY NOT NULL, col1_3 BOX2D, col1_4 BOX2D NOT NULL, col1_5 REGCLASS NULL, col1_6 INT2 NOT NULL, col1_7 INT4 NOT NULL, col1_8 OID, col1_9 "char" NOT NULL, col1_10 INT4 NOT NULL, col1_11 INT8 NOT NULL AS (col1_7 + col1_6) VIRTUAL, col1_12 INT8 NOT NULL AS (col1_6 + (-24123):::INT8) VIRTUAL, col1_13 INT8 NOT NULL AS (((col1_10 + col1_6) + col1_0) + col1_7) VIRTUAL, col1_14 INT8 NOT NULL AS (((col1_10 + col1_6) + col1_7) + col1_0) STORED, col1_15 INT8 NOT NULL AS ((col1_6 + col1_7) + col1_10) VIRTUAL, col1_16 INT8 NOT NULL AS (col1_6 + col1_0) VIRTUAL, col1_17 STRING AS (lower(CAST(col1_8 AS STRING))) VIRTUAL, UNIQUE (col1_4) STORING (col1_3, col1_5, col1_6, col1_7, col1_8, col1_10), UNIQUE (col1_6, col1_14, col1_5 DESC, col1_10 ASC, col1_3) STORING (col1_0, col1_1, col1_2, col1_4, col1_8) WHERE ((((table1.col1_6 <= (-32768):::INT8) OR (table1.col1_15 != (-2147483648):::INT8)) AND (table1.col1_12 != 2147483647:::INT8)) OR (table1.col1_7 < (-1):::INT8)) OR (table1.col1_13 = 9223372036854775807:::INT8), FAMILY (col1_14), FAMILY (col1_10, col1_3), FAMILY (col1_9), FAMILY (col1_2, col1_1), FAMILY (col1_5), FAMILY (col1_8), FAMILY (col1_7, col1_6, col1_0), FAMILY (col1_4));
        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": 1455536, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 25, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2622009, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 16, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1744552, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 26, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3367518, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 1, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2603301, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 18, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3429550, "histo_col_type": "", "name": "__auto__", "null_count": 2453802, "row_count": 4000000}, {"avg_size": 18, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3414499, "histo_buckets": [{"distinct_range": 0, "num_eq": 6151324196050818930, "num_range": 0, "upper_bound": "BOX(-1.4852550120169994 0.2029851875636608,-0.1853034886059407 0.6842806307506727)"}, {"distinct_range": 3021742583461474000, "num_eq": 90000000, "num_range": 3021742583461474030, "upper_bound": "BOX(0.17282880469246947 0.1648166326797093,0.45270070846557164 0.7246566307896934)"}, {"distinct_range": 0, "num_eq": 3363705224532049124, "num_range": 30, "upper_bound": "BOX(1.0809706670777355 -0.7600860588462828,2.357110397848226 -0.5113554086296331)"}], "histo_col_type": "BOX2D", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 27, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1482852, "histo_col_type": "", "name": "__auto__", "null_count": 619001, "row_count": 4000000}, {"avg_size": 30, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1199238, "histo_buckets": [{"distinct_range": 0, "num_eq": 10000000, "num_range": 0, "upper_bound": "-29497"}, {"distinct_range": 1816783687064022500, "num_eq": 200000000, "num_range": 6370805803604947323, "upper_bound": "32059"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 28, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 934540, "histo_col_type": "", "name": "__auto__", "null_count": 2071714, "row_count": 4000000}, {"avg_size": 15, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1575381, "histo_col_type": "", "name": "__auto__", "null_count": 561876, "row_count": 4000000}, {"avg_size": 7, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3922165, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 18, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 821599, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 27, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 214468, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 31, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3541431, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 15, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3878525, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 15, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 224667, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 30, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3780084, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 29, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4036387086036945360, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 19, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5184834230110588482, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 18, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 284747660623090893, "histo_col_type": "", "name": "__auto__", "null_count": 6357486099109983774, "row_count": 7696829771461476408}, {"avg_size": 26, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7159701680435662496, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 22, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 50569493882053197, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 12, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1604423079318004885, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 1, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5613092650701755719, "histo_buckets": [{"distinct_range": 0, "num_eq": 4270305041701677540, "num_range": 0, "upper_bound": "BOX(-1.0321725428422857 -0.2623381165895161,1.0006670365182515 1.0787473287115896)"}, {"distinct_range": 1668537701539890200, "num_eq": 0, "num_range": 3927003542350045939, "upper_bound": "BOX(-0.2077053832223191 -0.4632084809790399,0.8486431238210588 0.6916192658331479)"}], "histo_col_type": "BOX2D", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 27, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2481008631827282383, "histo_buckets": [{"distinct_range": 0, "num_eq": 7347106532373153208, "num_range": 0, "upper_bound": "-20166"}, {"distinct_range": 1435996001575969500, "num_eq": 80, "num_range": 4278959402598935139, "upper_bound": "-12286"}, {"distinct_range": 0, "num_eq": 50, "num_range": 3265475117041184781, "upper_bound": "-11295"}, {"distinct_range": 0, "num_eq": 5000, "num_range": 200000000, "upper_bound": "-1302"}, {"distinct_range": 0, "num_eq": 6492360119128758617, "num_range": 4847930563068141896, "upper_bound": "2429"}], "histo_col_type": "INT2", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 16, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7292934373671696598, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 4, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5172803992666717418, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 10, "columns": ["col1_17"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2197032407624496528, "histo_col_type": "", "name": "__auto__", "null_count": 5197255322300100537, "row_count": 7696829771461476408}, {"avg_size": 16, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4158509351841528804, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 0, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2297166715721513832, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 18, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2757441139468234552, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 22, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 52282483768136359, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}, {"avg_size": 17, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2016946277556789718, "histo_col_type": "", "name": "__auto__", "null_count": 6180491329387398426, "row_count": 7696829771461476408}, {"avg_size": 22, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 4788729051763082004, "histo_col_type": "", "name": "__auto__", "null_count": 2241641301020432227, "row_count": 7696829771461476408}, {"avg_size": 27, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5588351625744174679, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 7696829771461476408}]':::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 (89.77s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-experience branch-release-22.2] - #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 @ 052acc88ad9d7296ce6b8b441627fb469cc74d95:

Fatal error:

panic: test timed out after 4m55s

Stack:

goroutine 14 [running]:
testing.(*M).startAlarm.func1()
    GOROOT/src/testing/testing.go:2036 +0x8e
created by time.goFunc
    GOROOT/src/time/sleep.go:176 +0x32
Log preceding fatal error

``` === RUN TestComposeCompare ```

Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ d6f98e90684894fd36f53596e6aac355676d232e:

        postgres_1    | 2022-12-15 06:17:18.385 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-12-15 06:17:18.390 UTC [68] LOG:  database system was shut down at 2022-12-15 06:17:18 UTC
        postgres_1    | 2022-12-15 06:17:18.395 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-12-15 06:17:19.911 UTC [78] ERROR:  invalid byte sequence for encoding "UTF8": 0x00
        postgres_1    | 2022-12-15 06:17:19.911 UTC [78] STATEMENT:  CREATE TABLE table2 (col2_0 UUID NOT NULL, col2_1 BIT(43) NOT NULL, col2_2 REGPROC NOT NULL, col2_3 BOX2D NOT NULL, col2_4 DATE NOT NULL, col2_5 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_3 AS TEXT))) STORED, col2_6 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_4 IS NULL THEN 'L2j8'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_7 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_0 AS TEXT))) STORED, col2_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_3 AS TEXT))) STORED, PRIMARY KEY (col2_7, col2_8, col2_5, col2_6, col2_2, col2_1, col2_4, col2_0));
        postgres_1    |     CREATE INDEX ON table2 (col2_1, col2_2 DESC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_5 DESC, col2_1 DESC, col2_6 DESC);
        postgres_1    |     CREATE INDEX ON table2 (col2_4, col2_8 DESC, col2_7 ASC, col2_1 ASC, col2_0, (CASE WHEN col2_4 IS NULL THEN '78)'::TEXT ELSE e'\x1d'::TEXT END) DESC, col2_6);
        postgres_1    |     CREATE INDEX ON table2 (col2_2, col2_7 DESC, lower(CAST(col2_0 AS TEXT)) DESC, col2_6 ASC, col2_8 ASC, (CASE WHEN col2_2 IS NULL THEN e'\x00'::TEXT ELSE e'wQ\x11z\x1f'::TEXT END) ASC, col2_1, col2_0);
        postgres_1    |     CREATE INDEX ON table2 (lower(CAST(col2_1 AS TEXT)) ASC, col2_6);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_8, col2_6, col2_5 ASC, col2_7 DESC, col2_4, lower(CAST(col2_1 AS TEXT)), col2_1);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_8 ASC, col2_7, col2_6 DESC, col2_0 ASC, col2_5, col2_2 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table2 (col2_6 ASC, col2_8, col2_5, col2_4 ASC, col2_7, col2_2, col2_1 ASC, col2_0);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.56s)
        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 (1.01s)
        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 UUID NOT NULL, col2_1 BIT(43) NOT NULL, col2_2 REGPROC NOT NULL, col2_3 BOX2D NOT NULL, col2_4 DATE NOT NULL, col2_5 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_3 AS TEXT))) STORED, col2_6 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col2_4 IS NULL THEN 'L2j8'::TEXT ELSE e'\x00'::TEXT END) STORED, col2_7 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_0 AS TEXT))) STORED, col2_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_3 AS TEXT))) STORED, PRIMARY KEY (col2_7, col2_8, col2_5, col2_6, col2_2, col2_1, col2_4, col2_0));
        test_1        |             CREATE INDEX ON table2 (col2_1, col2_2 DESC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_5 DESC, col2_1 DESC, col2_6 DESC);
        test_1        |             CREATE INDEX ON table2 (col2_4, col2_8 DESC, col2_7 ASC, col2_1 ASC, col2_0, (CASE WHEN col2_4 IS NULL THEN '78)'::TEXT ELSE e'\x1d'::TEXT END) DESC, col2_6);
        test_1        |             CREATE INDEX ON table2 (col2_2, col2_7 DESC, lower(CAST(col2_0 AS TEXT)) DESC, col2_6 ASC, col2_8 ASC, (CASE WHEN col2_2 IS NULL THEN e'\x00'::TEXT ELSE e'wQ\x11z\x1f'::TEXT END) ASC, col2_1, col2_0);
        test_1        |             CREATE INDEX ON table2 (lower(CAST(col2_1 AS TEXT)) ASC, col2_6);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_8, col2_6, col2_5 ASC, col2_7 DESC, col2_4, lower(CAST(col2_1 AS TEXT)), col2_1);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_8 ASC, col2_7, col2_6 DESC, col2_0 ASC, col2_5, col2_2 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table2 (col2_6 ASC, col2_8, col2_5, col2_4 ASC, col2_7, col2_2, col2_1 ASC, col2_0);
        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.42s)
        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 REGPROCEDURE NOT NULL, col1_1 DECIMAL NOT NULL, PRIMARY KEY (col1_0, col1_1 ASC), UNIQUE (col1_0 DESC) WHERE table1.col1_1 < (-1.234E+401):::DECIMAL, UNIQUE (col1_1 ASC) WHERE table1.col1_1 < 'NaN':::DECIMAL, UNIQUE (col1_0 ASC) WHERE table1.col1_1 = (-1):::DECIMAL, UNIQUE (col1_1) WHERE table1.col1_1 > 1:::DECIMAL, INDEX (col1_0, col1_1) WHERE table1.col1_1 < 'NaN':::DECIMAL, UNIQUE (col1_0, col1_1 ASC) WHERE table1.col1_1 = 1:::DECIMAL, UNIQUE (col1_1 ASC) WHERE table1.col1_1 < 'Infinity':::DECIMAL, UNIQUE (col1_0) WHERE table1.col1_1 != 0:::DECIMAL, INDEX (col1_0) PARTITION BY LIST (col1_0) (PARTITION table1_part_0 VALUES IN ((3050124185:::OID,), (2583361315:::OID,), (131058893:::OID,), (3269114179:::OID,), (1722445377:::OID,)), PARTITION table1_part_1 VALUES IN ((1760656405:::OID,), (322763025:::OID,), (3147365393:::OID,), (0:::OID,)), PARTITION table1_part_2 VALUES IN ((2492716793:::OID,), (215474729:::OID,), (3447512999:::OID,), (2931512511:::OID,)), PARTITION table1_part_3 VALUES IN ((3496743604:::OID,), (3875258432:::OID,), (982302247:::OID,), (2158021542:::OID,), (1604746237:::OID,)), PARTITION table1_part_4 VALUES IN ((1587922268:::OID,), (2166573293:::OID,), (2586000544:::OID,), (113004215:::OID,), (3651556546:::OID,)), PARTITION table1_part_5 VALUES IN ((1352131978:::OID,), (1487431845:::OID,), (4075651190:::OID,), (4050687385:::OID,), (4232030534:::OID,)), PARTITION table1_part_6 VALUES IN ((1356032986:::OID,), (3330970796:::OID,), (2669003704:::OID,), (685633933:::OID,)), PARTITION table1_part_7 VALUES IN ((3699683291:::OID,), (3268638459:::OID,), (2612914205:::OID,), (1314682439:::OID,), (3379315943:::OID,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))) NOT VISIBLE, FAMILY (col1_0, col1_1))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=62c5772f-9a8b-4658-821b-1d2ee8e066a6 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 (19.24s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ dcdf599e9eaee8010137167f419509ccb7627406:

        test_1        |                     AS tab_6812
        test_1        |             ORDER BY
        test_1        |                 col_9726, col_9727 DESC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_6811.col_9724 AS col_9726, tab_6811.col_9725 AS col_9727
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 ('2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, '\x45'::BYTEA::BYTEA),
        test_1        |                                 ('2000-01-01 08:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, '\x42'::BYTEA::BYTEA),
        test_1        |                                 ('2000-01-01 05:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, '\x46'::BYTEA::BYTEA),
        test_1        |                                 ('2000-01-01 00:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, '\x42'::BYTEA::BYTEA),
        test_1        |                                 ('2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, '\x47'::BYTEA::BYTEA),
        test_1        |                                 ('2000-01-01 04:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, NULL::BYTEA)
        test_1        |                         )
        test_1        |                             AS tab_6811 (col_9724, col_9725)
        test_1        |                     ORDER BY
        test_1        |                         tab_6811.col_9725 DESC NULLS FIRST, tab_6811.col_9724
        test_1        |                 )
        test_1        |                     AS tab_6812
        test_1        |             ORDER BY
        test_1        |                 col_9726, col_9727 DESC;
        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 BOOL NOT NULL, col1_1 TIME NOT NULL, col1_2 UUID NOT NULL, col1_3 BYTES NULL, col1_4 STRING NOT NULL, col1_5 REGPROCEDURE, col1_6 TIMESTAMPTZ NOT NULL, col1_7 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) VIRTUAL, col1_8 STRING NOT NULL AS (CASE WHEN col1_6 IS NULL THEN e'\x16tk':::STRING ELSE '<R':::STRING END) STORED, col1_9 STRING NOT NULL AS (lower(CAST(col1_2 AS STRING))) STORED, col1_10 STRING NOT NULL AS (CASE WHEN col1_3 IS NULL THEN e'zC\\\x15K':::STRING ELSE 'C:':::STRING END) VIRTUAL, PRIMARY KEY (col1_1 DESC, col1_2 ASC, col1_4, col1_9, col1_7, col1_8 DESC, col1_10, col1_0 ASC), UNIQUE (col1_3 ASC, col1_0, col1_1, col1_8, col1_6, col1_2 DESC, col1_9, col1_4 ASC), INDEX (col1_4 ASC, col1_8 DESC, col1_6 ASC, col1_0 ASC, col1_1 ASC, col1_10 DESC, (CASE WHEN col1_5 IS NULL THEN e'K\x17M|\x07':::STRING ELSE e'epTG\x03g@':::STRING END) ASC, col1_9 DESC, col1_3 ASC) STORING (col1_5) WHERE table1.col1_3 < e'\\xff':::BYTES, INDEX (col1_9 DESC, col1_2 ASC, col1_5 DESC, col1_10, lower(CAST(col1_1 AS STRING)) ASC, col1_7 DESC, (CASE WHEN col1_3 IS NULL THEN e'\x1c1':::STRING ELSE '':::STRING END) DESC, col1_4 ASC, col1_3 ASC, col1_8 ASC, col1_6 DESC) WHERE ((((table1.col1_4 > '"':::STRING) AND table1.col1_0) OR (table1.col1_1 > '24:00:00':::TIME)) OR (table1.col1_8 > '':::STRING)) AND (table1.col1_10 = '':::STRING), INDEX (col1_7 ASC) WHERE (((((((table1.col1_0 AND (table1.col1_9 > e'\x00':::STRING)) AND (table1.col1_1 >= '24:00:00':::TIME)) OR (table1.col1_10 <= '':::STRING)) OR (table1.col1_7 < e'\U00002603':::STRING)) OR (table1.col1_6 = '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ)) OR (table1.col1_3 = e'\\xe29883':::BYTES)) OR (table1.col1_8 != e'\x00':::STRING)) OR (table1.col1_4 = e'\U00002603':::STRING) NOT VISIBLE, UNIQUE ((CASE WHEN col1_3 IS NULL THEN e'\x049\\':::STRING ELSE e'\x00':::STRING END) ASC, col1_3, col1_10 DESC, col1_9 DESC, col1_8, col1_6 ASC, col1_4 ASC) STORING (col1_5), UNIQUE (col1_0 DESC, col1_3, col1_7 ASC, col1_4 ASC, col1_2 DESC, lower(col1_4) ASC, col1_9 ASC, col1_8 ASC) STORING (col1_5) WHERE (((table1.col1_10 >= e'\U00002603':::STRING) AND (table1.col1_6 <= '-4713-11-24 00:00:00+00:00':::TIMESTAMPTZ)) OR (table1.col1_9 >= e'\U00002603':::STRING)) AND (table1.col1_1 > '24:00:00':::TIME), FAMILY (col1_9), FAMILY (col1_5), FAMILY (col1_6, col1_3, col1_1), FAMILY (col1_2, col1_8), FAMILY (col1_0, col1_4));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 19, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6854348, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 10, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1237118, "histo_buckets": [{"distinct_range": 0, "num_eq": 800000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 0, "num_eq": 6926180739743106043, "num_range": 0, "upper_bound": " \\u000f\\u0019\'uF[[+"}, {"distinct_range": 0, "num_eq": 0, "num_range": 600000000, "upper_bound": "FcT\\u001c$p"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 12, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5390856, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 20, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1034838, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 10, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1262421, "histo_buckets": [{"distinct_range": 0, "num_eq": 1479342737726958062, "num_range": 0, "upper_bound": "\\\\x20"}, {"distinct_range": 30000000, "num_eq": 6382903777863904247, "num_range": 30000000, "upper_bound": "\\\\x65"}, {"distinct_range": 4867674166624988000, "num_eq": 1946377949009774344, "num_range": 7235278546530158913, "upper_bound": "\\\\x778390302bf980bad9"}, {"distinct_range": 0, "num_eq": 8224627449906412707, "num_range": 300, "upper_bound": "\\\\xe29883"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 3973353, "row_count": 10000000}, {"avg_size": 1, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8066090, "histo_col_type": "", "name": "__auto__", "null_count": 8683529, "row_count": 10000000}, {"avg_size": 8, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3426766, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 15, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3366952, "histo_buckets": [{"distinct_range": 0, "num_eq": 8735640982676603099, "num_range": 0, "upper_bound": "\\u0008@x"}, {"distinct_range": 600, "num_eq": 70000000000, "num_range": 600, "upper_bound": "\\u001fV"}, {"distinct_range": 3529058070012729300, "num_eq": 5081052383890534627, "num_range": 3529058070012729272, "upper_bound": "%6"}, {"distinct_range": 0, "num_eq": 100000, "num_range": 2538679292277915023, "upper_bound": "3{\\u000b\\u001f\\u0018[\\u0019\\u0011%"}, {"distinct_range": 1381.0861359364465, "num_eq": 3000000, "num_range": 3000, "upper_bound": "OOd6\\u0002<T"}, {"distinct_range": 0, "num_eq": 964851387403007879, "num_range": 4089995878353064088, "upper_bound": "R\\u001c\\u0010"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 26, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8263729, "histo_buckets": [{"distinct_range": 0, "num_eq": 273301504187275503, "num_range": 0, "upper_bound": "00:00:00"}, {"distinct_range": 12.475767429970873, "num_eq": 2000, "num_range": 60, "upper_bound": "01:32:59.185549"}, {"distinct_range": 0, "num_eq": 600000, "num_range": 90000000, "upper_bound": "01:49:27.67283"}, {"distinct_range": 0, "num_eq": 30000000, "num_range": 6000000000, "upper_bound": "02:50:37.197153"}, {"distinct_range": 0, "num_eq": 8278274343400887747, "num_range": 2374388470863117028, "upper_bound": "10:04:02.757389"}, {"distinct_range": 0, "num_eq": 900000, "num_range": 6000, "upper_bound": "19:34:59.790069"}, {"distinct_range": 0, "num_eq": 0, "num_range": 1000000, "upper_bound": "20:48:33.309101"}], "histo_col_type": "TIME", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 25, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5850489, "histo_buckets": [{"distinct_range": 0, "num_eq": 50, "num_range": 0, "upper_bound": ""}, {"distinct_range": 3227346545376874000, "num_eq": 2600316725764052089, "num_range": 3227346545376874019, "upper_bound": "\\u000c\\"\\u0001a6k_"}, {"distinct_range": 26860242.89512701, "num_eq": 1337552490571745522, "num_range": 30000000, "upper_bound": "\\u0013``"}, {"distinct_range": 2611860469242310700, "num_eq": 1324824110940967512, "num_range": 4645072060108002929, "upper_bound": "4"}, {"distinct_range": 8045559465285823000, "num_eq": 1000, "num_range": 8045559465285823202, "upper_bound": ":\\u000b4T"}, {"distinct_range": 10, "num_eq": 6672099184212066042, "num_range": 10, "upper_bound": "SZD``"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 10000000}, {"avg_size": 11, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1644156, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 11, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 98730478169994973, "histo_col_type": "", "name": "__auto__", "null_count": 42365061769533214, "row_count": 150537511058124178}, {"avg_size": 25, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 45404260180241860, "histo_buckets": [{"distinct_range": 0, "num_eq": 9000, "num_range": 0, "upper_bound": "\\u0005DS\\u001c\\u0008\\u000c"}, {"distinct_range": 800000, "num_eq": 1270342353004371339, "num_range": 800000, "upper_bound": "YF\\n8\\u001e/}ut"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 8, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 36778770414601906, "histo_buckets": [{"distinct_range": 0, "num_eq": 311127811003149692, "num_range": 0, "upper_bound": ""}, {"distinct_range": 8057978168192159000, "num_eq": 2335957547332544511, "num_range": 8057978168192158450, "upper_bound": "\\u0007s"}, {"distinct_range": 20000, "num_eq": 7473227979131784333, "num_range": 20000, "upper_bound": "\\u000c*A\\u0008R[<}"}, {"distinct_range": 278816154.38858134, "num_eq": 6017504492290607021, "num_range": 1000000000, "upper_bound": "\\""}, {"distinct_range": 3308.3356867867865, "num_eq": 5217772642002317765, "num_range": 10000, "upper_bound": "#E"}, {"distinct_range": 0, "num_eq": 947337547122644363, "num_range": 900, "upper_bound": "-\x7fY^"}, {"distinct_range": 8166293835683644000, "num_eq": 8296186983394882566, "num_range": 8166293835683644562, "upper_bound": "SvukC^&o"}, {"distinct_range": 844967.2585538083, "num_eq": 40000000000, "num_range": 2000000, "upper_bound": "X"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 27, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 134905889905058554, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 8, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 148631153938190752, "histo_buckets": [{"distinct_range": 0, "num_eq": 3307185469128707057, "num_range": 0, "upper_bound": "\\u001c~"}, {"distinct_range": 300407659377179700, "num_eq": 2262931753150013365, "num_range": 903024972275962587, "upper_bound": "$$LB\\u0008J"}, {"distinct_range": 17.729947958678018, "num_eq": 300000000, "num_range": 100, "upper_bound": ":_\\u0013\\u0012q\\u0006Nk8"}, {"distinct_range": 20000000000, "num_eq": 80000, "num_range": 20000000000, "upper_bound": "X"}, {"distinct_range": 19889111016.359722, "num_eq": 7232217665468912405, "num_range": 60000000000, "upper_bound": "k"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 18, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 108804777101380517, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 26, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 144470213635159796, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 13, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 131685437760646406, "histo_buckets": [{"distinct_range": 0, "num_eq": 30, "num_range": 0, "upper_bound": "00:00:00"}, {"distinct_range": 0, "num_eq": 5868580273888947384, "num_range": 1000000, "upper_bound": "05:08:54.849066"}, {"distinct_range": 200000000, "num_eq": 40000000, "num_range": 200000000, "upper_bound": "09:48:17.057853"}, {"distinct_range": 3365631081817379000, "num_eq": 900, "num_range": 4031515035705939044, "upper_bound": "24:00:00"}], "histo_col_type": "TIME", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 24, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 135835076390166452, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}, {"avg_size": 1, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 136206471925737852, "histo_buckets": [{"distinct_range": 0, "num_eq": 2707186702450739802, "num_range": 0, "upper_bound": "\\\\xecdc72cfc214"}, {"distinct_range": 0, "num_eq": 6000000, "num_range": 800, "upper_bound": "\\\\xff"}], "histo_col_type": "BYTES", "name": "__auto__", "null_count": 11798521047860266, "row_count": 150537511058124178}, {"avg_size": 28, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 136435731736230368, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 150537511058124178}]':::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 (32.01s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 7c8e7012b73a598f3aa1da9bbf422e833706f5d3:

        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_24212.col_41201 AS col_41202
        test_1        |                     FROM
        test_1        |                         (VALUES (9::DECIMAL::DECIMAL), (4::DECIMAL::DECIMAL), (NULL::DECIMAL), (NULL::DECIMAL))
        test_1        |                             AS tab_24212 (col_41201)
        test_1        |                     ORDER BY
        test_1        |                         tab_24212.col_41201 ASC NULLS LAST, tab_24212.col_41201 DESC NULLS FIRST
        test_1        |                 )
        test_1        |                     AS tab_24213
        test_1        |             ORDER BY
        test_1        |                 col_41202;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_24212.col_41201 AS col_41202
        test_1        |                     FROM
        test_1        |                         (VALUES (9:::DECIMAL::DECIMAL), (4:::DECIMAL::DECIMAL), (NULL::DECIMAL), (NULL::DECIMAL))
        test_1        |                             AS tab_24212 (col_41201)
        test_1        |                     ORDER BY
        test_1        |                         tab_24212.col_41201 ASC NULLS LAST, tab_24212.col_41201 DESC NULLS FIRST
        test_1        |                 )
        test_1        |                     AS tab_24213
        test_1        |             ORDER BY
        test_1        |                 col_41202;
        test_1        |             
        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:159: CREATE TABLE table4 (col4_0 DATE NOT NULL, col4_1 FLOAT4 NULL, col4_2 FLOAT4 NOT NULL, col4_3 VARCHAR NOT NULL, col4_4 "char" NOT NULL, col4_5 FLOAT8 NULL AS (col4_1 + col4_2) VIRTUAL, col4_6 FLOAT8 NOT NULL AS (col4_1 + col4_2) STORED, col4_7 STRING NOT NULL AS (CASE WHEN col4_0 IS NULL THEN '}':::STRING ELSE e']$kEwpY\\B':::STRING END) STORED, col4_8 STRING NOT NULL AS (lower(col4_3)) VIRTUAL, PRIMARY KEY (col4_2, col4_6, col4_8), UNIQUE (col4_6 ASC, col4_2 DESC, col4_8 DESC, col4_5 ASC, col4_3 DESC, col4_1 DESC, col4_7 DESC, col4_4 DESC, col4_0 DESC) WHERE (((((((table4.col4_0 < 'infinity':::DATE) AND (table4.col4_5 > (-1.0):::FLOAT8)) AND (table4.col4_6 > 1.0:::FLOAT8)) OR (table4.col4_1 >= 3.4028234663852886e+38:::FLOAT8)) AND (table4.col4_3 < e'\'':::STRING)) AND (table4.col4_8 != '':::STRING)) OR (table4.col4_7 <= e'\x00':::STRING)) AND (table4.col4_4 = '"':::STRING), UNIQUE (col4_8 ASC, col4_4, col4_0 ASC, col4_7 DESC, col4_1 ASC, col4_2 ASC, col4_6, col4_3 DESC, col4_5) PARTITION BY LIST (col4_8, col4_4, col4_0, col4_7, col4_1, col4_2, col4_6, col4_3) (PARTITION table4_part_0 VALUES IN ((e'\x1d':::STRING, 'O':::STRING, '1987-08-23':::DATE, e'k\nv&':::STRING, (-0.48488882184028625):::FLOAT8, 0.6524733901023865:::FLOAT8, (-0.6486692659173128):::FLOAT8, e'ICw\x18,,n]':::STRING), ('':::STRING, '|':::STRING, '1996-01-18':::DATE, e'ww\n':::STRING, (-0.43794840574264526):::FLOAT8, 0.4032604694366455:::FLOAT8, (-1.184243802094355):::FLOAT8, '|BNU':::STRING), (e'bX\x1e\x04R\\c\b':::STRING, 'K':::STRING, '1975-11-27':::DATE, e'"^\x06\x16&3o\x05P':::STRING, (-0.12300649285316467):::FLOAT8, (-0.5063084959983826):::FLOAT8, 1.3824657288645505:::FLOAT8, e'q\x1eS8':::STRING), (e'Hf\x01 \t2p+$':::STRING, 'r':::STRING, '1997-05-18':::DATE, e',4~\x17\r':::STRING, (-1.170681357383728):::FLOAT8, 0.3984748125076294:::FLOAT8, 0.7815245492191456:::FLOAT8, e'41\b\t\x1b_\f#n':::STRING), ('':::STRING, 'D':::STRING, '1983-11-19':::DATE, e'\x1d7$*{D':::STRING, 1.71309494972229:::FLOAT8, 0.4333045780658722:::FLOAT8, (-1.4455032270985901):::FLOAT8, e'Z\x16\x1dV93':::STRING), ('':::STRING, e'\x05':::STRING, '1983-09-19':::DATE, 'T':::STRING, (-1.0717495679855347):::FLOAT8, (-1.0):::FLOAT8, (-0.028675616267570092):::FLOAT8, e'\x14KiHtU':::STRING), ('X':::STRING, '':::STRING, '1979-02-12':::DATE, '':::STRING, 3.4028234663852886e+38:::FLOAT8, (-0.38766974210739136):::FLOAT8, (-0.7338522633274824):::FLOAT8, 'h':::STRING), ('"':::STRING, e'\'':::STRING, '1981-06-15':::DATE, e'\x06\x11R$\x1f':::STRING, (-1.5318396091461182):::FLOAT8, 1.1653943061828613:::FLOAT8, 1.7976931348623157e+308:::FLOAT8, e'\x0b*':::STRING), (e'G\x1a':::STRING, ' ':::STRING, '1975-06-10':::DATE, e'@\'J\x01l':::STRING, 1.2038859128952026:::FLOAT8, 1.2134068012237549:::FLOAT8, 1.4564810567386939:::FLOAT8, ',':::STRING)), PARTITION table4_part_1 VALUES IN ((e'i\x1exQ~\f\x03':::STRING, e'\x0e':::STRING, '5874897-12-31':::DATE, '':::STRING, 0.31596559286117554:::FLOAT8, 1.1018811464309692:::FLOAT8, (-0.7350743331384582):::FLOAT8, 'QF8,fn':::STRING), ('U``7':::STRING, '4':::STRING, '1973-04-19':::DATE, e'$``\x14':::STRING, 0.5896919369697571:::FLOAT8, 1.1153627634048462:::FLOAT8, (-1.3535829340007983):::FLOAT8, e'?<B"\x06>hm\x1a':::STRING), ('X':::STRING, e'\x10':::STRING, '1971-01-01':::DATE, 'Z':::STRING, (-2.1935641765594482):::FLOAT8, 0.2918889820575714:::FLOAT8, 1.1766784401336376:::FLOAT8, '':::STRING), (e'\x02v/*aHdm\x0f':::STRING, e'\x12':::STRING, '1970-02-24':::DATE, '4':::STRING, 1.0339325666427612:::FLOAT8, 0.653175950050354:::FLOAT8, 0.045743657436655205:::FLOAT8, e'Re:\x1f':::STRING), (e'E(\x16;\x1f':::STRING, '}':::STRING, '1976-07-03':::DATE, e'\t;':::STRING, (-0.7689664363861084):::FLOAT8, (-2.4404749870300293):::FLOAT8, 0.6659140433863637:::FLOAT8, '_{D':::STRING), (e'\x05Gu':::STRING, 'y':::STRING, '1993-05-23':::DATE, e'j\x0b)q+5':::STRING, 1.9628866910934448:::FLOAT8, 0.17303967475891113:::FLOAT8, (-0.09761268705166548):::FLOAT8, e'W\x18wk<?':::STRING), (e'z\x0f':::STRING, 'J':::STRING, '1971-05-14':::DATE, e'\b)\'Am\x11H':::STRING, 0.25554919242858887:::FLOAT8, (-0.28608179092407227):::FLOAT8, (-0.32072231461258105):::FLOAT8, e'\x149y*':::STRING), ('':::STRING, e'\x0f':::STRING, '1983-08-24':::DATE, e'\x15\rfv\x0fxG[':::STRING, (-0.16621628403663635):::FLOAT8, (-1.249680757522583):::FLOAT8, 1.536690291431375:::FLOAT8, '':::STRING), (e'\x13\x05bqn\x7f\b':::STRING, '7':::STRING, '1991-05-30':::DATE, e'sV\x02W}':::STRING, (-0.5847493410110474):::FLOAT8, 0.48387181758880615:::FLOAT8, 0.8949420538495411:::FLOAT8, e'E\x1b=\x12\x1a\x0b1':::STRING)), PARTITION table4_part_2 VALUES IN ((e'\x05L\x0b\x014e)':::STRING, e'\x06':::STRING, '-infinity':::DATE, e'7\x1cxd+g0':::STRING, 0.720515251159668:::FLOAT8, 0.9472721219062805:::FLOAT8, 1.3215112223261376:::FLOAT8, 'I``m':::STRING), (e'nm\x7f9g\x1b<D':::STRING, 'G':::STRING, '1989-01-23':::DATE, e'\x18D\x1dL\x0b':::STRING, 2.2476348876953125:::FLOAT8, 0.45050832629203796:::FLOAT8, 0.5861841890597121:::FLOAT8, '3bUrB':::STRING), (e'|\b,Nx``V':::STRING, 'i':::STRING, '1987-10-08':::DATE, '&':::STRING, 1.655918836593628:::FLOAT8, (-0.22381116449832916):::FLOAT8, (-0.6775302235740854):::FLOAT8, e'\x1aD\x02.35:':::STRING), ('':::STRING, '>':::STRING, '1994-11-04':::DATE, '_dtQ6Th@':::STRING, (-2.0186710357666016):::FLOAT8, 1.1401362419128418:::FLOAT8, 0.13990947547586569:::FLOAT8, 'I|':::STRING), (e'o\x19':::STRING, 'M':::STRING, '1976-08-12':::DATE, '':::STRING, 1.8432196378707886:::FLOAT8, (-0.49721819162368774):::FLOAT8, (-0.4984387968445123):::FLOAT8, '"':::STRING), ('':::STRING, e'\r':::STRING, '-infinity':::DATE, '"':::STRING, 0.29496580362319946:::FLOAT8, (-1.9555027484893799):::FLOAT8, (-1.0716947706693165):::FLOAT8, e'\x10_[\x18':::STRING), ('':::STRING, 't':::STRING, '1990-05-01':::DATE, 'g R4Z':::STRING, (-0.7211682200431824):::FLOAT8, (-0.3229261636734009):::FLOAT8, (-1.29696954580049):::FLOAT8, e'sjh``\x12_':::STRING), (e'\'\x1bO\x10':::STRING, 'X':::STRING, '1985-12-05':::DATE, '':::STRING, 0.3273234963417053:::FLOAT8, 0.07510099560022354:::FLOAT8, 0.4513264037746306:::FLOAT8, '':::STRING), (e'A\x07\'\x03w+o\x0b1':::STRING, 'O':::STRING, '1971-09-13':::DATE, e'Hm"\n>taAW':::STRING, (-1.9585951566696167):::FLOAT8, 0.6460299491882324:::FLOAT8, 0.4002449907320563:::FLOAT8, e'*zd&C\x1fqb':::STRING)), PARTITION table4_part_3 VALUES IN ((e'\x1e2\x13|':::STRING, e'\f':::STRING, '1989-02-03':::DATE, 'R':::STRING, 0.6957609057426453:::FLOAT8, 1.0213837623596191:::FLOAT8, 1.965922842152518:::FLOAT8, e'Yoa&!H)\x0b':::STRING), ('':::STRING, 'c':::STRING, '1976-06-08':::DATE, e'\x16k':::STRING, 0.6083894968032837:::FLOAT8, 1.3560880422592163:::FLOAT8, 0.8640603844313939:::FLOAT8, e'\x05``\x11':::STRING), ('(H=':::STRING, e'\x18':::STRING, '1995-12-20':::DATE, e'\x0e_':::STRING, 0.42846739292144775:::FLOAT8, 1.3157744407653809:::FLOAT8, 0.7600258327473006:::FLOAT8, e'$V4Tczb\x06':::STRING), ('+t':::STRING, e'\x16':::STRING, '1996-10-12':::DATE, e'((\t':::STRING, (-0.05011356249451637):::FLOAT8, (-0.4218815565109253):::FLOAT8, 5e-324:::FLOAT8, e'X\x1e\x16\x1bG\x11rGV':::STRING), (e'o^q\x12$':::STRING, e'\x1f':::STRING, '1997-02-03':::DATE, '1u>':::STRING, 0.007260100916028023:::FLOAT8, 0.4594821631908417:::FLOAT8, (-0.8128080244128332):::FLOAT8, 'X':::STRING), (e'h\x7fKhLyo[':::STRING, e'\x0f':::STRING, '1984-08-02':::DATE, e'3G\x1b8ngd':::STRING, 1.0636578798294067:::FLOAT8, (-1.0):::FLOAT8, 0.38234865024832243:::FLOAT8, e'-\x15p,\x13YN':::STRING), (e'u\x1eS\x04\x01<':::STRING, 'Y':::STRING, '1977-05-28':::DATE, e'\x1bY+.Y\x1a(V\x01':::STRING, (-0.949945867061615):::FLOAT8, (-0.1397898644208908):::FLOAT8, 0.77510533627395:::FLOAT8, e'fEO#~\x14\x1c,X':::STRING), (e'\U00002603':::STRING, e'\U00002603':::STRING, '1993-01-26':::DATE, e'\x00':::STRING, 0.675588071346283:::FLOAT8, 1.5787627696990967:::FLOAT8, (-1.6329642710144787):::FLOAT8, 'TvaO5K':::STRING), (e'ti]|#\fX':::STRING, 'd':::STRING, '1974-01-08':::DATE, e'M6y:#\x0euY':::STRING, (-0.31604787707328796):::FLOAT8, 1.2267001867294312:::FLOAT8, (-1.1505960129214325):::FLOAT8, e'2j!JG3}d\x01':::STRING)), PARTITION table4_part_4 VALUES IN (('3$}y<Z@JL':::STRING, '0':::STRING, '1974-03-13':::DATE, '':::STRING, (-0.4038507044315338):::FLOAT8, 1.0245245695114136:::FLOAT8, (-1.1695250448827854):::FLOAT8, 'b':::STRING), (e'\x07r':::STRING, '1':::STRING, '1995-08-03':::DATE, '.V':::STRING, 1.4894828796386719:::FLOAT8, (-1.0694336891174316):::FLOAT8, (-0.10900237529865303):::FLOAT8, e's\x0e\x14\x04':::STRING), (e'\'':::STRING, '^':::STRING, '1986-09-24':::DATE, e'C\x02."y\x0b':::STRING, (-1.451677680015564):::FLOAT8, 0.01872524619102478:::FLOAT8, (-0.5346989631502264):::FLOAT8, '':::STRING), ('/k hre2|':::STRING, e'\x1c':::STRING, '1997-03-20':::DATE, e'Q\x06':::STRING, 1.4176855087280273:::FLOAT8, (-1.4646892547607422):::FLOAT8, (-0.2563826364747845):::FLOAT8, 'z}F2':::STRING), (e'\'':::STRING, 'X':::STRING, '1983-11-30':::DATE, 'X':::STRING, 0.9169149398803711:::FLOAT8, (-0.27669548988342285):::FLOAT8, 0.48724875449554006:::FLOAT8, e'Tl2H<4\x14.C':::STRING), ('(':::STRING, 'b':::STRING, '1988-03-16':::DATE, e'\x068[':::STRING, 0.17959867417812347:::FLOAT8, 0.5004717707633972:::FLOAT8, (-1.0270145118543124):::FLOAT8, e'\\4``E':::STRING), (e'\x1e\f5!h':::STRING, 'U':::STRING, '1983-01-08':::DATE, e'd*\x01a\x0e':::STRING, 1.401298464324817e-45:::FLOAT8, (-0.46771082282066345):::FLOAT8, 0.050428190980681964:::FLOAT8, e'A*\x06\\':::STRING), (e'_\x065\x07q\fL':::STRING, 'G':::STRING, '1992-07-17':::DATE, e'\x15;a^\x0fD\t':::STRING, 0.29852959513664246:::FLOAT8, 0.25599613785743713:::FLOAT8, (-0.7349685168498545):::FLOAT8, e'\x05':::STRING), (e'b\x1b>2&44\x16\x0f':::STRING, '``':::STRING, '4714-11-24 BC':::DATE, e'\x12g=%G+j':::STRING, 0.4651663899421692:::FLOAT8, (-1.0720490217208862):::FLOAT8, (-0.8919218113958144):::FLOAT8, e'Tz\x1a:_)':::STRING)), PARTITION table4_part_5 VALUES IN (('3':::STRING, '+':::STRING, '1985-01-15':::DATE, e'\x1dU\t*Q\x13c':::STRING, 0.6647025346755981:::FLOAT8, 2.1261744499206543:::FLOAT8, 0.1693401255076692:::FLOAT8, e'\x7f\x0290ea<\r*':::STRING), (e'Q1=p.\x1b\'':::STRING, 'J':::STRING, '1993-11-22':::DATE, '2':::STRING, (-0.33784493803977966):::FLOAT8, 1.5569071769714355:::FLOAT8, 0.13925863376256403:::FLOAT8, e'\x7f\x0b(@0w':::STRING), (e'H\x0b$ ``':::STRING, 'B':::STRING, '1994-09-11':::DATE, e'\x1e^d8$':::STRING, 1.6556942462921143:::FLOAT8, 1.4519386291503906:::FLOAT8, (-0.3944960004220367):::FLOAT8, e'Lf\x0e~b\x06\x19&4':::STRING), (e'\x00':::STRING, ':':::STRING, '-infinity':::DATE, e'C~\x07|z\x17\x05p':::STRING, 3.4028234663852886e+38:::FLOAT8, (-0.7609713077545166):::FLOAT8, (-0.053318396502304966):::FLOAT8, e'\x00':::STRING), ('':::STRING, '}':::STRING, '1997-03-30':::DATE, e'\x14B':::STRING, (-1.318686842918396):::FLOAT8, 0.19507606327533722:::FLOAT8, 0.13249646289896866:::FLOAT8, 'i^A[W,T@C':::STRING), (e'ISp\n\f\x16':::STRING, e'\x15':::STRING, '1990-01-23':::DATE, '%':::STRING, 0.06919500976800919:::FLOAT8, 0.00928382109850645:::FLOAT8, 1.0462293451083908:::FLOAT8, e':\x1e':::STRING), ('.':::STRING, '~':::STRING, '1997-03-20':::DATE, 'RB:8BHlx':::STRING, 0.06849653273820877:::FLOAT8, (-1.201516032218933):::FLOAT8, (-0.6196219702960175):::FLOAT8, e'Rs\x12\x1f':::STRING), (e'\U00002603':::STRING, 'n':::STRING, '1974-03-27':::DATE, '':::STRING, (-0.33751553297042847):::FLOAT8, (-2.589320659637451):::FLOAT8, (-1.3177325389259695):::FLOAT8, e'5n\x15nh"f_':::STRING), ('X':::STRING, 'b':::STRING, '1973-12-17':::DATE, '88%':::STRING, 0.050735894590616226:::FLOAT8, (-0.6681627035140991):::FLOAT8, 1.141225460100953:::FLOAT8, e'M2M\x15K\'0;@':::STRING)), PARTITION table4_part_6 VALUES IN ((e'\x0f;t':::STRING, 'A':::STRING, '1978-04-02':::DATE, '"':::STRING, 0.9546855092048645:::FLOAT8, (-0.232848659157753):::FLOAT8, 1.7976931348623157e+308:::FLOAT8, 'R@wc':::STRING), (e'b\x1d#!e.\bld':::STRING, 'e':::STRING, '1984-09-15':::DATE, '':::STRING, 1.0470318794250488:::FLOAT8, (-1.527422547340393):::FLOAT8, 0.5046741986271758:::FLOAT8, e'<\'q+\x7fq3s:':::STRING), (e'\'/f@\x12T0\x17L':::STRING, '-':::STRING, '1970-10-19':::DATE, e'-5-\t\x16':::STRING, 0.535529613494873:::FLOAT8, 0.14385680854320526:::FLOAT8, (-0.6999108926685054):::FLOAT8, e'%\r?,d\x13;':::STRING), (e'\\H':::STRING, 'Y':::STRING, '1974-04-28':::DATE, e'=\x10':::STRING, (-1.0):::FLOAT8, 0.9092020988464355:::FLOAT8, (-0.6716493531040396):::FLOAT8, e'\x7f':::STRING), ('JD+Ez':::STRING, '}':::STRING, '1986-10-18':::DATE, e'W~\x19n\x19~NT':::STRING, (-0.0020642816089093685):::FLOAT8, (-2.011060953140259):::FLOAT8, (-0.8764862948432872):::FLOAT8, e'\\\x15K\x7f]b':::STRING), (e'(:k?\fPC':::STRING, 'n':::STRING, '1983-02-27':::DATE, e'\x1e\x18ZI u':::STRING, 0.8585304021835327:::FLOAT8, 0.8420377969741821:::FLOAT8, (-0.5356662932257324):::FLOAT8, '!':::STRING), (e'+\f':::STRING, 'U':::STRING, '1976-06-10':::DATE, e'K8\x0b':::STRING, (-0.6738806366920471):::FLOAT8, 0.8688384890556335:::FLOAT8, 0.9650710656996919:::FLOAT8, e'\x0bTaw':::STRING), ('':::STRING, 'v':::STRING, '1981-07-30':::DATE, e'\x05N7&RR6':::STRING, 1.6533101797103882:::FLOAT8, 2.0507800579071045:::FLOAT8, (-0.49396592276451845):::FLOAT8, e'\x1c5#':::STRING), (e'>}\x1f"uf;':::STRING, '4':::STRING, '1989-09-24':::DATE, e'\x16QOi':::STRING, 0.6470007300376892:::FLOAT8, (-0.6325691938400269):::FLOAT8, 0.6120001746088868:::FLOAT8, 'OY^42T':::STRING)), PARTITION table4_part_7 VALUES IN ((e'X.\n':::STRING, 'i':::STRING, '1972-08-16':::DATE, e'.\x1a?)\x18c':::STRING, (-2.310871124267578):::FLOAT8, 3.4028234663852886e+38:::FLOAT8, 0.6471738245239697:::FLOAT8, e'\x01':::STRING), (e'\x1aH\f\x17``MiX+':::STRING, '"':::STRING, '1985-07-30':::DATE, e'\nnT\x13qV\x1a_':::STRING, (-1.0387340784072876):::FLOAT8, 0.8832423090934753:::FLOAT8, 1.810324280802212:::FLOAT8, e',\x04~':::STRING), (e'\U00002603':::STRING, '':::STRING, '1984-06-30':::DATE, e'\x11#5\x0f)\x1a)':::STRING, (-0.5040997266769409):::FLOAT8, (-0.07643569260835648):::FLOAT8, 0.7900975167887406:::FLOAT8, e'V4\x04':::STRING), ('G':::STRING, 'N':::STRING, '1990-10-05':::DATE, 'X':::STRING, (-0.671986997127533):::FLOAT8, 0.8624625205993652:::FLOAT8, 0.0:::FLOAT8, e'T\x03\x0b\'\x17X\x1e!e':::STRING), ('':::STRING, '/':::STRING, '1995-01-06':::DATE, '&45w':::STRING, 0.14938727021217346:::FLOAT8, (-0.16643746197223663):::FLOAT8, 0.6722223025857597:::FLOAT8, e'onR\x1aTn6':::STRING), (e'FW\x15?\x0e\x18\x17':::STRING, '}':::STRING, '1989-09-19':::DATE, '':::STRING, 0.5614767670631409:::FLOAT8, (-0.04153630882501602):::FLOAT8, (-2.0268837804712985):::FLOAT8, '$Cs':::STRING), (e'J\x1ea:1':::STRING, e'\\':::STRING, '1988-10-10':::DATE, e'(\x0f%&U7*':::STRING, (-1.8563801050186157):::FLOAT8, 0.5136517286300659:::FLOAT8, 1.1082007485604284:::FLOAT8, e'p\x17(K':::STRING), ('K':::STRING, 'd':::STRING, '5874897-12-31':::DATE, e'C,^R\x12Y':::STRING, (-0.9712156653404236):::FLOAT8, (-1.7437808513641357):::FLOAT8, (-0.18598990020457346):::FLOAT8, 'dE)/;)oL+':::STRING), ('eq3Ie':::STRING, e'\f':::STRING, '1985-05-26':::DATE, ',Q':::STRING, (-0.0552300363779068):::FLOAT8, (-0.5984082221984863):::FLOAT8, 0.7448241837799898:::FLOAT8, e'GB%+$\x19xa':::STRING)), PARTITION table4_part_8 VALUES IN ((e'\x05)':::STRING, e'\x04':::STRING, '1986-01-07':::DATE, e'\x04\x076<\x1e':::STRING, (-0.07179952412843704):::FLOAT8, (-0.6075956225395203):::FLOAT8, (-1.1439780360228373):::FLOAT8, 'l*36e':::STRING), (e'@m\x1c"h':::STRING, e'\'':::STRING, '1980-05-11':::DATE, '':::STRING, (-0.5797753930091858):::FLOAT8, 0.042453110218048096:::FLOAT8, 0.9928508946079431:::FLOAT8, e'G2\x16ICk':::STRING), ('v':::STRING, e'\x0f':::STRING, '1978-07-17':::DATE, e'\x06^IJHgy.':::STRING, (-1.2008588314056396):::FLOAT8, 1.1469805240631104:::FLOAT8, 0.1250511475008511:::FLOAT8, e'i\x18^*':::STRING), (e'f\x18':::STRING, 'x':::STRING, '1971-12-23':::DATE, e'n[\bf\x0bY\x17~1':::STRING, (-0.06866615265607834):::FLOAT8, (-1.3641196489334106):::FLOAT8, 1.1630236034945565:::FLOAT8, '%~3o119':::STRING), ('r':::STRING, '"':::STRING, '1971-04-16':::DATE, e'-\x057\x18R':::STRING, 0.5564939379692078:::FLOAT8, (-0.026757199317216873):::FLOAT8, 0.3192233456946437:::FLOAT8, '.Ux':::STRING), (';':::STRING, '``':::STRING, 'infinity':::DATE, '"':::STRING, 0.6346554160118103:::FLOAT8, 0.053505878895521164:::FLOAT8, 0.2604560396528604:::FLOAT8, '':::STRING), (e'\x1a':::STRING, e'\x1f':::STRING, '1982-11-10':::DATE, e'\\aW':::STRING, (-2.3221817016601562):::FLOAT8, (-0.11508172750473022):::FLOAT8, 5e-324:::FLOAT8, e'\x1bNAN\x1a':::STRING), (e'\x06':::STRING, '9':::STRING, '1993-01-14':::DATE, e'\'':::STRING, 0.23296374082565308:::FLOAT8, (-0.49932315945625305):::FLOAT8, (-0.1657066202256251):::FLOAT8, e'p\x1d':::STRING), ('-9':::STRING, e'\x1a':::STRING, '4714-11-24 BC':::DATE, e'b_\x18':::STRING, (-0.8438215851783752):::FLOAT8, (-0.14752675592899323):::FLOAT8, (-0.9747907055799847):::FLOAT8, '':::STRING))), FAMILY (col4_3), FAMILY (col4_7, col4_1), FAMILY (col4_6, col4_4), FAMILY (col4_0, col4_2))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=39e7a151-1b61-4b60-a883-6abb51418dd9 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 (58.25s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 93ed65565357538c9048ff45c878a493f2ed9b45:

        test_1        |                                 (6:::INT8::INT8, '2000-01-02':::DATE::DATE),
        test_1        |                                 (3:::INT8::INT8, COALESCE('2000-01-02':::DATE::DATE, '2000-01-04':::DATE::DATE)),
        test_1        |                                 (9:::INT8::INT8, '2000-01-08':::DATE::DATE),
        test_1        |                                 (NULL::INT8, '2000-01-04':::DATE::DATE)
        test_1        |                         )
        test_1        |                             AS tab_62931 (col_105686, col_105687)
        test_1        |                 )
        test_1        |                     AS tab_62932
        test_1        |             ORDER BY
        test_1        |                 col_105688 ASC, col_105689 ASC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         (NULL::INT4::INT4 + tab_62931.col_105687::DATE)::DATE AS col_105688, tab_62931.col_105686 AS col_105689
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (7::INT8::INT8, '2000-01-05'::DATE::DATE),
        test_1        |                                 (6::INT8::INT8, '2000-01-02'::DATE::DATE),
        test_1        |                                 (3::INT8::INT8, COALESCE('2000-01-02'::DATE::DATE, '2000-01-04'::DATE::DATE)),
        test_1        |                                 (9::INT8::INT8, '2000-01-08'::DATE::DATE),
        test_1        |                                 (NULL::INT8, '2000-01-04'::DATE::DATE)
        test_1        |                         )
        test_1        |                             AS tab_62931 (col_105686, col_105687)
        test_1        |                 )
        test_1        |                     AS tab_62932
        test_1        |             ORDER BY
        test_1        |                 col_105688 ASC, col_105689 ASC;
        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:159: CREATE TABLE table2 (col2_0 TIMESTAMP NOT NULL, col2_1 BYTES NOT NULL, PRIMARY KEY (col2_1), UNIQUE (col2_0) WHERE table2.col2_1 <= '\xff':::BYTES, UNIQUE (col2_0 ASC) WHERE table2.col2_0 <= '-4713-11-24 00:00:00':::TIMESTAMP, INDEX (col2_1 ASC, col2_0 DESC) PARTITION BY LIST (col2_1, col2_0) (PARTITION table2_part_0 VALUES IN (('\xceaefc01':::BYTES, '1979-01-04 10:10:22.000037':::TIMESTAMP)), PARTITION table2_part_1 VALUES IN (('\x962967da1210b1fa':::BYTES, '2010-07-25 01:24:41.000864':::TIMESTAMP)), PARTITION table2_part_2 VALUES IN (('\x99c8d9349e':::BYTES, '1994-10-22 04:39:52.001':::TIMESTAMP)), PARTITION table2_part_3 VALUES IN (('\x146b':::BYTES, '1978-10-15 02:32:40.000738':::TIMESTAMP)), PARTITION table2_part_4 VALUES IN (('\x':::BYTES, '2024-03-18 18:36:06.000137':::TIMESTAMP)), PARTITION table2_part_5 VALUES IN (('\x0ba95bc1d503ed9b':::BYTES, '1989-11-27 22:30:49.000754':::TIMESTAMP)), PARTITION table2_part_6 VALUES IN (('\xf9aecb':::BYTES, '2018-01-11 07:29:32.000556':::TIMESTAMP)), PARTITION table2_part_7 VALUES IN (('\x30bcdb6761fe7b94':::BYTES, '1999-02-05 08:58:57.00027':::TIMESTAMP)), PARTITION table2_part_8 VALUES IN (('\x':::BYTES, '1995-12-12 06:20:26.000494':::TIMESTAMP)), PARTITION table2_part_9 VALUES IN (('\x2c37':::BYTES, '2015-11-06 21:01:53.000497':::TIMESTAMP))) NOT VISIBLE, UNIQUE (col2_1) WHERE (table2.col2_1 != '\x58':::BYTES) OR (table2.col2_0 != '-4713-11-24 00:00:00':::TIMESTAMP), INDEX (col2_0) WHERE table2.col2_1 > '\x22':::BYTES, INDEX (col2_0 ASC) PARTITION BY LIST (col2_0) (PARTITION table2_part_0 VALUES IN (('2031-01-24 19:16:23.000813':::TIMESTAMP,), ('1978-09-03 18:44:10.000346':::TIMESTAMP,), ('1991-06-19 19:43:10.000504':::TIMESTAMP,), ('2027-09-05 03:22:14.000598':::TIMESTAMP,), ('2011-05-14 00:27:00.00085':::TIMESTAMP,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))), UNIQUE (col2_1 DESC, col2_0 DESC) WHERE (table2.col2_1 < '\x00':::BYTES) OR (table2.col2_0 != '-4713-11-24 00:00:00':::TIMESTAMP), FAMILY (col2_0), 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=ae611cab-ebda-449f-a071-41e6d4d38192 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 (118.99s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 94e03c016955dfd64d4e15358ea92226a8f362aa:

        test_1        |             CREATE INDEX ON table1 (col1_5) INCLUDE (col1_0, col1_2, col1_6, col1_7);
        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.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 68 [running]:
        test_1        | testing.tRunner.func1.2({0x1e6e480, 0xc0007244e0})
        test_1        |     GOROOT/src/testing/testing.go:1396 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1399 +0x39f
        test_1        | panic({0x1e6e480, 0xc0007244e0})
        test_1        |     GOROOT/src/runtime/panic.go:884 +0x212
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3e086e0?, {0x2d052a8?, 0xc000627320?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:371 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2cd4960?, 0x3e086e0)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:304 +0x13c
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc000e62d00)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc000e73b60, {0xc000e3ec00?, 0x4, 0x0?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:254 +0x71f
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc000092990?, 0x20166a2?, {0xc000e3ec00?, 0x1cec2a0?, 0xc000e73b01?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1cec2a0?, {0x20166a2, 0x5}, 0x4, 0xbf?, {0xc00017da58, 0x3, 0x31e3e74?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16a
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x6920f406696798e4?, 0x6920f406696798e4?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:87 +0x186
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc000182a00?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:76 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0xc000581520?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:49 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc000581520)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc000581520, 0xc000e73b00)
        test_1        |     GOROOT/src/testing/testing.go:1446 +0x10b
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1493 +0x35f
        compare_test_1 exited with code 2
        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 2
--- FAIL: TestComposeCompare (17.05s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 61f7c816574848f804f1adf7f42f7315bfcaaeba:

        postgres_1    | CREATE EXTENSION
        postgres_1    | CREATE EXTENSION
        postgres_1    | 
        postgres_1    | waiting for server to shut down....2022-12-20 06:17:15.246 UTC [49] LOG:  received fast shutdown request
        postgres_1    | 2022-12-20 06:17:15.247 UTC [49] LOG:  aborting any active transactions
        postgres_1    | 2022-12-20 06:17:15.249 UTC [49] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
        postgres_1    | 2022-12-20 06:17:15.251 UTC [51] LOG:  shutting down
        postgres_1    | 2022-12-20 06:17:15.353 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-12-20 06:17:15.469 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-12-20 06:17:15.469 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-12-20 06:17:15.469 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-12-20 06:17:15.472 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-12-20 06:17:15.478 UTC [68] LOG:  database system was shut down at 2022-12-20 06:17:15 UTC
        postgres_1    | 2022-12-20 06:17:15.485 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-12-20 06:17:16.638 UTC [78] ERROR:  syntax error at or near "ASC" at character 158
        postgres_1    | 2022-12-20 06:17:16.638 UTC [78] STATEMENT:  CREATE TABLE table1 (col1_0 INT8 NOT NULL, col1_1 TSVECTOR NOT NULL, col1_2 GEOGRAPHY NOT NULL, INVERTED INDEX ((col1_0 + 6958846124514656307::INT8), col1_0 ASC, col1_2 ASC), INVERTED INDEX (col1_2) WHERE table1.col1_0 > 127::INT8);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.44s)
        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.97s)
        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 table1 (col1_0 INT8 NOT NULL, col1_1 TSVECTOR NOT NULL, col1_2 GEOGRAPHY NOT NULL, INVERTED INDEX ((col1_0 + 6958846124514656307::INT8), col1_0 ASC, col1_2 ASC), INVERTED INDEX (col1_2) WHERE table1.col1_0 > 127::INT8);
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: syntax error at or near "ASC" (SQLSTATE 42601)
        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:159: CREATE TABLE table2 (col2_0 TIMESTAMPTZ NOT NULL, col2_1 TIMESTAMP NOT NULL, col2_2 "char" NOT NULL, col2_3 OID NULL, col2_4 STRING NULL, col2_5 TIMETZ NOT NULL, col2_6 INT2, col2_7 OID, col2_8 "char" NOT NULL, col2_9 REGPROC NULL, col2_10 INET, col2_11 BOX2D NOT NULL, col2_12 INT8 NOT NULL, INDEX (col2_4 ASC, col2_0, col2_10, col2_6 ASC) WHERE ((table2.col2_5 != '24:00:00-15:59:00':::TIMETZ) AND (table2.col2_0 < '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table2.col2_2 != 'X':::STRING), INDEX (col2_12 ASC) NOT VISIBLE, UNIQUE (col2_5 ASC, col2_11 DESC) WHERE table2.col2_0 != '3000-01-01 00:00:00+00:00':::TIMESTAMPTZ, UNIQUE (col2_10 ASC, col2_12, col2_4 DESC, col2_8 DESC, col2_6 ASC, col2_0, col2_7 ASC, col2_9 ASC, col2_11, col2_1 ASC, col2_5, col2_2, col2_3 ASC) PARTITION BY LIST (col2_10, col2_12, col2_4, col2_8, col2_6, col2_0, col2_7, col2_9) (PARTITION table2_part_0 VALUES IN (('d14:4fa8:cd69:36d3:4356:4d57:5d1e:4afc/99':::INET, (-8526033143890388960):::INT8, ':b0c&v':::STRING, '=':::STRING, (-394):::INT8, '2002-03-05 22:02:25.000235+00:00':::TIMESTAMPTZ, 1820305973:::OID, 4070369918:::OID), ('7ead:b453:72b6:4029:2670:835:f77a:a28d/67':::INET, (-7509377799874595312):::INT8, e'sG\x183\r<\'':::STRING, 'H':::STRING, 6569:::INT8, '1986-10-18 10:09:41.000141+00:00':::TIMESTAMPTZ, 3052951862:::OID, 1556112296:::OID), ('23.214.66.5/19':::INET, 1635152415087150728:::INT8, '':::STRING, 'X':::STRING, (-17436):::INT8, '1986-09-07 09:45:09.00063+00:00':::TIMESTAMPTZ, 130773356:::OID, 0:::OID), ('c11e:d8e7:9478:2ed6:680c:c687:6df8:cf02/118':::INET, 1887839903106813500:::INT8, e'\x064p9nt/|+':::STRING, e'\x15':::STRING, (-13007):::INT8, '1970-09-06 18:06:39.000615+00:00':::TIMESTAMPTZ, 1008553171:::OID, 2283552630:::OID), ('c2b9:d849:8d4a:27a3:273c:d6bf:66bf:2d6b/25':::INET, (-248887187667438326):::INT8, e'[-?N\x0e':::STRING, 'j':::STRING, (-11219):::INT8, '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ, 1055183274:::OID, 3434540305:::OID), ('141.218.14.114/17':::INET, (-2791678587557795826):::INT8, e'\x17rb\f)':::STRING, 'T':::STRING, (-4662):::INT8, '1983-03-18 04:42:46.000337+00:00':::TIMESTAMPTZ, 972038431:::OID, 0:::OID), ('137.5.196.1/7':::INET, 1302238953473225413:::INT8, e'mX[iQW2\x0b':::STRING, e'\t':::STRING, 31231:::INT8, '2028-10-18 10:12:33.000457+00:00':::TIMESTAMPTZ, 3683616708:::OID, 1580759102:::OID), ('38.36.1.34/12':::INET, 416238156105920753:::INT8, e'5G5\x18Z':::STRING, 'a':::STRING, (-25518):::INT8, '2015-02-09 12:43:06.000346+00:00':::TIMESTAMPTZ, 1129496105:::OID, 2373949638:::OID), ('114.222.197.179':::INET, 7896601389098662427:::INT8, e'hm\x19wT':::STRING, e'\U00002603':::STRING, (-7607):::INT8, '1996-10-12 12:20:28.000734+00:00':::TIMESTAMPTZ, 3312267668:::OID, 4267122089:::OID)), PARTITION table2_part_1 VALUES IN (('9314:5d09:5533:46d0:6390:35fc:7b5a:e464/42':::INET, 4687100267632728398:::INT8, e'\x1a':::STRING, e'\x17':::STRING, (-9220):::INT8, '1983-09-28 18:11:02.000788+00:00':::TIMESTAMPTZ, 4181429282:::OID, 3787649843:::OID), ('3a11:f38:8f40:48eb:13e3:4129:2ae0:2479/106':::INET, (-5210612872334396853):::INT8, e'uA\x1e':::STRING, 'G':::STRING, 14106:::INT8, '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ, 1746338574:::OID, 4212315583:::OID), ('252.216.204.79/7':::INET, 5985502634436083471:::INT8, e'\x0eu':::STRING, 'p':::STRING, (-4932):::INT8, '1980-12-07 00:39:16.000733+00:00':::TIMESTAMPTZ, 3007226560:::OID, 3098548776:::OID), ('97.111.123.251/10':::INET, (-7898215511038526641):::INT8, 'l>':::STRING, 'e':::STRING, 159:::INT8, '2025-06-06 01:18:25.000848+00:00':::TIMESTAMPTZ, 3315745180:::OID, 2843805774:::OID), ('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff':::INET, 6770808405150934909:::INT8, e']v$)\fm{fD':::STRING, e'\x0e':::STRING, (-16487):::INT8, '2003-05-24 16:45:10.000602+00:00':::TIMESTAMPTZ, 2281701993:::OID, 3333799837:::OID), ('142.4.116.23/0':::INET, 8128068758456089107:::INT8, '':::STRING, 'N':::STRING, 20542:::INT8, '1992-07-30 10:52:55.000438+00:00':::TIMESTAMPTZ, 3551021557:::OID, 3427152450:::OID), ('f81e:c0aa:3baa:85e3:db43:3f24:791b:da7d/122':::INET, (-8600611738757571403):::INT8, e'  G\x04\x02D':::STRING, e'\x18':::STRING, (-3455):::INT8, '1980-11-10 09:30:32.000225+00:00':::TIMESTAMPTZ, 3880521056:::OID, 1777411356:::OID), ('6fc4:a516:3dfd:8f9c:7786:85b7:b29c:3e18/50':::INET, 970244126427449869:::INT8, '':::STRING, e'\r':::STRING, (-17090):::INT8, '1989-04-29 02:18:47.000757+00:00':::TIMESTAMPTZ, 3034274788:::OID, 2935022543:::OID), ('77.10.32.211/11':::INET, (-5235680450096550518):::INT8, '6l/XI':::STRING, 'k':::STRING, 10418:::INT8, '2023-04-14 23:01:05.000215+00:00':::TIMESTAMPTZ, 2838613265:::OID, 1155954203:::OID)), PARTITION "DEFAULT" VALUES IN ((DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT))) WHERE ((table2.col2_2 < e'\U00002603':::STRING) OR (table2.col2_0 != '0001-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table2.col2_4 = '"':::STRING), UNIQUE (col2_9 ASC, col2_8 ASC, col2_12, col2_7 DESC, col2_4 ASC, col2_10, col2_0, col2_2 DESC, col2_11 ASC, (col2_12 + col2_6), col2_3) STORING (col2_1, col2_6) WHERE (table2.col2_6 != 1:::INT8) AND (table2.col2_12 != (-32768):::INT8), INDEX (col2_8 DESC, col2_12 ASC, col2_9 DESC, col2_6 DESC, col2_11 DESC, col2_5 ASC, (col2_6 + col2_12) DESC, col2_2 DESC, col2_10 DESC, col2_7 DESC) WHERE (((((((table2.col2_5 > '24:00:00-15:59:00':::TIMETZ) OR (table2.col2_4 <= e'\x00':::STRING)) AND (table2.col2_1 < '-2000-01-01 00:00:00':::TIMESTAMP)) AND (table2.col2_0 < '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ)) OR (table2.col2_12 != 9223372036854775807:::INT8)) OR (table2.col2_8 = '':::STRING)) OR (table2.col2_6 != 32767:::INT8)) AND (table2.col2_2 < e'\'':::STRING), INDEX (col2_12, col2_4, col2_7 DESC, col2_2 ASC, col2_0, col2_8, col2_11 ASC, col2_1 ASC) STORING (col2_5), UNIQUE (col2_7) STORING (col2_1, col2_2, col2_3, col2_4, col2_5, col2_9, col2_11, col2_12) WHERE (table2.col2_8 >= '':::STRING) AND (table2.col2_4 <= e'\'':::STRING))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=fe245374-77b3-4ee5-ab2b-400b8792dd75 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 (19.52s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 10266a323f94c3cf397d5de590e512d987e63e22:

        test_1        |                         tab_46053.col_89204 ASC NULLS LAST
        test_1        |                 )
        test_1        |                     AS tab_46054
        test_1        |             ORDER BY
        test_1        |                 col_89206, col_89207 DESC;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::INT2VECTOR AS col_89206, tab_46053.col_89205 AS col_89207
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (NULL::INT2VECTOR, st_zmflag(NULL::GEOMETRY::GEOMETRY)::INT2),
        test_1        |                                 (NULL::INT2VECTOR, 8:::INT8::INT2),
        test_1        |                                 (NULL::INT2VECTOR, 2:::INT8::INT2),
        test_1        |                                 (NULL::INT2VECTOR, 0:::INT8::INT2)
        test_1        |                         )
        test_1        |                             AS tab_46053 (col_89204, col_89205)
        test_1        |                     ORDER BY
        test_1        |                         tab_46053.col_89204 ASC NULLS LAST
        test_1        |                 )
        test_1        |                     AS tab_46054
        test_1        |             ORDER BY
        test_1        |                 col_89206, col_89207 DESC;
        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 TIME NOT NULL, PRIMARY KEY (col1_0));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 10, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5155920669050296627, "histo_buckets": [{"distinct_range": 0, "num_eq": 400000000, "num_range": 0, "upper_bound": "01:20:27.968148"}, {"distinct_range": 0, "num_eq": 1000000, "num_range": 0, "upper_bound": "07:27:06.914184"}, {"distinct_range": 0, "num_eq": 7732482769936719378, "num_range": 70000, "upper_bound": "10:27:44.575566"}, {"distinct_range": 0, "num_eq": 130294573617936310, "num_range": 6000000000, "upper_bound": "20:04:25.844495"}], "histo_col_type": "TIME", "name": "__auto__", "null_count": 0, "row_count": 7256749646803453058}]':::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": 1209681695544367550, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1669275953367549550}]':::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 (79.53s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 15bc0c4780681d95e705c22dbe2e7d8d190054ef:

        test_1        |                                 (
        test_1        |                                     '2000-01-01 07:00:00+00:00':::TIMESTAMPTZ::TIMESTAMPTZ,
        test_1        |                                     st_box2dfromgeohash('B':::STRING::STRING::STRING)::BOX2D
        test_1        |                                 )
        test_1        |                         )
        test_1        |                             AS tab_17970 (col_36325, col_36326)
        test_1        |                 )
        test_1        |                     AS tab_17971
        test_1        |             ORDER BY
        test_1        |                 CAST(col_36327 AS STRING) DESC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_17970.col_36326 AS col_36327
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 ('2000-01-01 01:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ, NULL::BOX2D),
        test_1        |                                 (
        test_1        |                                     '2000-01-01 07:00:00+00:00'::TIMESTAMPTZ::TIMESTAMPTZ,
        test_1        |                                     st_box2dfromgeohash('B'::TEXT::TEXT::TEXT)::BOX2D
        test_1        |                                 )
        test_1        |                         )
        test_1        |                             AS tab_17970 (col_36325, col_36326)
        test_1        |                 )
        test_1        |                     AS tab_17971
        test_1        |             ORDER BY
        test_1        |                 CAST(col_36327 AS TEXT) DESC;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.19s)
        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 DATE, col1_1 DECIMAL NOT NULL, col1_2 DECIMAL NOT NULL AS (col1_1 + 3.073602150819933737E+36:::DECIMAL) STORED, PRIMARY KEY (col1_2, col1_1), UNIQUE (col1_0 DESC), UNIQUE (col1_2 DESC, col1_0 DESC, col1_1) WHERE ((table1.col1_2 != 'Infinity':::DECIMAL) AND (table1.col1_0 < '-infinity':::DATE)) OR (table1.col1_1 <= 1:::DECIMAL), INDEX (col1_2, col1_1 DESC) NOT VISIBLE, INDEX (col1_0 DESC) WHERE ((table1.col1_0 > '4714-11-24 BC':::DATE) AND (table1.col1_1 != 'Infinity':::DECIMAL)) AND (table1.col1_2 = '-Infinity':::DECIMAL), UNIQUE ((CASE WHEN col1_0 IS NULL THEN 'aPA!':::STRING ELSE e'og\x1cDu{:a':::STRING END) ASC, (col1_1 + (-1.870463276343174137E+20):::DECIMAL) DESC) STORING (col1_0), INDEX (col1_1 ASC, col1_0 DESC), INDEX (col1_1 DESC), UNIQUE (col1_2, col1_0) PARTITION BY LIST (col1_2) (PARTITION table1_part_0 VALUES IN (((-3.778486296624780856E+20):::DECIMAL,), (8.024893134498016922E+29:::DECIMAL,), (473.7134465602133018:::DECIMAL,), (22727124538265.99600:::DECIMAL,), ((-2.520332037225225802E+20):::DECIMAL,), ((-54.10113489766217055):::DECIMAL,), (4.024021384728702918E+34:::DECIMAL,)), PARTITION table1_part_1 VALUES IN ((2.788835587321246418E+24:::DECIMAL,), ((-53469264143.8691493):::DECIMAL,), (562.8003240766264503:::DECIMAL,), (872.5984653424036000:::DECIMAL,), (3.504877733191098804E+19:::DECIMAL,), ((-3.038921350436322012E+24):::DECIMAL,), (2.585160018650976418E+22:::DECIMAL,)), PARTITION table1_part_2 VALUES IN (((-297424399443694298.3):::DECIMAL,), (7351329201859220520:::DECIMAL,), ((-1.65152253070487419E+22):::DECIMAL,), ((-399283422541.5024273):::DECIMAL,), ((-1):::DECIMAL,), (1:::DECIMAL,), ((-131039974.7592791315):::DECIMAL,)), PARTITION table1_part_3 VALUES IN ((8699184.230106925749:::DECIMAL,), (8276862272386076578:::DECIMAL,), (3.900632956714727124E+34:::DECIMAL,), ((-6767246379919.564340):::DECIMAL,), ((-777269586458.5958784):::DECIMAL,), ((-6.806877926029967210E+24):::DECIMAL,), ((-6.445501540024250103E+28):::DECIMAL,)), PARTITION table1_part_4 VALUES IN ((1.632339059975581348E+28:::DECIMAL,), (0:::DECIMAL,), ((-9877.19959392240314):::DECIMAL,), (8.91355161929842002E+34:::DECIMAL,), ((-4.670961824338297621E+31):::DECIMAL,), ((-2.808827482127345670E+37):::DECIMAL,), (7232923402651317045:::DECIMAL,)), PARTITION "DEFAULT" VALUES IN ((DEFAULT,))) WHERE (table1.col1_2 > 'NaN':::DECIMAL) OR (table1.col1_1 < (-1):::DECIMAL), INDEX (col1_1, col1_0 DESC))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=25d8a60d-3b3c-4b1c-b2b7-4151903a5a24 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 (44.28s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 4232883add85a151c423c45904ac4096d04656c5:

        test_1        |               }))
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_2382.col_4957 AS col_4958
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::OID), (2:::OID::OID), (6:::OID::OID), (7:::OID::OID), (7:::OID::OID)) AS tab_2382 (col_4957)
        test_1        |                     ORDER BY
        test_1        |                         tab_2382.col_4957, tab_2382.col_4957 ASC NULLS FIRST, tab_2382.col_4957
        test_1        |                 )
        test_1        |                     AS tab_2383
        test_1        |             ORDER BY
        test_1        |                 col_4958 DESC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_2382.col_4957 AS col_4958
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::OID), (2::OID::OID), (6::OID::OID), (7::OID::OID), (7::OID::OID)) AS tab_2382 (col_4957)
        test_1        |                     ORDER BY
        test_1        |                         tab_2382.col_4957, tab_2382.col_4957 ASC NULLS FIRST, tab_2382.col_4957
        test_1        |                 )
        test_1        |                     AS tab_2383
        test_1        |             ORDER BY
        test_1        |                 col_4958 DESC;
        test_1        |             
        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 TIMETZ NOT NULL, col1_1 INET NOT NULL, col1_2 STRING NOT NULL AS (lower(CAST(col1_0 AS STRING))) STORED, PRIMARY KEY (col1_1, col1_0), INDEX (col1_2, lower(CAST(col1_0 AS STRING))) WHERE (table1.col1_2 >= e'\x00':::STRING) AND (table1.col1_0 < '24:00:00-15:59:00':::TIMETZ), UNIQUE (col1_2 DESC, col1_1 DESC) PARTITION BY LIST (col1_2) (PARTITION table1_part_0 VALUES IN ((e'\'.>yp+':::STRING,)), PARTITION table1_part_1 VALUES IN ((e'O\x01X\x7f\x16)\x18':::STRING,)), PARTITION table1_part_2 VALUES IN ((e'E8\x11\x0e':::STRING,)), PARTITION table1_part_3 VALUES IN ((e'\'wfrd|\x0f':::STRING,))) WHERE (table1.col1_2 != e'\x00':::STRING) OR (table1.col1_0 > '24:00:00-15:59:00':::TIMETZ), INVERTED INDEX (col1_0 DESC, col1_2 gin_trgm_ops ASC) WHERE table1.col1_2 != e'\x00':::STRING, UNIQUE (col1_2 DESC, col1_1, col1_0 DESC) WHERE (table1.col1_0 = '00:00:00+15:59:00':::TIMETZ) AND (table1.col1_2 != e'\U00002603':::STRING), FAMILY (col1_0, col1_1, col1_2))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=e4b17371-59e3-4da6-820d-71305c8aea6b 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 (25.04s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ c4bde8b72cdd4016845ae70ef5162b3f11fab1fb:

        test_1        |                             AS tab_15884 (col_24766)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_15885
        test_1        |             ORDER BY
        test_1        |                 col_24767;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_15884.col_24766 AS col_24767
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (4.0::FLOAT8::FLOAT4),
        test_1        |                                 (5.0::FLOAT8::FLOAT4),
        test_1        |                                 (1.0::FLOAT8::FLOAT4),
        test_1        |                                 (0.0::FLOAT8::FLOAT4),
        test_1        |                                 (6.0::FLOAT8::FLOAT4),
        test_1        |                                 (NULL::FLOAT4)
        test_1        |                         )
        test_1        |                             AS tab_15884 (col_24766)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_15885
        test_1        |             ORDER BY
        test_1        |                 col_24767;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.18s)
        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 REGPROC NULL, col3_1 INT8 NOT NULL, col3_2 OID, col3_3 DECIMAL NOT NULL, col3_4 INT4 NOT NULL, col3_5 REGNAMESPACE, col3_6 REGPROCEDURE, col3_7 REGTYPE NULL, col3_8 DATE, col3_9 INT8 NOT NULL AS (col3_1 + (-32768):::INT8) STORED, PRIMARY KEY (col3_3), INDEX (col3_8, col3_3 ASC) STORING (col3_0, col3_1, col3_5, col3_7, col3_9) WHERE ((((table3.col3_3 > '-Infinity':::DECIMAL) OR (table3.col3_9 < (-9223372036854775807):::INT8)) OR (table3.col3_1 < 1:::INT8)) OR (table3.col3_4 = (-32768):::INT8)) AND (table3.col3_8 >= 'infinity':::DATE), INDEX (col3_6 ASC, col3_2, col3_0 DESC, col3_5 DESC, col3_9, col3_7 DESC, (col3_4 + col3_1), col3_1, (CASE WHEN col3_7 IS NULL THEN e'BoT\x1d\\':::STRING ELSE e'\x01lS/L\x12Q6':::STRING END) ASC, col3_3 ASC), UNIQUE (col3_9 DESC, col3_4 DESC, col3_3 DESC, col3_8 ASC, (CASE WHEN col3_5 IS NULL THEN e'q\x05%\'\x03':::STRING ELSE e'T\x01\x0f':::STRING END), col3_2, col3_1 DESC, col3_7, (col3_4 + (-212245470):::INT8) ASC) WHERE (((table3.col3_8 > 'infinity':::DATE) OR (table3.col3_3 >= 'Infinity':::DECIMAL)) OR (table3.col3_1 <= 0:::INT8)) AND (table3.col3_4 >= (-2147483648):::INT8), UNIQUE (col3_1 ASC, col3_9 ASC, col3_7 ASC, col3_0 ASC, col3_6 DESC, col3_8) STORING (col3_2) WHERE ((((table3.col3_1 > (-32768):::INT8) OR (table3.col3_8 <= 'infinity':::DATE)) AND (table3.col3_9 >= 32767:::INT8)) AND (table3.col3_3 >= 'Infinity':::DECIMAL)) OR (table3.col3_4 <= 2147483647:::INT8), INDEX (col3_2 ASC, col3_6 ASC, col3_1 ASC, (CASE WHEN col3_6 IS NULL THEN e'hU\tI72\x1a':::STRING ELSE e'KB?|\x1f':::STRING END) ASC, col3_9 ASC, col3_7 DESC, col3_3) STORING (col3_0, col3_4, col3_5) PARTITION BY LIST (col3_2) (PARTITION table3_part_0 VALUES IN ((1100178510:::OID,), (1807881340:::OID,), (1826851574:::OID,), (1982856009:::OID,), (1350639173:::OID,), (2837947239:::OID,), (83678705:::OID,), (1023914703:::OID,)), PARTITION table3_part_1 VALUES IN ((2078506141:::OID,), (34833965:::OID,), (4225733596:::OID,), (190847363:::OID,), (1417841291:::OID,), (0:::OID,), (3286795391:::OID,)), PARTITION table3_part_2 VALUES IN ((2973218908:::OID,), (1946097164:::OID,), (378487313:::OID,), (1360852317:::OID,), (2092571903:::OID,), (2601288177:::OID,), (3532848325:::OID,), (1959376933:::OID,)), PARTITION table3_part_3 VALUES IN ((1603563794:::OID,), (3666724817:::OID,), (3959850162:::OID,), (112611041:::OID,), (4192630594:::OID,), (3710601222:::OID,), (333810508:::OID,), (52415637:::OID,)), PARTITION table3_part_4 VALUES IN ((1476843081:::OID,), (130231855:::OID,), (3273807465:::OID,), (3560089498:::OID,), (932445784:::OID,), (2304543602:::OID,)), PARTITION table3_part_5 VALUES IN ((2141690405:::OID,), (1169663937:::OID,), (3246803907:::OID,), (2218057692:::OID,), (607792530:::OID,)), PARTITION table3_part_6 VALUES IN ((1484324635:::OID,), (1417093346:::OID,), (3625973917:::OID,), (3907733284:::OID,), (2298227659:::OID,), (4133443893:::OID,), (3607866602:::OID,)), PARTITION table3_part_7 VALUES IN ((3632617402:::OID,), (3359608689:::OID,), (3171064271:::OID,), (1811553253:::OID,), (3362213408:::OID,), (3661165844:::OID,), (1667191627:::OID,), (422733569:::OID,))), UNIQUE (col3_9 DESC, col3_5, (col3_1 + col3_4) ASC, col3_1 DESC, (CASE WHEN col3_5 IS NULL THEN '=B"':::STRING ELSE '&*4<,':::STRING END) ASC, col3_7, col3_3, col3_4 ASC, col3_2 DESC) WHERE ((((table3.col3_3 = '-Infinity':::DECIMAL) AND (table3.col3_9 >= 1:::INT8)) AND (table3.col3_4 = (-32768):::INT8)) OR (table3.col3_8 != '5874897-12-31':::DATE)) OR (table3.col3_1 <= 0:::INT8), INDEX ((CASE WHEN col3_5 IS NULL THEN 'X':::STRING ELSE e'}W7\x162~':::STRING END), col3_9 DESC, col3_3 ASC, col3_5 DESC, (col3_3 + '-Infinity':::DECIMAL), col3_4 ASC, col3_0 ASC, (col3_4 + col3_1) ASC, col3_1, col3_6) STORING (col3_2) WHERE ((((table3.col3_8 <= '-infinity':::DATE) OR (table3.col3_1 <= 0:::INT8)) AND (table3.col3_3 <= 1:::DECIMAL)) OR (table3.col3_4 > 1:::INT8)) OR (table3.col3_9 != (-2147483648):::INT8) NOT VISIBLE, INDEX (col3_0 DESC, col3_2 DESC, col3_7 ASC) STORING (col3_1, col3_5, col3_6, col3_8) WHERE ((((table3.col3_8 = '4714-11-24 BC':::DATE) OR (table3.col3_3 < 'Infinity':::DECIMAL)) AND (table3.col3_4 <= 2147483647:::INT8)) OR (table3.col3_1 = 32767:::INT8)) AND (table3.col3_9 = 1:::INT8), UNIQUE (col3_9, col3_4 ASC, col3_2, col3_3 DESC, col3_1, col3_8, col3_5 ASC) WHERE ((((table3.col3_4 > 1:::INT8) OR (table3.col3_1 < (-128):::INT8)) OR (table3.col3_3 < 'NaN':::DECIMAL)) OR (table3.col3_8 <= 'infinity':::DATE)) OR (table3.col3_9 >= (-32768):::INT8))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=c9fb92c7-3b09-4fa3-b3a8-6db588daf8ba 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 (41.38s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ c4bde8b72cdd4016845ae70ef5162b3f11fab1fb:

        postgres_1    |     CREATE INDEX ON table3 (col3_1, col3_7 ASC, col3_10, col3_9, col3_2);
        postgres_1    |     CREATE INDEX ON table3 (col3_10 DESC, col3_8 ASC, col3_6, col3_0 DESC, col3_2 DESC, col3_3 ASC, col3_11 ASC, (CASE WHEN col3_4 IS NULL THEN ''::TEXT ELSE e'nr\x19m'::TEXT END) ASC, col3_1 ASC, col3_5 ASC, col3_7 DESC, col3_12 DESC);
        postgres_1    |     CREATE UNIQUE INDEX ON table3 (col3_11, col3_6 DESC, col3_3 DESC, col3_1 DESC, col3_8 DESC, col3_7, lower(CAST(col3_1 AS TEXT)) ASC, col3_2 ASC, col3_9, col3_10 DESC, col3_5 DESC, col3_12) INCLUDE (col3_4);
        postgres_1    |     CREATE UNIQUE INDEX ON table3 (col3_4, col3_7 ASC, col3_2 DESC, col3_6, col3_9);
        postgres_1    |     CREATE INDEX ON table3 (col3_12 ASC, col3_7 ASC, col3_9 DESC, col3_10 DESC, col3_11 ASC, col3_2 ASC);
        postgres_1    |     CREATE UNIQUE INDEX ON table3 (lower(CAST(col3_3 AS TEXT)), col3_5 DESC, col3_1 DESC, col3_9 DESC, col3_3, col3_7 ASC, col3_4 ASC);
        postgres_1    |     CREATE INDEX ON table3 (col3_8 DESC, col3_4 ASC, col3_12, col3_2 ASC, col3_6 ASC, col3_1 DESC, lower(col3_5) DESC, col3_5 ASC, col3_11 DESC, col3_7 ASC, col3_3 ASC, col3_10);
        postgres_1    |     CREATE UNIQUE INDEX ON table3 (lower(col3_6) DESC, col3_7, col3_3 ASC, col3_6 DESC, col3_4 ASC, col3_8, col3_0 DESC, col3_11, col3_1 DESC);
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.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/postgres (0.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:159: CREATE TABLE table3 (col3_0 OID NOT NULL, col3_1 BIT(6) NOT NULL, col3_2 DATE NOT NULL, col3_3 BIT(41) NOT NULL, col3_4 TIMESTAMP NOT NULL, col3_5 VARCHAR NOT NULL, col3_6 "char" NOT NULL, col3_7 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_4 IS NULL THEN 'A-'::TEXT ELSE e'\x00'::TEXT END) STORED, col3_8 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col3_3 AS TEXT))) STORED, col3_9 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_4 IS NULL THEN ''::TEXT ELSE 'Y6:i'::TEXT END) STORED, col3_10 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_4 IS NULL THEN e'\x07e\x02X'::TEXT ELSE 'p'::TEXT END) STORED, col3_11 TEXT GENERATED ALWAYS AS (lower(CAST(col3_0 AS TEXT))) STORED, col3_12 TEXT NOT NULL GENERATED ALWAYS AS (CASE WHEN col3_2 IS NULL THEN e'P\x1d\x11Wa_(\x13'::TEXT ELSE ''::TEXT END) STORED, PRIMARY KEY (col3_0, col3_2, col3_12, col3_3, col3_5, col3_8, col3_1));
        test_1        |             CREATE UNIQUE INDEX ON table3 (col3_5, col3_1, col3_7 ASC, col3_3 ASC);
        test_1        |             CREATE INDEX ON table3 (col3_1, col3_7 ASC, col3_10, col3_9, col3_2);
        test_1        |             CREATE INDEX ON table3 (col3_10 DESC, col3_8 ASC, col3_6, col3_0 DESC, col3_2 DESC, col3_3 ASC, col3_11 ASC, (CASE WHEN col3_4 IS NULL THEN ''::TEXT ELSE e'nr\x19m'::TEXT END) ASC, col3_1 ASC, col3_5 ASC, col3_7 DESC, col3_12 DESC);
        test_1        |             CREATE UNIQUE INDEX ON table3 (col3_11, col3_6 DESC, col3_3 DESC, col3_1 DESC, col3_8 DESC, col3_7, lower(CAST(col3_1 AS TEXT)) ASC, col3_2 ASC, col3_9, col3_10 DESC, col3_5 DESC, col3_12) INCLUDE (col3_4);
        test_1        |             CREATE UNIQUE INDEX ON table3 (col3_4, col3_7 ASC, col3_2 DESC, col3_6, col3_9);
        test_1        |             CREATE INDEX ON table3 (col3_12 ASC, col3_7 ASC, col3_9 DESC, col3_10 DESC, col3_11 ASC, col3_2 ASC);
        test_1        |             CREATE UNIQUE INDEX ON table3 (lower(CAST(col3_3 AS TEXT)), col3_5 DESC, col3_1 DESC, col3_9 DESC, col3_3, col3_7 ASC, col3_4 ASC);
        test_1        |             CREATE INDEX ON table3 (col3_8 DESC, col3_4 ASC, col3_12, col3_2 ASC, col3_6 ASC, col3_1 DESC, lower(col3_5) DESC, col3_5 ASC, col3_11 DESC, col3_7 ASC, col3_3 ASC, col3_10);
        test_1        |             CREATE UNIQUE INDEX ON table3 (lower(col3_6) DESC, col3_7, col3_3 ASC, col3_6 DESC, col3_4 ASC, col3_8, col3_0 DESC, col3_11, col3_1 DESC);
        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.65s)
        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 NULL, col1_1 REGNAMESPACE, col1_2 REGPROCEDURE NULL, col1_3 BIT(38) NULL, col1_4 STRING NOT NULL, col1_5 TSQUERY NOT NULL, col1_6 STRING NULL AS (lower(CAST(col1_3 AS STRING))) STORED, col1_7 STRING NULL AS (lower(CAST(col1_3 AS STRING))) VIRTUAL, UNIQUE (col1_7 ASC, col1_0), INDEX (col1_3, col1_7 ASC, col1_2, lower(CAST(col1_3 AS STRING)) ASC) STORING (col1_0, col1_1, col1_4, col1_5) WHERE (((table1.col1_7 = '"':::STRING) AND (table1.col1_4 < '':::STRING)) OR (table1.col1_0 <= '00:00:00':::TIME)) AND (table1.col1_6 >= 'X':::STRING) NOT VISIBLE, INDEX (col1_7 ASC, lower(CAST(col1_5 AS STRING)) DESC, col1_2, col1_6 DESC, col1_4) STORING (col1_5), INDEX (col1_1 ASC) STORING (col1_0, col1_2, col1_5) WHERE (((table1.col1_0 = '00:00:00':::TIME) OR (table1.col1_7 <= '"':::STRING)) OR (table1.col1_4 > e'\'':::STRING)) OR (table1.col1_6 != e'\U00002603':::STRING) NOT VISIBLE, FAMILY (col1_2), FAMILY (col1_4), FAMILY (col1_5, col1_0, col1_6), FAMILY (col1_3, col1_1));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 27, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 17081932844570398, "histo_col_type": "", "name": "__auto__", "null_count": 21487101537557117, "row_count": 30642051142240533}, {"avg_size": 5, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 20781761763072629, "histo_buckets": [{"distinct_range": 0, "num_eq": 900, "num_range": 0, "upper_bound": "00010001001110001110011011111011000111"}, {"distinct_range": 90, "num_eq": 3000000000, "num_range": 90, "upper_bound": "00011111011011101100000001101100101001"}, {"distinct_range": 369135171.9428661, "num_eq": 0, "num_range": 900000000, "upper_bound": "00110011011100010001000111111101011011"}, {"distinct_range": 1839497.278358285, "num_eq": 7651492307088788970, "num_range": 8000000, "upper_bound": "01111111111111111111111111111111111111"}, {"distinct_range": 5194158.621177693, "num_eq": 0, "num_range": 9000000, "upper_bound": "10100101100001111110100111000100111010"}, {"distinct_range": 0, "num_eq": 0, "num_range": 7723275111929934598, "upper_bound": "10110010100010001001010101010011110100"}, {"distinct_range": 3025081948590296600, "num_eq": 6989032324616493847, "num_range": 7571544018555736518, "upper_bound": "11011100011011011101110011111100110011"}, {"distinct_range": 3439213736330328000, "num_eq": 5726434093285234588, "num_range": 3513684445830176954, "upper_bound": "11111100110110001100010111110100001111"}], "histo_col_type": "BIT(38)", "name": "__auto__", "null_count": 30219944129204883, "row_count": 30642051142240533}, {"avg_size": 23, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 19581336347393704, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 30642051142240533}, {"avg_size": 24, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 13782784737568317, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 30642051142240533}, {"avg_size": 5, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 14463202934647910, "histo_col_type": "", "name": "__auto__", "null_count": 5760481286164217, "row_count": 30642051142240533}, {"avg_size": 13, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1088523951639488, "histo_buckets": [{"distinct_range": 0, "num_eq": 5619246120078813396, "num_range": 0, "upper_bound": ""}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 25676455489009643, "row_count": 30642051142240533}, {"avg_size": 19, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1171440120878554, "histo_col_type": "", "name": "__auto__", "null_count": 552626715413962, "row_count": 30642051142240533}, {"avg_size": 23, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 20684428500833957, "histo_buckets": [{"distinct_range": 0, "num_eq": 8000000, "num_range": 0, "upper_bound": "132861983"}, {"distinct_range": 0, "num_eq": 150393477385960729, "num_range": 40000, "upper_bound": "2805575670"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 17673569965917058, "row_count": 30642051142240533}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 18, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 48508, "histo_col_type": "", "name": "__auto__", "null_count": 24211, "row_count": 80000}, {"avg_size": 30, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 25514, "histo_buckets": [{"distinct_range": 0, "num_eq": 1613604191159822257, "num_range": 0, "upper_bound": "00000000000000000000000000000000000000"}, {"distinct_range": 200000, "num_eq": 1000000000, "num_range": 200000, "upper_bound": "00000010000011000111001110101101001011"}], "histo_col_type": "BIT(38)", "name": "__auto__", "null_count": 31531, "row_count": 80000}, {"avg_size": 10, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 44866, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 80000}, {"avg_size": 16, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 10309, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 80000}, {"avg_size": 14, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 55056, "histo_col_type": "", "name": "__auto__", "null_count": 54028, "row_count": 80000}, {"avg_size": 9, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 75590, "histo_buckets": [{"distinct_range": 0, "num_eq": 7572333018509533157, "num_range": 0, "upper_bound": "\\u0012"}, {"distinct_range": 21006534191.479855, "num_eq": 5485071825724442983, "num_range": 40000000000, "upper_bound": "\\u001am@^"}, {"distinct_range": 293531259549787800, "num_eq": 0, "num_range": 293531259549787794, "upper_bound": "\'\\u001d(fsdk\\u0012"}, {"distinct_range": 8566624328708711000, "num_eq": 500, "num_range": 8566624328708710923, "upper_bound": "?Q"}, {"distinct_range": 2885070994177481000, "num_eq": 0, "num_range": 2885070994177481453, "upper_bound": "LAW"}, {"distinct_range": 0, "num_eq": 200, "num_range": 2000, "upper_bound": "V"}, {"distinct_range": 0, "num_eq": 90000, "num_range": 0, "upper_bound": "_"}, {"distinct_range": 2666043924649669000, "num_eq": 8525963073618015245, "num_range": 4981203435482228920, "upper_bound": "zTWff="}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 50491, "row_count": 80000}, {"avg_size": 12, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 58383, "histo_col_type": "", "name": "__auto__", "null_count": 58307, "row_count": 80000}, {"avg_size": 26, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 43528, "histo_buckets": [{"distinct_range": 0, "num_eq": 2154955640931667203, "num_range": 0, "upper_bound": "2177954222"}, {"distinct_range": 2535311883898669600, "num_eq": 2000000, "num_range": 7588799639623973352, "upper_bound": "2934117455"}, {"distinct_range": 155209813.95478484, "num_eq": 6000, "num_range": 700000000, "upper_bound": "3910046090"}, {"distinct_range": 183193680406876830, "num_eq": 10000000, "num_range": 286421623328348331, "upper_bound": "4279866789"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 44352, "row_count": 80000}]':::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 (19.74s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ c4bde8b72cdd4016845ae70ef5162b3f11fab1fb:

        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_2230.col_3851 AS col_3852
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::FLOAT8), (9.0:::FLOAT8::FLOAT8), (8.0:::FLOAT8::FLOAT8), (4.0:::FLOAT8::FLOAT8))
        test_1        |                             AS tab_2230 (col_3851)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_2231
        test_1        |             ORDER BY
        test_1        |                 col_3852;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_2230.col_3851 AS col_3852
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::FLOAT8), (9.0::FLOAT8::FLOAT8), (8.0::FLOAT8::FLOAT8), (4.0::FLOAT8::FLOAT8))
        test_1        |                             AS tab_2230 (col_3851)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_2231
        test_1        |             ORDER BY
        test_1        |                 col_3852;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.32s)
        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 TIMESTAMP NOT NULL, col2_1 TIME NOT NULL, PRIMARY KEY (col2_0, col2_1 ASC), UNIQUE (col2_0, col2_1 DESC), UNIQUE (lower(CAST(col2_1 AS STRING)) ASC, col2_0 ASC), UNIQUE (col2_1, col2_0 DESC), INDEX (col2_0 ASC, col2_1 ASC) WHERE table2.col2_1 = '24:00:00':::TIME, UNIQUE (col2_0 ASC) WHERE table2.col2_0 = '-2000-01-01 00:00:00':::TIMESTAMP, UNIQUE (col2_0 DESC) WHERE table2.col2_0 > '-2000-01-01 00:00:00':::TIMESTAMP, INDEX (col2_0, col2_1), INDEX (col2_1 DESC), UNIQUE (col2_0) PARTITION BY LIST (col2_0) (PARTITION table2_part_0 VALUES IN (('1988-08-14 12:58:19.000911':::TIMESTAMP,), ('1994-01-22 01:17:27.000723':::TIMESTAMP,), ('2028-05-30 17:59:57.00014':::TIMESTAMP,)), PARTITION table2_part_1 VALUES IN (('2013-05-15 06:17:08.000484':::TIMESTAMP,), ('2022-07-19 20:08:48.000886':::TIMESTAMP,), ('2020-03-12 13:47:36.000699':::TIMESTAMP,)), PARTITION table2_part_2 VALUES IN (('2011-08-19 21:33:56.000629':::TIMESTAMP,), ('1996-10-23 21:15:13.00024':::TIMESTAMP,), ('1986-04-12 14:25:18.000089':::TIMESTAMP,)), PARTITION table2_part_3 VALUES IN (('1983-03-30 06:43:13.000561':::TIMESTAMP,), ('1975-08-08 02:29:17.000364':::TIMESTAMP,), ('2002-12-24 08:54:46.000052':::TIMESTAMP,)), PARTITION table2_part_4 VALUES IN (('1975-06-28 17:33:46.000575':::TIMESTAMP,), ('2000-12-01 03:30:21.000667':::TIMESTAMP,), ('2031-09-12 01:55:54.000464':::TIMESTAMP,)), PARTITION table2_part_5 VALUES IN (('-4713-11-24 00:00:00':::TIMESTAMP,), ('2008-05-26 07:46:56.000052':::TIMESTAMP,), ('2032-05-04 23:15:30.000824':::TIMESTAMP,)), PARTITION table2_part_6 VALUES IN (('2002-07-10 11:12:44.000005':::TIMESTAMP,), ('2002-11-09 20:45:50.000351':::TIMESTAMP,), ('1990-03-23 06:41:27.000551':::TIMESTAMP,)), PARTITION table2_part_7 VALUES IN (('2030-01-05 11:36:56.000512':::TIMESTAMP,), ('2031-09-12 10:28:02.00055':::TIMESTAMP,), ('2019-06-08 13:19:35.000761':::TIMESTAMP,))))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=ab38207a-1c1d-49a6-8998-43830ea04f90 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 (29.41s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 9c5375f6a7375724cdbcbaa0029ed97a230d7abe:

        test_1        |                             VALUES
        test_1        |                                 (NULL::INT2VECTOR, st_zmflag(NULL::GEOMETRY::GEOMETRY)::INT2, NULL::BYTES),
        test_1        |                                 (NULL::INT2VECTOR, 7:::INT8::INT2, '\x41':::BYTES::BYTES)
        test_1        |                         )
        test_1        |                             AS tab_12529 (col_18072, col_18073, col_18074)
        test_1        |                     ORDER BY
        test_1        |                         tab_12529.col_18073 DESC NULLS FIRST
        test_1        |                 )
        test_1        |                     AS tab_12530
        test_1        |             ORDER BY
        test_1        |                 col_18075 DESC, col_18076, col_18077 ASC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_12529.col_18074 AS col_18075, tab_12529.col_18073 AS col_18076, tab_12529.col_18072 AS col_18077
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (NULL::INT2VECTOR, st_zmflag(NULL::GEOMETRY::GEOMETRY)::INT2, NULL::BYTEA),
        test_1        |                                 (NULL::INT2VECTOR, 7::INT8::INT2, '\x41'::BYTEA::BYTEA)
        test_1        |                         )
        test_1        |                             AS tab_12529 (col_18072, col_18073, col_18074)
        test_1        |                     ORDER BY
        test_1        |                         tab_12529.col_18073 DESC NULLS FIRST
        test_1        |                 )
        test_1        |                     AS tab_12530
        test_1        |             ORDER BY
        test_1        |                 col_18075 DESC, col_18076, col_18077 ASC;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.32s)
        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 REGPROCEDURE NOT NULL, PRIMARY KEY (col1_0 ASC), UNIQUE (col1_0 DESC), UNIQUE (col1_0 ASC), INDEX (col1_0 DESC), INDEX (col1_0 DESC), INDEX (col1_0 DESC) PARTITION BY LIST (col1_0) (PARTITION table1_part_0 VALUES IN ((2667738882:::OID,), (561694324:::OID,)), PARTITION table1_part_1 VALUES IN ((4162658030:::OID,), (2853078116:::OID,)), PARTITION table1_part_2 VALUES IN ((1458140951:::OID,), (3839397376:::OID,)), PARTITION table1_part_3 VALUES IN ((1872999405:::OID,), (1179321335:::OID,)), PARTITION table1_part_4 VALUES IN ((4231226591:::OID,), (2078117856:::OID,)), PARTITION table1_part_5 VALUES IN ((3936790996:::OID,), (2349089225:::OID,)), PARTITION table1_part_6 VALUES IN ((3611274762:::OID,), (2998692280:::OID,)), PARTITION table1_part_7 VALUES IN ((2416610151:::OID,), (1461482870:::OID,)), PARTITION table1_part_8 VALUES IN ((4228444980:::OID,), (1808349503:::OID,)), PARTITION table1_part_9 VALUES IN ((2514275866:::OID,), (2894410472:::OID,))))
        test_1        |         compare_test.go:160: cockroach1: exec: ERROR: use of partitions requires an enterprise license. see https://cockroachlabs.com/pricing?cluster=19072528-1241-4497-88eb-01cf932155e8 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 (44.84s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 6723e00a46aaa3ea575093bd82a02b7d6f6b131b:

        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 ('00:09:00'::TIME::TIME, NULL::RECORD),
        test_1        |                                 ('00:04:00'::TIME::TIME, NULL::RECORD),
        test_1        |                                 ('00:02:00'::TIME::TIME, NULL::RECORD),
        test_1        |                                 (NULL::TIME, NULL::RECORD)
        test_1        |                         )
        test_1        |                             AS tab_1170 (col_1956, col_1957)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_1171
        test_1        |             ORDER BY
        test_1        |                 col_1958, col_1959;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         NULL::RECORD AS col_1958, tab_1170.col_1956 AS col_1959
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 ('00:09:00':::TIME::TIME, NULL::RECORD),
        test_1        |                                 ('00:04:00':::TIME::TIME, NULL::RECORD),
        test_1        |                                 ('00:02:00':::TIME::TIME, NULL::RECORD),
        test_1        |                                 (NULL::TIME, NULL::RECORD)
        test_1        |                         )
        test_1        |                             AS tab_1170 (col_1956, col_1957)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_1171
        test_1        |             ORDER BY
        test_1        |                 col_1958, col_1959;
        test_1        |             
        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 (22.40s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 64e4fc9faa4e0ab19fe5ba78f053bc2b1390cb5e:

        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_117688.col_235849 AS col_235850
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::INT8), ((2:::INT8::INT8::INT8 | 8:::INT8::INT8::INT8)::INT8)) AS tab_117688 (col_235849)
        test_1        |                     ORDER BY
        test_1        |                         tab_117688.col_235849 DESC NULLS FIRST, tab_117688.col_235849 NULLS LAST
        test_1        |                 )
        test_1        |                     AS tab_117689
        test_1        |             ORDER BY
        test_1        |                 col_235850 ASC;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_117688.col_235849 AS col_235850
        test_1        |                     FROM
        test_1        |                         (VALUES (NULL::INT8), ((2::INT8::INT8::INT8 | 8::INT8::INT8::INT8)::INT8)) AS tab_117688 (col_235849)
        test_1        |                     ORDER BY
        test_1        |                         tab_117688.col_235849 DESC NULLS FIRST, tab_117688.col_235849 NULLS LAST
        test_1        |                 )
        test_1        |                     AS tab_117689
        test_1        |             ORDER BY
        test_1        |                 col_235850 ASC;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.42s)
        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, PRIMARY KEY (col1_0 ASC), INDEX (col1_0 DESC) WHERE table1.col1_0 = '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, UNIQUE (col1_0 ASC) WHERE table1.col1_0 >= '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, UNIQUE (col1_0) WHERE table1.col1_0 = '-2000-01-01 00:00:00+00:00':::TIMESTAMPTZ, UNIQUE (col1_0 ASC) WHERE table1.col1_0 >= '294276-12-31 23:59:59.999999+00:00':::TIMESTAMPTZ, INDEX (col1_0));
        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": 611638616798768229, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "1996-04-15 13:02:08.000056+00:00"}, {"distinct_range": 0, "num_eq": 5000000, "num_range": 4269315766348396840, "upper_bound": "2009-05-21 18:23:52.00096+00:00"}, {"distinct_range": 3000000, "num_eq": 90000000000, "num_range": 3000000, "upper_bound": "2009-09-29 15:22:03.000843+00:00"}, {"distinct_range": 4708130122223903000, "num_eq": 2811696603808942196, "num_range": 4708130122223902525, "upper_bound": "2021-09-26 21:00:58.000797+00:00"}, {"distinct_range": 4920450153734996000, "num_eq": 900000, "num_range": 6961416046418320485, "upper_bound": "3000-01-01 00:00:00+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 1387455222846194468}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 13, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5656982587089507417, "histo_buckets": [{"distinct_range": 0, "num_eq": 4197390981170846477, "num_range": 0, "upper_bound": "1987-01-27 03:06:15.000585+00:00"}], "histo_col_type": "TIMESTAMPTZ", "name": "__auto__", "null_count": 0, "row_count": 5990991858123449792}]':::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 (221.91s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 250238cd29102391dddbc8cc71380090c49ce509:

        test_1        |         compare_test.go:159: CREATE TABLE table4 (col4_0 BOOL NOT NULL, col4_1 "char", col4_2 TSVECTOR NOT NULL, col4_3 DECIMAL NOT NULL, col4_4 INTERVAL NOT NULL, col4_5 VARCHAR NOT NULL, col4_6 TEXT NOT NULL GENERATED ALWAYS AS (lower(col4_5)) STORED, col4_7 DECIMAL NOT NULL GENERATED ALWAYS AS (col4_3 + (-9.041044498627996809E+29)::DECIMAL) STORED, col4_8 DECIMAL NOT NULL GENERATED ALWAYS AS (col4_3 + 'Infinity'::DECIMAL) STORED, PRIMARY KEY (col4_3));
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: invalid input syntax for type numeric: "Infinity" (SQLSTATE 22P02)
        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 66 [running]:
        test_1        | testing.tRunner.func1.2({0x1e7ad00, 0xc001e115e0})
        test_1        |     GOROOT/src/testing/testing.go:1396 +0x24e
        test_1        | testing.tRunner.func1()
        test_1        |     GOROOT/src/testing/testing.go:1399 +0x39f
        test_1        | panic({0x1e7ad00, 0xc001e115e0})
        test_1        |     GOROOT/src/runtime/panic.go:884 +0x212
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.encodeInvertedIndexHistogramUpperBounds(0x3e17740?, {0x2d16a08?, 0xc0001acb70?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:371 +0x445
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.randHistogram(0x2ce5a80?, 0x3e17740)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:304 +0x13c
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator.func1(0xc001c57d40)
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:221 +0x92
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.statisticsMutator(0xc000354ed0, {0xc001c11c80?, 0x4, 0x0?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:254 +0x71f
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.MultiStatementMutation.Mutate(0xc000093990?, 0x20247c2?, {0xc001c11c80?, 0x1cf7660?, 0xc000354e01?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/mutator.go:98 +0x2e
        test_1        | github.com/cockroachdb/cockroach/pkg/sql/randgen.RandCreateTables(0x1cf7660?, {0x20247c2, 0x5}, 0x4, 0xbf?, {0xc000039a58, 0x3, 0x31ee6c4?})
        test_1        |     github.com/cockroachdb/cockroach/pkg/sql/randgen/schema.go:90 +0x16a
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTablesN(0x26867ffd33e7735c?, 0x26867ffd33e7735c?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:87 +0x186
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.randTables(0xc000342000?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:76 +0x33
        test_1        | github.com/cockroachdb/cockroach/pkg/internal/sqlsmith.wrapCommonSetup.func1(0xc001c56b60?)
        test_1        |     github.com/cockroachdb/cockroach/pkg/internal/sqlsmith/setup.go:49 +0x22
        test_1        | github.com/cockroachdb/cockroach/pkg/compose/compare/compare.TestCompare.func2(0xc001c56b60)
        test_1        |     github.com/cockroachdb/cockroach/pkg/compose/compare/compare/compare_test.go:130 +0xe5
        test_1        | testing.tRunner(0xc001c56b60, 0xc000354e70)
        test_1        |     GOROOT/src/testing/testing.go:1446 +0x10b
        test_1        | created by testing.(*T).Run
        test_1        |     GOROOT/src/testing/testing.go:1493 +0x35f
        compare_test_1 exited with code 2
        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 2
--- FAIL: TestComposeCompare (19.67s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 0725273ac7f789ba8ed78aacaf73cc953ca47fe8:

        postgres_1    | .2022-12-31 06:18:02.299 UTC [49] LOG:  aborting any active transactions
        postgres_1    | 2022-12-31 06:18:02.301 UTC [49] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
        postgres_1    | 2022-12-31 06:18:02.303 UTC [51] LOG:  shutting down
        postgres_1    | 2022-12-31 06:18:02.401 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-12-31 06:18:02.520 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-12-31 06:18:02.520 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
        postgres_1    | 2022-12-31 06:18:02.520 UTC [1] LOG:  listening on IPv6 address "::", port 5432
        postgres_1    | 2022-12-31 06:18:02.523 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
        postgres_1    | 2022-12-31 06:18:02.528 UTC [68] LOG:  database system was shut down at 2022-12-31 06:18:02 UTC
        postgres_1    | 2022-12-31 06:18:02.533 UTC [1] LOG:  database system is ready to accept connections
        postgres_1    | 2022-12-31 06:18:03.647 UTC [78] ERROR:  syntax error at or near "ASC" at character 721
        postgres_1    | 2022-12-31 06:18:03.647 UTC [78] STATEMENT:  CREATE TABLE table2 (col2_0 FLOAT8 NULL, col2_1 INET NOT NULL, col2_2 OID, col2_3 TIME NOT NULL, col2_4 JSONB, col2_5 GEOGRAPHY, col2_6 OID, col2_7 BIT(14) NOT NULL, col2_8 VARCHAR NOT NULL, col2_9 TEXT NOT NULL, col2_10 REGTYPE, col2_11 REGNAMESPACE, col2_12 INT2 NOT NULL, col2_13 TIME, col2_14 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_7 AS TEXT))) STORED, col2_15 TEXT GENERATED ALWAYS AS (lower(CAST(col2_6 AS TEXT))) STORED, col2_16 TEXT GENERATED ALWAYS AS (CASE WHEN col2_11 IS NULL THEN ''::TEXT ELSE e'"w~4^d0\f'::TEXT END) STORED, col2_17 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_18 TEXT NOT NULL GENERATED ALWAYS AS (lower(col2_8)) STORED, INVERTED INDEX (col2_8 ASC, col2_5));
        postgres_1    |     
        test_1        | --- FAIL: TestCompare (4.62s)
        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 FLOAT8 NULL, col2_1 INET NOT NULL, col2_2 OID, col2_3 TIME NOT NULL, col2_4 JSONB, col2_5 GEOGRAPHY, col2_6 OID, col2_7 BIT(14) NOT NULL, col2_8 VARCHAR NOT NULL, col2_9 TEXT NOT NULL, col2_10 REGTYPE, col2_11 REGNAMESPACE, col2_12 INT2 NOT NULL, col2_13 TIME, col2_14 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_7 AS TEXT))) STORED, col2_15 TEXT GENERATED ALWAYS AS (lower(CAST(col2_6 AS TEXT))) STORED, col2_16 TEXT GENERATED ALWAYS AS (CASE WHEN col2_11 IS NULL THEN ''::TEXT ELSE e'"w~4^d0\f'::TEXT END) STORED, col2_17 TEXT NOT NULL GENERATED ALWAYS AS (lower(CAST(col2_1 AS TEXT))) STORED, col2_18 TEXT NOT NULL GENERATED ALWAYS AS (lower(col2_8)) STORED, INVERTED INDEX (col2_8 ASC, col2_5));
        test_1        |             
        test_1        |         compare_test.go:160: postgres: exec: ERROR: syntax error at or near "ASC" (SQLSTATE 42601)
        test_1        |     --- FAIL: TestCompare/mutators (0.55s)
        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 BIT(38) NOT NULL, col1_2 FLOAT4 NOT NULL, col1_3 TIMESTAMP NOT NULL, col1_4 JSONB NOT NULL, col1_5 BIT(42) NULL, col1_6 TIMESTAMP NOT NULL, col1_7 REGCLASS NULL, col1_8 DECIMAL NOT NULL, col1_9 FLOAT4 NOT NULL, col1_10 REGCLASS, col1_11 GEOMETRY NOT NULL, col1_12 STRING NOT NULL AS (lower(CAST(col1_4 AS STRING))) STORED, col1_13 FLOAT8 NOT NULL AS (col1_2 + col1_9) STORED, col1_14 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) VIRTUAL, col1_15 STRING NOT NULL AS (CASE WHEN col1_6 IS NULL THEN e'\x0eZ\x0e\x17k{g':::STRING ELSE e'1\x04j\x19dF':::STRING END) VIRTUAL, col1_16 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) STORED, INVERTED INDEX (col1_16 DESC, col1_7 ASC, col1_3 DESC, col1_6, col1_8, (CASE WHEN col1_3 IS NULL THEN e'Hc\nD:d@>/':::STRING ELSE '{':::STRING END), col1_15 ASC, col1_10, col1_11 ASC) WHERE (((((((((table1.col1_16 < '':::STRING) OR (table1.col1_13 > 'NaN':::FLOAT8)) AND (table1.col1_8 < 0:::DECIMAL)) AND (table1.col1_6 > '0001-01-01 00:00:00':::TIMESTAMP)) AND (table1.col1_3 = '-4713-11-24 00:00:00':::TIMESTAMP)) AND (table1.col1_9 = '+Inf':::FLOAT8)) OR (table1.col1_2 != '+Inf':::FLOAT8)) AND (table1.col1_15 < 'X':::STRING)) AND (table1.col1_14 >= e'\U00002603':::STRING)) OR (table1.col1_12 != '"':::STRING), FAMILY (col1_7, col1_0, col1_16, col1_3, col1_8), FAMILY (col1_12), FAMILY (col1_1, col1_2, col1_11, col1_5), FAMILY (col1_6, col1_9, col1_13, col1_4, col1_10));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 18, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 193927493647819452, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 21, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 732999371637347762, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 31, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 833519832284097455, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 13, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 483012905038881687, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 20, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 395538069551585585, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 29, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 750948840114810205, "histo_col_type": "", "name": "__auto__", "null_count": 633225102595904800, "row_count": 1123146190025432870}, {"avg_size": 15, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 565108706753359844, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 12, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 654275263196005460, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 7, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 92198573848671840, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 12, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 753932313758151151, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 29, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 112223525117828671, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 30, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3200412596307447, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 6, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 230173558670856648, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 5, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 29271475688415233, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 12, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 999992320857497664, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 1123146190025432870}, {"avg_size": 12, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 79950313087336670, "histo_col_type": "", "name": "__auto__", "null_count": 627720843298233414, "row_count": 1123146190025432870}, {"avg_size": 25, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 606163042252012429, "histo_col_type": "", "name": "__auto__", "null_count": 183018148804356431, "row_count": 1123146190025432870}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 17, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 919377, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 28, "columns": ["col1_11"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 397788, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 16, "columns": ["col1_14"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3916531, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 31, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1285864, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 27, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1965220, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 7, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3065120, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 7, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2865460, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 8, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2601350, "histo_col_type": "", "name": "__auto__", "null_count": 2040873, "row_count": 4000000}, {"avg_size": 24, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2513169, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 31, "columns": ["col1_10"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 890775, "histo_col_type": "", "name": "__auto__", "null_count": 3838558, "row_count": 4000000}, {"avg_size": 30, "columns": ["col1_13"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3748290, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 16, "columns": ["col1_16"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1935607, "histo_buckets": [{"distinct_range": 0, "num_eq": 3034135253482467088, "num_range": 0, "upper_bound": ""}, {"distinct_range": 6208448417552461000, "num_eq": 60000000, "num_range": 6208448417552460832, "upper_bound": "\\u001c"}, {"distinct_range": 2884857045943193000, "num_eq": 2303565601215863754, "num_range": 3926471250925759901, "upper_bound": "%"}, {"distinct_range": 745965546830989700, "num_eq": 717373080284992537, "num_range": 745965546830989759, "upper_bound": "2P\\u000e"}, {"distinct_range": 0, "num_eq": 2000000000, "num_range": 90000000, "upper_bound": "F\\u001a2\\u0008QUo\\u0003"}, {"distinct_range": 1000000, "num_eq": 0, "num_range": 1000000, "upper_bound": "_A``}\\u0002r&E~"}, {"distinct_range": 41637853697667464, "num_eq": 6045148846368174809, "num_range": 635078029379049710, "upper_bound": "j\\u0004~t\\u001c"}, {"distinct_range": 500.0563441170437, "num_eq": 50000000, "num_range": 700, "upper_bound": "v+\\r7"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 29, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1397634, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 2, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3688086, "histo_col_type": "", "name": "__auto__", "null_count": 1296791, "row_count": 4000000}, {"avg_size": 4, "columns": ["col1_15"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 170644, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 12, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3539069, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}, {"avg_size": 26, "columns": ["col1_12"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2885167, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 4000000}]':::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 (19.93s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 0725273ac7f789ba8ed78aacaf73cc953ca47fe8:

        test_1        |                     AS tab_28651
        test_1        |             ORDER BY
        test_1        |                 col_50929;
        test_1        |             
        test_1        |             postgres:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_28650.col_50928 AS col_50929
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (5::INT8::INT2),
        test_1        |                                 (1::INT8::INT2),
        test_1        |                                 (3::INT8::INT2),
        test_1        |                                 (7::INT8::INT2),
        test_1        |                                 (1::INT8::INT2),
        test_1        |                                 (NULL::INT2)
        test_1        |                         )
        test_1        |                             AS tab_28650 (col_50928)
        test_1        |                     WHERE
        test_1        |                         true::BOOL
        test_1        |                 )
        test_1        |                     AS tab_28651
        test_1        |             ORDER BY
        test_1        |                 col_50929;
        test_1        |             
        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 CHAR[] NOT NULL, col1_1 BIT(2) NULL, col1_2 DECIMAL NOT NULL, col1_3 REGNAMESPACE, PRIMARY KEY (col1_2), INDEX (col1_3 ASC, col1_2, col1_0, col1_1 ASC) WHERE table1.col1_2 = (-1):::DECIMAL NOT VISIBLE, UNIQUE (col1_2 ASC) STORING (col1_3), INDEX (col1_2 ASC, (CASE WHEN col1_3 IS NULL THEN '*':::STRING ELSE e'\r9w0X':::STRING END), col1_0 ASC, col1_1) WHERE table1.col1_2 != 'Infinity':::DECIMAL, INDEX (col1_1, col1_2, col1_3) STORING (col1_0) WHERE table1.col1_2 < 1:::DECIMAL, INDEX (col1_2 ASC, col1_1 ASC, col1_0 DESC, col1_3), UNIQUE (col1_0, col1_1 ASC, col1_3 DESC, col1_2 DESC), INDEX (col1_2, col1_3 DESC) STORING (col1_0), UNIQUE (col1_1, col1_0 DESC, col1_3 ASC) WHERE table1.col1_2 < 'Infinity':::DECIMAL, UNIQUE (col1_3 ASC) WHERE table1.col1_2 < 'Infinity':::DECIMAL, FAMILY (col1_1), FAMILY (col1_3), FAMILY (col1_0, col1_2));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 9, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3349, "histo_buckets": [{"distinct_range": 0, "num_eq": 0, "num_range": 0, "upper_bound": "01"}, {"distinct_range": 173.66748864441766, "num_eq": 6072324911408364372, "num_range": 200, "upper_bound": "10"}, {"distinct_range": 0, "num_eq": 7677297621271612274, "num_range": 900000, "upper_bound": "11"}], "histo_col_type": "BIT(2)", "name": "__auto__", "null_count": 4650, "row_count": 8000}, {"avg_size": 23, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1148, "histo_col_type": "DECIMAL", "name": "__auto__", "null_count": 0, "row_count": 8000}, {"avg_size": 2, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3272, "histo_buckets": [{"distinct_range": 0, "num_eq": 6412517009891942719, "num_range": 0, "upper_bound": "966105989"}, {"distinct_range": 404975.4735445484, "num_eq": 4000000000, "num_range": 700000, "upper_bound": "1437545182"}, {"distinct_range": 7000000, "num_eq": 2588588059739161334, "num_range": 7000000, "upper_bound": "3003419038"}, {"distinct_range": 3412174708108958700, "num_eq": 1000000, "num_range": 4956430821999289002, "upper_bound": "3064621622"}, {"distinct_range": 470186274.25665104, "num_eq": 6000000000, "num_range": 1000000000, "upper_bound": "3831468069"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 3531, "row_count": 8000}, {"avg_size": 24, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 3982, "histo_buckets": [{"distinct_range": 0, "num_eq": 6324074837455283741, "num_range": 0, "upper_bound": "ARRAY[]"}, {"distinct_range": 6095236998388536000, "num_eq": 600, "num_range": 6095236998388536449, "upper_bound": "ARRAY[\'}\':::STRING,\'@\':::STRING,\'R\':::STRING,\'*\':::STRING]"}], "histo_col_type": "CHAR[]", "name": "__auto__", "null_count": 0, "row_count": 8000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS '[{"avg_size": 8, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 54741658, "histo_buckets": [{"distinct_range": 0, "num_eq": 700000000, "num_range": 0, "upper_bound": "00"}, {"distinct_range": 0, "num_eq": 7140966187787627724, "num_range": 5379577266576650437, "upper_bound": "01"}, {"distinct_range": 1477024710120615700, "num_eq": 7000000000, "num_range": 4332213814123238396, "upper_bound": "10"}], "histo_col_type": "BIT(2)", "name": "__auto__", "null_count": 494039364, "row_count": 800000000}, {"avg_size": 5, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 221725468, "histo_buckets": [{"distinct_range": 0, "num_eq": 329139610387373275, "num_range": 0, "upper_bound": "-Infinity"}, {"distinct_range": 70000000000, "num_eq": 7243993837402759049, "num_range": 70000000000, "upper_bound": "-1.234E+401"}, {"distinct_range": 20000000, "num_eq": 20000000000, "num_range": 20000000, "upper_bound": "-8982892805950603266"}], "histo_col_type": "DECIMAL", "name": "__auto__", "null_count": 0, "row_count": 800000000}, {"avg_size": 14, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 175025850, "histo_buckets": [{"distinct_range": 0, "num_eq": 1000000000, "num_range": 0, "upper_bound": "774619239"}, {"distinct_range": 0, "num_eq": 100, "num_range": 5313197782670516552, "upper_bound": "1117415123"}, {"distinct_range": 0, "num_eq": 5041277299491998939, "num_range": 90000, "upper_bound": "1348854700"}, {"distinct_range": 0, "num_eq": 50000000000, "num_range": 0, "upper_bound": "1808386633"}, {"distinct_range": 0, "num_eq": 50000, "num_range": 10000, "upper_bound": "2461707111"}, {"distinct_range": 2852825048.7677965, "num_eq": 4097001662521074647, "num_range": 10000000000, "upper_bound": "4179883577"}], "histo_col_type": "REGNAMESPACE", "name": "__auto__", "null_count": 297108800, "row_count": 800000000}, {"avg_size": 19, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 653232108, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 800000000}]':::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 (68.02s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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 @ 0725273ac7f789ba8ed78aacaf73cc953ca47fe8:

        test_1        |                                 (NULL::GEOGRAPHY, 2.0::FLOAT8::FLOAT8, 'E'::TEXT::NAME, NULL::rand_typ_1),
        test_1        |                                 (NULL::GEOGRAPHY, 2.0::FLOAT8::FLOAT8, NULL::NAME, NULL::rand_typ_1)
        test_1        |                         )
        test_1        |                             AS tab_18179 (col_24414, col_24415, col_24416, col_24417)
        test_1        |                 )
        test_1        |                     AS tab_18180
        test_1        |             ORDER BY
        test_1        |                 col_24418 ASC, col_24419 NULLS LAST;
        test_1        |             
        test_1        |             cockroach1:
        test_1        |             SELECT
        test_1        |                 *
        test_1        |             FROM
        test_1        |                 (
        test_1        |                     SELECT
        test_1        |                         tab_18179.col_24415 AS col_24418, tab_18179.col_24416 AS col_24419
        test_1        |                     FROM
        test_1        |                         (
        test_1        |                             VALUES
        test_1        |                                 (NULL::GEOGRAPHY, NULL::FLOAT8, 'H':::STRING::NAME, NULL::rand_typ_1),
        test_1        |                                 (NULL::GEOGRAPHY, 2.0:::FLOAT8::FLOAT8, 'E':::STRING::NAME, NULL::rand_typ_1),
        test_1        |                                 (NULL::GEOGRAPHY, 2.0:::FLOAT8::FLOAT8, NULL::NAME, NULL::rand_typ_1)
        test_1        |                         )
        test_1        |                             AS tab_18179 (col_24414, col_24415, col_24416, col_24417)
        test_1        |                 )
        test_1        |                     AS tab_18180
        test_1        |             ORDER BY
        test_1        |                 col_24418 ASC, col_24419 NULLS LAST;
        test_1        |             
        test_1        |     --- FAIL: TestCompare/mutators (0.54s)
        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 TIME NOT NULL, col1_2 INT2 NOT NULL, col1_3 TSVECTOR NOT NULL, col1_4 STRING NOT NULL, col1_5 NAME NOT NULL, col1_6 REGPROCEDURE, col1_7 REGCLASS, col1_8 STRING AS (CASE WHEN col1_6 IS NULL THEN e'[\x13/\x7f\x01B':::STRING ELSE e'\x00':::STRING END) VIRTUAL, col1_9 STRING NOT NULL AS (lower(CAST(col1_1 AS STRING))) STORED, UNIQUE (col1_4, col1_5), FAMILY (col1_3, col1_4, col1_5, col1_2), FAMILY (col1_0), FAMILY (col1_9), FAMILY (col1_1), FAMILY (col1_7), FAMILY (col1_6));
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 4, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7982, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 21, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9740, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 19, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5186, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 21, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8565, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 29, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 8221, "histo_buckets": [{"distinct_range": 0, "num_eq": 5000000, "num_range": 0, "upper_bound": ""}, {"distinct_range": 5829810420605129000, "num_eq": 179023067007214527, "num_range": 6641788906634967946, "upper_bound": "\\t9pOv"}, {"distinct_range": 689670531113627800, "num_eq": 80000000, "num_range": 5150471510977213706, "upper_bound": "\\u001bP1?\\\\A\\\\*"}, {"distinct_range": 156374390.48834732, "num_eq": 4668428733209211259, "num_range": 600000000, "upper_bound": "\\u001fU\\u001dAA,\\u0014"}, {"distinct_range": 27.21574877175535, "num_eq": 30000000000, "num_range": 400, "upper_bound": "W"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 25, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 9287, "histo_col_type": "", "name": "__auto__", "null_count": 1505, "row_count": 10000}, {"avg_size": 22, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 724, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 26, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 1949, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 10000}, {"avg_size": 27, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 6379, "histo_col_type": "", "name": "__auto__", "null_count": 459, "row_count": 10000}, {"avg_size": 16, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 7414, "histo_col_type": "", "name": "__auto__", "null_count": 1613, "row_count": 10000}]':::JSONB;
        test_1        |             ALTER TABLE table1 INJECT STATISTICS e'[{"avg_size": 24, "columns": ["col1_5"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 43950, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 5, "columns": ["col1_6"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 100, "histo_col_type": "", "name": "__auto__", "null_count": 86965, "row_count": 90000}, {"avg_size": 13, "columns": ["col1_8"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 5546, "histo_col_type": "", "name": "__auto__", "null_count": 23956, "row_count": 90000}, {"avg_size": 19, "columns": ["col1_9"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 30284, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 2, "columns": ["col1_2"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 76879, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 20, "columns": ["col1_1"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2114, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 18, "columns": ["col1_3"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 42733, "histo_col_type": "", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 15, "columns": ["col1_4"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 2242, "histo_buckets": [{"distinct_range": 0, "num_eq": 6975058344510841845, "num_range": 0, "upper_bound": ""}, {"distinct_range": 7767756489284336000, "num_eq": 60000, "num_range": 7767756489284335308, "upper_bound": "\\u0017F\\t\\u0015.U2j"}, {"distinct_range": 2265280068831026200, "num_eq": 3194531502974492000, "num_range": 2265280068831026270, "upper_bound": ",YW"}, {"distinct_range": 0, "num_eq": 2000, "num_range": 4126872202086570668, "upper_bound": "2\\u0002fZ\\u000e\\u0006."}, {"distinct_range": 0, "num_eq": 4000000000, "num_range": 100000, "upper_bound": "\\\\"}, {"distinct_range": 0, "num_eq": 6000000, "num_range": 6884548978213693036, "upper_bound": "i<\\u00193\\u0017\\u0005g\x7f"}, {"distinct_range": 900000000, "num_eq": 3000000, "num_range": 900000000, "upper_bound": "vz"}], "histo_col_type": "STRING", "name": "__auto__", "null_count": 0, "row_count": 90000}, {"avg_size": 29, "columns": ["col1_7"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 84207, "histo_col_type": "", "name": "__auto__", "null_count": 19735, "row_count": 90000}, {"avg_size": 27, "columns": ["col1_0"], "created_at": "2000-01-01 00:00:00+00:00", "distinct_count": 33940, "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_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 (41.60s)
Help

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

Same failure on other branches

- #92892 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2.0] - #89361 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions branch-release-22.2] - #78068 compose: TestComposeCompare failed [C-test-failure O-robot T-sql-sessions 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!