Repository navigation
Commit 4d0c6bc
committed
feat: warn instead of refusing on checks that only raise under the built-in policy
Under the built-in policy, arithmetic that only fails at its 38-digit
limit, date arithmetic and nanosecond comparisons that only fail outside
DuckDB's timestamp range, and a naive timestamp joined with a local one
that only fails on digits below the microsecond now convert with a
warning instead of being refused. Their converted SQL raises an error
rather than return a different value. --strict refuses them, and
--loud-divergences-only keeps them while it still refuses the clock.
Last-30-days filters on CURRENT_TIMESTAMP() convert too, and SQ0003 on a
function operand now points at a cast. The warnings give DuckDB's exact
timestamp range and explain the UTC session the clock relies on.
The corpora record 132 statements that now translate and 3 whose
refusal moves to a later operand.1 parent cb8772b commit 4d0c6bc
19 files changed
Lines changed: 541 additions & 205 deletions
File tree
- corpora
- basics
- everyday-models
- everyday
- crates
- sqlquack-core/src/diagnostics
- main
- sqlquack-rules/src/session
- main
- sqlquack
- src/cli
- _helpers
- tests/cli
- fixtures
- website
- public/playground
- src/content/docs/docs
- diagnostics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
0 commit comments