Repository navigation
feat: portable text search with contains, startsWith and endsWith - #114
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: query results agree (clickhouse) failed after 40 runs (17 shrinks)
replay: FUZZ_SEED=1243343457 FUZZ_PATH=41:0:0:0:0:0:16:2:2:2:2:2:2:2:2:2:2:2 bun run fuzz -t 'generated fixtures: query results agree \(clickhouse\)'
--- input (shrunk)
{"fixture":{"orders":[],"customers":[]},"plan":{"orgId":"org_1","join":undefined,"where":[{"k":"in","neg":false,"e":{"k":"col","col":"Id"},"values":[]}],"shape":{"k":"agg","keys":[["k0",{"k":"col","col":"Status"}],["k1",{"k":"col","col":"Note"}]],"aggs":[["a0",{"k":"count"}],["a1",{"k":"countIf","c":{"k":"between","neg":false,"e":{"k":"col","col":"Id"},"lo":{"k":"param","kind":"int","v":2},"hi":{"k":"value","v":1}}}],["a2",{"k":"max","e":{__proto__:null,"k":"arith","op":"div","l":{"k":"col","col":"Amount"},"r":{"k":"col","col":"Id"}}}]],"having":[{"agg":{"k":"sum","e":{"k":"arith","op":"mod","l":{"k":"col","col":"Id"},"r":{"k":"col","col":"Id"}}},"op":"eq","v":0}],"orderBy":[],"limit":undefined,"offset":undefined},"wrap":false,"crossTenant":false}}
--- error
expected 'DatabaseError' to be 'Rows' // Object.is equality
--- sql
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.Status AS k0,
orders.Note AS k1,
count() AS a0,
countIf(orders.Id BETWEEN 2 AND 1) AS a1,
max(orders.Amount / orders.Id) AS a2
FROM orders
WHERE 1 = 0
GROUP BY k0, k1
HAVING sum(orders.Id % orders.Id) = 0
--- parameters
[]
--- tenantScope
cross-tenant
--- outcome
{"_tag":"DatabaseError","message":"Code: 153. DB::Exception: Division by zero: while executing function modulo on arguments __table1.Id UInt32 Const(size = 0, UInt32(size = 1)), __table1.Id UInt32 Const(size = 0, UInt32(size = 1)). (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: query 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