Skip to content

Commit 264c798

Browse files
committed
docs(rules): say AVG(DISTINCT) of a NUMBER is refused
1 parent 3472c26 commit 264c798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/sqlquack-rules/src/catalogue/constants.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ pub const RULES: &[RuleSpec] = &[
12501250
RuleSpec {
12511251
id: AVERAGE,
12521252
constructs: &["fn:AVG"],
1253-
conditions: "A NUMBER of scale at most 6 and precision at most 26. AVG(DISTINCT) of a NUMBER only over a window, since Snowflake types the aggregate with 3 more decimal places and no recording shows how it rounds.",
1253+
conditions: "A NUMBER of scale at most 6 and precision at most 26. AVG(DISTINCT) of a NUMBER is refused, since Snowflake types it with 3 more decimal places and no recording shows how it rounds.",
12541254
failures: &[FailureMode {
12551255
kind: ErrorKind::NumericOverflow,
12561256
snowflake: &[NUMBER_OUT_OF_RANGE],

0 commit comments

Comments
 (0)