Skip to content

fix linting errors#130

Open
daria-sukhareva wants to merge 7 commits into
mainfrom
linting-fix
Open

fix linting errors#130
daria-sukhareva wants to merge 7 commits into
mainfrom
linting-fix

Conversation

@daria-sukhareva

@daria-sukhareva daria-sukhareva commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

fix: SQLFluff lint compliance across all models

  • bunch of whitespaces
  • lowercase all SQL keywords (as, join, null, etc.)
  • add explicit AS for all table aliases; fix bare join → inner join
  • remove trailing commas from last SELECT column before FROM
  • exclude CV03 (trailing comma), LT02 (indent), and 7 other rules
    that conflict with dbt/Jinja patterns
  • rename fact_downtime_daily.type → reason to avoid reserved keyword
  • fix syntax errors in window functions and CASE expressions
    introduced by prior automated fix pass
  • redundant else null removed from the two case expressions
  • relation_exists for short
  • removed redundant else null

Also cast to string replaced with cast to dbt.type_string() for cross-adapter compatibility @SYegor

bunch of whitespaces
fix: SQLFluff lint compliance across all models

- lowercase all SQL keywords (as, join, null, etc.)
- add explicit AS for all table aliases; fix bare join → inner join
- remove trailing commas from last SELECT column before FROM
- exclude CV03 (trailing comma), LT02 (indent), and 7 other rules
  that conflict with dbt/Jinja patterns
- rename fact_downtime_daily.type → reason to avoid reserved keyword
- fix syntax errors in window functions and CASE expressions
  introduced by prior automated fix pass
cast string -> dbt.type_string() for cross-adapter compatibility
- Redundant else null removed from the two case expressions
- relation_exists for short
- remove redundant SELECT DISTINCT alongside GROUP BY in dim_ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant