Skip to content

[Bug]: CV11 triggers on aggregate functions #2042

@asqarslanov

Description

@asqarslanov

What happened?

The linter emits false positive C11 (convention.casting_style) warnings on aggregate functions.

.sqruff (all rules enabled):

  • [sqruff]
    rules = all

SQL query:

  • SELECT
        a::int, -- shorthand casting
        count(b) AS c -- incorrectly identified as another style of casting
    FROM
        foo;

Version

0.29.3

Checked in Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions