Repository navigation
feat(query): a pipeable, data-last Query API next to the fluent builder - #102
Merged
Merged
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) failed after 5 runs (34 shrinks)
replay: FUZZ_SEED=1081292134 FUZZ_PATH=5:0:0:6:2:4:6:6: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 bun run fuzz -t 'generated fixtures: union results agree \(clickhouse\)'
--- input (shrunk)
{"fixture":{"orders":[],"customers":[]},"plan":{"orgId":"org_1","branches":[{"orgId":"org_1","join":undefined,"where":[{"k":"not","c":{"k":"and","style":"method","cs":[{"k":"and","style":"method","cs":[{"k":"between","neg":false,"e":{"k":"col","col":"Id"},"lo":{"k":"param","kind":"int","v":0},"hi":{"k":"param","kind":"int","v":0}},{"k":"in","neg":false,"e":{"k":"num","v":0},"values":[]}]},{"k":"like","op":"like","l":{"k":"col","col":"OrgId"},"pattern":""}]}}],"shape":{"k":"rows","select":[["id",{"k":"col","col":"Id"}],["e0",{"k":"arith","op":"mod","l":{"k":"num","v":0},"r":{"k":"arith","op":"add","l":{"k":"arith","op":"sub","l":{"k":"col","col":"Id"},"r":-3},"r":-3}}],["e1",{"k":"col","col":"Note"}]],"distinct":false,"orderBy":[],"limit":undefined,"offset":undefined},"wrap":false,"crossTenant":false},{"orgId":"org_1","join":undefined,"where":[{"k":"in","neg":false,"e":{"k":"num","v":0},"values":[]}],"shape":{"k":"rows","select":[["id",{"k":"col","col":"Id"}],["e0",{"k":"num","v":0}],["e1",{"k":"col","col":"Note"}]],"distinct":false,"orderBy":[],"limit":undefined,"offset":undefined},"wrap":false,"crossTenant":false}],"crossTenant":false,"orderBy":[["id","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,
0 % (orders.Id - -3 + -3) AS e0,
orders.Note AS e1
FROM orders
WHERE NOT (((orders.Id BETWEEN 0 AND 0 AND 1 = 0) AND orders.OrgId LIKE ''))
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,
0 AS e0,
orders.Note AS e1
FROM orders
WHERE 1 = 0
)
ORDER BY id 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)"
❯ 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