Commit d2ad6ac
fix: thread dialect through altimate_core.policy handler
Code review (Gemini 3.1 Pro) caught a missed handler in the
dialect-threading migration: 'altimate_core.policy' (altimate-core.ts:200)
called schemaOrEmpty() without params.dialect, while the 6 other policy-
family handlers (validate, check, fix, semantics, equivalence, correct,
explain) all pass it through.
AltimateCorePolicyParams already declares 'dialect?: string' in types.ts
and the tool definition plumbs it into Dispatcher.call(), so the param
was reaching the handler but being silently discarded at the schema
resolution step — meaning the fallback empty schema was always built
with the default (Snowflake) dialect instead of the user-selected one,
defeating the purpose of PR #550 for policy checks specifically.
1-line fix brings the policy handler into line with its 6 siblings.1 parent 4ceea83 commit d2ad6ac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments