diff --git a/mindsdb_sql/parser/ast/select/operation.py b/mindsdb_sql/parser/ast/select/operation.py index 9f8d95c..e208d43 100644 --- a/mindsdb_sql/parser/ast/select/operation.py +++ b/mindsdb_sql/parser/ast/select/operation.py @@ -144,7 +144,7 @@ def to_string(self, *args, **kwargs): alias_str = self.alias.to_string() else: alias_str = '' - modifier_str = self.modifier if self.modifier else '' + modifier_str = ' ' + self.modifier if self.modifier else '' return f'{fnc_str} over({partition_str} {order_str}{modifier_str}) {alias_str}'