Skip to content

Commit

Permalink
add _emit_ast to CaseExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lspiegelberg committed Oct 24, 2024
1 parent 4336b30 commit 1d631fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/snowflake/snowpark/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,11 +1417,9 @@ class CaseExpr(Column):
"""

def __init__(
self,
expr: CaseWhen,
_ast: Optional[proto.Expr] = None,
self, expr: CaseWhen, _ast: Optional[proto.Expr] = None, _emit_ast: bool = True
) -> None:
super().__init__(expr, _ast=_ast)
super().__init__(expr, _ast=_ast, _emit_ast=_emit_ast)
self._branches = expr.branches

@publicapi
Expand Down Expand Up @@ -1453,6 +1451,7 @@ def when(
]
),
_ast=self._ast,
_emit_ast=_emit_ast,
)

@publicapi
Expand Down

0 comments on commit 1d631fc

Please sign in to comment.