# Bare SQL expressions (not full statements) spliced into a larger
# statement elsewhere — there's no standalone statement here for sqlfluff
# to parse on its own.
django_overlay/sql_templates/pk_defaults/

# Carries psycopg bind placeholders (`= %s`) in its WHERE clause. Those are not
# SQL and no dialect parses them, so sqlfluff reports an unparsable section and
# then lints whatever half-tree it managed to build -- which is where its
# aliasing and join-order findings on this file came from. A file it cannot
# parse is a file it cannot judge.
django_overlay/sql_templates/introspection/table_indexes.sql.j2

# Both carry `= %s` in their WHERE clauses, same as table_indexes.sql.j2 above:
# a catalogue query is parameterised by the relation it is asked about, and a
# file sqlfluff cannot parse is a file it cannot judge.
django_overlay/sql_templates/introspection/table_partitions.sql.j2
django_overlay/sql_templates/introspection/unattached_partition_indexes.sql.j2
django_overlay/sql_templates/introspection/view_columns.sql.j2

# The same bind-placeholder problem again: these read the catalogue, and a
# catalogue query is parameterised by the relation it is asked about.
django_overlay/sql_templates/swaps/view_source_relations.sql.j2
django_overlay/sql_templates/swaps/column_types.sql.j2
django_overlay/sql_templates/swaps/estimated_rows.sql.j2

# Its entire WHERE clause is SourceTable.extra_where -- a caller-supplied SQL
# fragment this file does not contain and cannot vouch for. Rendered with the
# empty default every other template's context uses, what is left is the word
# WHERE on its own.
django_overlay/sql_templates/swaps/extra_where_probe.sql.j2
