Skip to content

feat(sql): expand function library and add zone-map document pruning#7

Open
harehare wants to merge 1 commit into
mainfrom
feat/sql-functions-and-zone-pruning
Open

feat(sql): expand function library and add zone-map document pruning#7
harehare wants to merge 1 commit into
mainfrom
feat/sql-functions-and-zone-pruning

Conversation

@harehare

Copy link
Copy Markdown
Owner

Add a comprehensive set of SQL scalar/aggregate functions (string,
numeric, null-handling, CASE, group_concat/string_agg, COUNT DISTINCT)
comparable to a general-purpose RDBMS.

Also wire ZoneMaps into SqlEngine so a single, non-joined
SELECT ... FROM blocks can skip whole documents based on lang,
depth, or heading content predicates without scanning their
blocks. Joins always disable this skip to avoid alias ambiguity.

Add a comprehensive set of SQL scalar/aggregate functions (string,
numeric, null-handling, CASE, group_concat/string_agg, COUNT DISTINCT)
comparable to a general-purpose RDBMS.

Also wire ZoneMaps into SqlEngine so a single, non-joined
`SELECT ... FROM blocks` can skip whole documents based on `lang`,
`depth`, or heading `content` predicates without scanning their
blocks. Joins always disable this skip to avoid alias ambiguity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant