File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -539,15 +539,11 @@ def to_sqlmesh(
539539 optional_kwargs ["partitioned_by" ] = partitioned_by
540540
541541 if self .cluster_by :
542- if isinstance (kind , ViewKind ):
543- logger .warning (
544- "Ignoring cluster_by config for model '%s'; cluster_by is not supported for views." ,
545- self .name ,
546- )
547- elif isinstance (kind , EmbeddedKind ):
542+ if isinstance (kind , (ViewKind , EmbeddedKind )):
548543 logger .warning (
549- "Ignoring cluster_by config for model '%s'; cluster_by is not supported for embedded models ." ,
544+ "Ignoring cluster_by config for model '%s'; cluster_by is not supported for %s ." ,
550545 self .name ,
546+ "views" if isinstance (kind , ViewKind ) else "ephemeral models" ,
551547 )
552548 else :
553549 clustered_by = []
You can’t perform that action at this time.
0 commit comments