We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e9a655 commit 2009619Copy full SHA for 2009619
1 file changed
sqlmesh/core/linter/rules/builtin.py
@@ -63,7 +63,7 @@ class FilenameEqualsModelname(Rule):
63
def check_model(self, model: Model) -> t.Optional[RuleViolation]:
64
# Rule violated if the model's name (schema.table_name) does not match the file name (foo/bar/table_name.sql).
65
full_model_name = model.name
66
- table_name = full_model_name.split(".", 1)[1]
+ table_name = full_model_name.split(".")[-1]
67
path = Path(model._path)
68
return (
69
self.violation()
0 commit comments