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 8db0f9e
Browse filesBrowse the repository at this point in the historyBrowse files
fix: pass SQL macro arguments read through untyped sources
Treat a probe as unknown when any FROM or JOIN source in it cannot be
typed, so stars over unnest() or table functions no longer report missing
columns. Teach kind-prefixed macro calls in the remaining docs.
Copy file name to clipboardExpand all lines: src/sqlbuild/.agents/skills/sqlbuild/references/docs/concepts/interpolation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The rule is simple: if it's any SQL that will be executed, it uses `@`. If it's
30
30
|--------|-------|----------|
31
31
|`@enum("name").MEMBER`| Executable SQL | Compile time - expands to the validated enum member value |
32
32
|`@const("name")`| Executable SQL | Compile time - expands to the named typed scalar, value list, native array, or object expression |
33
-
|`@macro(args)`| Model SQL, SQL hooks, tests, audits, inline source expressions | Compile time - expands to macro return value|
33
+
|`@sql.name(args)`, `@py.name(args)`| Model SQL, SQL hooks, tests, audits, inline source expressions | Compile time - expands to the macro's SQL|
34
34
|`@@name`| Model SQL, SQL hooks, tests, audits, inline source expressions | Compile time - project variable substitution |
35
35
|`@@ENV:NAME`| Model SQL, SQL hooks, tests, audits, inline source expressions | Compile time - environment variable |
36
36
|`@@CTX:name`| SQL hooks only | Compile time - destination relation, target, run ID |
@@ -184,7 +184,7 @@ Use the quoted form for values rather than SQL identifiers or expressions:
184
184
WHERE status = @'expected_status'
185
185
```
186
186
187
-
This is distinct from `@@name` (project variables) and `@macro()` (macro calls), so there is no ambiguity. See [Audits](audits.md) for details on generic audit parameters.
187
+
This is distinct from `@@name` (project variables) and `@sql.name()` or `@py.name()` (macro calls), so there is no ambiguity. See [Audits](audits.md) for details on generic audit parameters.
Copy file name to clipboardExpand all lines: src/sqlbuild/.agents/skills/sqlbuild/references/docs/concepts/models/hooks/python.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ MODEL (
105
105
SELECT1AS id
106
106
```
107
107
108
-
Python hook arguments are ordinary configuration values and are not SQL-expanded. An argument containing `@@CTX:...` or `@macro()` reaches the function unchanged.
108
+
Python hook arguments are ordinary configuration values and are not SQL-expanded. An argument containing `@@CTX:...` or `@py.name()` reaches the function unchanged.
0 commit comments