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
Python format strings support variables that use dot notation for object attribute access. This is a valid Python example that is not yet supported by SQLFluff:
classMyObject:
bar="blah"sql="SELECT * FROM {foo.bar}"context= {"foo": MyObject()}
print(sql.format(**context))
Dialect
This is not dialect specific.
Are you willing to work on and submit a PR to address the issue?
Search before asking
Description
SQLFluff python templater does not currently support variables that contain a dot - e.g.
{foo.bar}
This SQL:
..with this config:
..raises this error:
Related tickets (but for Jinja templater):
Use case
Python format strings support variables that use dot notation for object attribute access. This is a valid Python example that is not yet supported by SQLFluff:
Dialect
This is not dialect specific.
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: