Skip to content

Commit

Permalink
feat(selectors): support naming deferreds in across
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 22, 2024
1 parent 56095b4 commit de1595c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

import ibis.common.exceptions as exc
import ibis.expr.datatypes as dt
import ibis.expr.operations as ops
import ibis.expr.types as ir
from ibis import util
from ibis.common.collections import frozendict # noqa: TCH001
Expand Down Expand Up @@ -403,7 +404,10 @@ def expand(self, table: ir.Table) -> Sequence[ir.Value]:
else:
name = names.format(col=orig_col.get_name(), fn=func_name)

expanded.append(col.name(name))
if not isinstance(col.op(), ops.Alias):
col = col.name(name)

expanded.append(col)

return expanded

Expand Down

0 comments on commit de1595c

Please sign in to comment.