You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c3a2295
Browse filesBrowse the repository at this point in the historyBrowse files
feat: support quoted mixed-case columns and read SQL with adapter lexical rules (#1270)
- Every compile-time scanner (declaration references, macro calls, SQL macros, `@@` interpolation) reads strings and comments with the adapter's lexical rules, including E-strings; `@py` arguments use Python string rules.
- Quoted mixed-case column names such as `"listingId"` work in MODEL headers, fixtures, contracts, Snowflake planning and builds, and runtime contract, type-enforcement, incremental and diff checks match them as the compiler does.
- DuckDB existence checks follow `SET search_path`, case-insensitively.
- A build reuses the planner's Snowflake schema listings for up to a minute.
- **Behaviour change:** a `rule_ignores` path without glob characters that does not exist now fails compilation, as `rule_exceptions` already did.
- `sqb query` shows transient progress only for slow steps; the Snowflake adapter turns off connector platform detection unless the user set `SNOWFLAKE_DISABLE_PLATFORM_DETECTION`; the import hook skips installed packages.
- Pins `polyglot-sql-chio==0.13.10`, makes three DuckShop core models deterministic, and moves repository links to the sqlstack-io organization.
@@ -21,7 +21,7 @@ no external state database, no manifest files and no paid tier.
21
21
Its compiler and planner run in Rust. Warehouse execution and extensions use Python.
22
22
23
23
<palign="center">
24
-
<imgsrc="https://raw.githubusercontent.com/chio-labs/sqlbuild/main/.github/demos/rename.gif"alt="Moving and renaming an incremental model with sqb mv: sqb plan migrates the existing table instead of rebuilding it"width="100%">
24
+
<imgsrc="https://raw.githubusercontent.com/sqlstack-io/sqlbuild/main/.github/demos/rename.gif"alt="Moving and renaming an incremental model with sqb mv: sqb plan migrates the existing table instead of rebuilding it"width="100%">
25
25
</p>
26
26
27
27
Move an incremental model to a new folder and name with `sqb mv`, and `sqb plan` migrates its table
@@ -100,7 +100,7 @@ running on local DuckDB.
100
100
`SELECT` fails at compile time, before anything reaches the warehouse.
101
101
102
102
<palign="center">
103
-
<imgsrc="https://raw.githubusercontent.com/chio-labs/sqlbuild/main/.github/demos/contract.gif"alt="sqb compile fails because units_sold is not in the enforced contract and the declared waffles_sold column is missing"width="100%">
103
+
<imgsrc="https://raw.githubusercontent.com/sqlstack-io/sqlbuild/main/.github/demos/contract.gif"alt="sqb compile fails because units_sold is not in the enforced contract and the declared waffles_sold column is missing"width="100%">
104
104
</p>
105
105
106
106
Both sides are reported: the new column isn't in the contract, and the declared one is gone.
@@ -133,7 +133,7 @@ A mart that reads `__source("raw__payments")` directly now fails, and so does th
133
133
has no mock for it:
134
134
135
135
<palign="center">
136
-
<imgsrc="https://raw.githubusercontent.com/chio-labs/sqlbuild/main/.github/demos/rules.gif"alt="sqb compile reports the custom rule XSQBRARCH001 on the line that reads a raw source, and a unit test with no mock for that source"width="100%">
136
+
<imgsrc="https://raw.githubusercontent.com/sqlstack-io/sqlbuild/main/.github/demos/rules.gif"alt="sqb compile reports the custom rule XSQBRARCH001 on the line that reads a raw source, and a unit test with no mock for that source"width="100%">
137
137
</p>
138
138
139
139
See [rules](https://sqlbuild.com/docs/concepts/rules/).
@@ -143,7 +143,7 @@ See [rules](https://sqlbuild.com/docs/concepts/rules/).
143
143
`sqb scope --as-path` previews moving a model before you move it.
144
144
145
145
<palign="center">
146
-
<imgsrc="https://raw.githubusercontent.com/chio-labs/sqlbuild/main/.github/demos/scope.gif"alt="sqb scope previews moving daily_revenue: the enum and macro it uses would be lost, so both usages are invalidated"width="100%">
146
+
<imgsrc="https://raw.githubusercontent.com/sqlstack-io/sqlbuild/main/.github/demos/scope.gif"alt="sqb scope previews moving daily_revenue: the enum and macro it uses would be lost, so both usages are invalidated"width="100%">
147
147
</p>
148
148
149
149
Look at `Lost` and `Invalidated usages`: the model uses an enum and a macro that are private to
0 commit comments