File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,9 +374,7 @@ def replacer(match):
374374 return modified_expression
375375
376376 @staticmethod
377- def _expression_references_aliases (
378- expression : str , raw_aliases : set [str ]
379- ) -> bool :
377+ def _expression_references_aliases (expression : str , raw_aliases : set [str ]) -> bool :
380378 """Check if an expression references any aggregate alias.
381379
382380 Checks for both double-quoted ("alias") and KQL-escaped (["alias"])
@@ -386,9 +384,7 @@ def _expression_references_aliases(
386384 for alias in raw_aliases :
387385 escaped_alias = re .escape (alias )
388386 # Match ["alias"] or "alias" anywhere in the expression
389- if re .search (
390- rf'\["{ escaped_alias } "\]|"{ escaped_alias } "' , expression
391- ):
387+ if re .search (rf'\["{ escaped_alias } "\]|"{ escaped_alias } "' , expression ):
392388 return True
393389 # For simple identifiers, also match unquoted bare references
394390 if re .fullmatch (r"[A-Za-z_]\w*" , alias ) and re .search (
You can’t perform that action at this time.
0 commit comments