Repository navigation
Annotations
2 errors and 1 notice
|
Check package, types, unit tests and live dialect
Process completed with exit code 1.
|
|
Check package, types, unit tests and live dialect:
tests/fuzz/harness.ts#L155
Error: [fuzz] generated fixtures: union results agree (clickhouse-join-nulls) failed after 53 runs (57 shrinks)
replay: FUZZ_SEED=-653094940 FUZZ_PATH=53:0:0:4:4:4:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1:1:1:1:1:1:1:1:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0 bun run fuzz -t 'generated fixtures: union results agree \(clickhouse-join-nulls\)'
--- input (shrunk)
{"fixture":{"orders":[],"customers":[]},"plan":{"orgId":"org_3","branches":[{"orgId":"org_3","join":undefined,"where":[],"shape":{"k":"rows","select":[["id",{"k":"col","col":"Id"}],["e0",{"k":"arith","op":"add","l":{"k":"arith","op":"add","l":{"k":"col","col":"Id"},"r":{"k":"col","col":"Id"}},"r":{"k":"num","v":0}}],["e1",{"k":"arith","op":"add","l":{"k":"col","col":"Id"},"r":{"k":"arith","op":"add","l":{"k":"col","col":"Id"},"r":-1}}],["e2",{"k":"arith","op":"add","l":{"k":"arith","op":"add","l":{"k":"num","v":0},"r":{"k":"num","v":0}},"r":{"k":"col","col":"Id"}}]],"distinct":false,"orderBy":[],"limit":undefined,"offset":undefined},"wrap":false,"crossTenant":false},{"orgId":"org_3","join":undefined,"where":[{"k":"between","neg":false,"e":{"k":"arith","op":"add","l":{"k":"num","v":0},"r":{"k":"num","v":0}},"lo":{"k":"param","kind":"int","v":0},"hi":{"k":"value","v":0}}],"shape":{"k":"rows","select":[["id",{"k":"col","col":"Id"}],["e0",{"k":"arith","op":"add","l":{"k":"arith","op":"add","l":{"k":"arith","op":"add","l":{"k":"col","col":"Id"},"r":{"k":"num","v":0}},"r":-1},"r":-1}],["e1",{"k":"arith","op":"mod","l":{"k":"arith","op":"add","l":{"k":"num","v":0},"r":-1},"r":{"k":"col","col":"Id"}}],["e2",{"k":"arith","op":"add","l":{"k":"arith","op":"add","l":{"k":"num","v":0},"r":1},"r":1}]],"distinct":false,"orderBy":[],"limit":undefined,"offset":undefined},"wrap":false,"crossTenant":false}],"crossTenant":false,"orderBy":[["e0","asc"]],"limit":undefined,"offset":undefined}}
--- error
expected 'DatabaseError' to be 'Rows' // Object.is equality
--- sql
SELECT * FROM (
WITH orders AS (
SELECT CAST('' AS String) AS "OrgId", CAST(0 AS UInt32) AS "Id", CAST('' AS String) AS "Customer", CAST(0 AS Int64) AS "Amount", CAST('' AS String) AS "Status", CAST(NULL AS Nullable(String)) AS "Note", CAST('2026-01-01 00:00:00.000' AS DateTime64(3, 'UTC')) AS "Created" WHERE 1 = 0
),
customers AS (
SELECT CAST('' AS String) AS "OrgId", CAST('' AS String) AS "Name", CAST('' AS String) AS "Tier" WHERE 1 = 0
)
SELECT
orders.Id AS id,
orders.Id + orders.Id + 0 AS e0,
orders.Id + (orders.Id + -1) AS e1,
0 + 0 + orders.Id AS e2
FROM orders
UNION ALL
WITH orders AS (
SELECT CAST('' AS String) AS "OrgId", CAST(0 AS UInt32) AS "Id", CAST('' AS String) AS "Customer", CAST(0 AS Int64) AS "Amount", CAST('' AS String) AS "Status", CAST(NULL AS Nullable(String)) AS "Note", CAST('2026-01-01 00:00:00.000' AS DateTime64(3, 'UTC')) AS "Created" WHERE 1 = 0
),
customers AS (
SELECT CAST('' AS String) AS "OrgId", CAST('' AS String) AS "Name", CAST('' AS String) AS "Tier" WHERE 1 = 0
)
SELECT
orders.Id AS id,
orders.Id + 0 + -1 + -1 AS e0,
0 + -1 % orders.Id AS e1,
0 + 1 + 1 AS e2
FROM orders
WHERE 0 + 0 BETWEEN 0 AND 0
)
ORDER BY CAST(e0 AS Nullable(Float64)) ASC, accurateCastOrNull(e0, 'Int128') ASC
--- parameters
[]
--- tenantScope
cross-tenant
--- outcome
{"_tag":"DatabaseError","message":"Code: 153. DB::Exception: Division by zero. (ILLEGAL_DIVISION) (version 26.8.2.7 (official build))"}
--- expected
[]
--- pin it: add the input above to tests/fuzz/regressions.ts under a key matching "generated fixtures: union results agree (clickhouse-join-nulls)"
❯ property tests/fuzz/harness.ts:155:8
|
|
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
background
wait
wait-all
cancel
parallel
Loading