Skip to content

Commit 0b312eb

Browse files
committed
feat: add SQL frontend, runtime expression evaluator, and Counterscale conformance research
SQL parser (ported from lanceql Zig): lexer, recursive descent parser, AST → QueryDescriptor compiler. SqlWrappingExecutor handles features beyond FilterOp[] — OR, LIKE, NOT IN, HAVING, multi-column ORDER BY, CASE/CAST/arithmetic in SELECT — via runtime expression evaluation. Counterscale conformance test proves querymode handles all 7 query patterns from the popular open-source analytics dashboard (32 tests). Includes 5 "query as code" tests demonstrating what's impossible with Analytics Engine's HTTP SQL API: funnel analysis, conditional aggregation, anomaly detection, 2-query collapse, and cross-dimension analysis — all in single-pass with zero serialization boundary. Research folder adds user interview guide, interview tracker, and prospecting templates.
1 parent 88a480d commit 0b312eb

19 files changed

+4290
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"test": "vitest run -c vitest.workers.config.ts && vitest run",
2525
"test:workers": "vitest run -c vitest.workers.config.ts",
2626
"test:node": "vitest run",
27-
"test:quick": "vitest run -c vitest.workers.config.ts src/convenience.test.ts src/format.test.ts src/footer.test.ts src/decode.test.ts src/merge.test.ts src/partial-agg.test.ts src/vip-cache.test.ts src/page-processor.test.ts",
27+
"test:quick": "vitest run -c vitest.workers.config.ts src/convenience.test.ts src/format.test.ts src/footer.test.ts src/decode.test.ts src/merge.test.ts src/partial-agg.test.ts src/vip-cache.test.ts src/page-processor.test.ts src/sql/lexer.test.ts src/sql/parser.test.ts src/sql/compiler.test.ts src/sql/evaluator.test.ts src/sql/integration.test.ts",
2828
"test:watch": "vitest",
2929
"deploy": "pnpm run build && wrangler deploy",
3030
"wasm": "pnpm run build:wasm",

0 commit comments

Comments
 (0)