Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/snowflake/snowpark/_internal/ast/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def reset_id_gen(self) -> None:
"""Resets the ID generator."""
self._id_gen = itertools.count(start=1)

def reset_callables(self) -> None:
"""Resets the callables."""
self._callables = {}

def assign(self, symbol: Optional[str] = None) -> proto.Assign:
"""
Creates a new assignment statement.
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/relational_grouped_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def end_partition(self, pdf: pandas.DataFrame) -> pandas.DataFrame:
_apply_in_pandas_udtf = self._dataframe._session.udtf.register(
_ApplyInPandas,
output_schema=output_schema,
_emit_ast=_emit_ast,
_emit_ast=False,
**kwargs,
)
partition_by = [Column(expr, _emit_ast=False) for expr in self._grouping_exprs]
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def json_value(self) -> Dict[str, Any]:
def _fill_ast(self, ast: proto.SpDataType) -> None:
ast.sp_struct_type.structured = self.structured
for field in self.fields:
field._fill_ast(ast.sp_struct_type.fields.add())
field._fill_ast(ast.sp_struct_type.fields.list.add())


class VariantType(DataType):
Expand Down
Loading
Loading