Skip to content

Commit

Permalink
[SNOW-1616087] Use copy instead of deepcopy during query generation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-yzou authored Aug 7, 2024
1 parent 1246800 commit e13b30a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snowflake/snowpark/_internal/compiler/query_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def do_resolve_with_resolved_children(
)

# update the resolved child
copied_resolved_child = copy.deepcopy(resolved_child)
copied_resolved_child = copy.copy(resolved_child)
final_queries = get_snowflake_plan_queries(
copied_resolved_child, self.resolved_with_query_block
)
Expand Down Expand Up @@ -173,7 +173,7 @@ def do_resolve_with_resolved_children(
# the with definition must be generated before create, update, delete, merge and copy into
# query.
resolved_child = resolved_children[logical_plan.children[0]]
copied_resolved_child = copy.deepcopy(resolved_child)
copied_resolved_child = copy.copy(resolved_child)
final_queries = get_snowflake_plan_queries(
copied_resolved_child, self.resolved_with_query_block
)
Expand Down

0 comments on commit e13b30a

Please sign in to comment.