Skip to content

[SWT] SQFluff Special Test-Cases #45

@lapplislazuli

Description

@lapplislazuli

We produced a special test for swt_sqlfluff__sqlfluff-1625:

diff --git a/test/fixtures/rules/std_rule_cases/L031.yml b/test/fixtures/rules/std_rule_cases/L031.yml
index 40b41639a..59dd43430 100644
--- a/test/fixtures/rules/std_rule_cases/L031.yml
+++ b/test/fixtures/rules/std_rule_cases/L031.yml
@@ -168,3 +168,11 @@ issue_1589:
               rnd>=t.v
          order by rnd
          limit 1)
+test_pass_simple_alias:
+  # L031 should not trigger for simple table alias without joins
+  pass_str: |
+    SELECT a.hello
+    FROM mytable AS a
+  configs:
+    core:
+      dialect: tsql

This will currently not work with our test-pipeline. Not all sqfluffs fail, but in theory this is a valid test so I wanted to make a marker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIIssues related to API and higher level logicTODOOpen Task but not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions