Skip to content

Commit 2300e1e

Browse files
committed
change fix place
1 parent 4a98f43 commit 2300e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/snowpark/_internal/analyzer/select_statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ def select(self, cols: List[Expression]) -> "SelectStatement":
14111411

14121412
if can_be_flattened:
14131413
new = copy(self)
1414+
new._attributes = None # reset attributes since projection changed
14141415
final_projection = []
14151416

14161417
assert new_column_states is not None
@@ -1419,7 +1420,6 @@ def select(self, cols: List[Expression]) -> "SelectStatement":
14191420
ColumnChangeState.CHANGED_EXP,
14201421
ColumnChangeState.NEW,
14211422
):
1422-
new._attributes = None # reset attributes since projection changed
14231423
final_projection.append(copy(state.expression))
14241424
elif state.change_state == ColumnChangeState.UNCHANGED_EXP:
14251425
final_projection.append(

0 commit comments

Comments
 (0)