You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the issues and found no similar issues.
What Happened
When passing a table as an argument to a function, RF02 is reported.
Expected Behaviour
RF02 should not be reported, as the table does not need a qualifier.
Observed Behaviour
L: 16 | P: 28 | RF02 | Unqualified reference 'mytable' found in select with
| more than one referenced table/view.
| [references.qualification]
How to reproduce
CREATETABLEmytable (
a int,
b int
);
CREATETABLEothertable (
c int
);
CREATEFUNCTIONmyadd(mytable)
RETURNS NUMERICAS $$
SELECT $1.a $1.b;
$$ IMMUTABLE LANGUAGE sql;
CREATEVIEWmyviewASSELECTothertable.c, myadd(mytable) FROM mytable, othertable;
Search before asking
What Happened
When passing a table as an argument to a function, RF02 is reported.
Expected Behaviour
RF02 should not be reported, as the table does not need a qualifier.
Observed Behaviour
How to reproduce
Dialect
PostgreSQL
Version
sqlfluff, version 3.0.4
Configuration
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: