Skip to content

Commit 5842863

Browse files
committed
remove reduntant code
1 parent 2b52b22 commit 5842863

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/snowflake/snowpark/column.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import snowflake.snowpark
1111
import snowflake.snowpark._internal.proto.generated.ast_pb2 as proto
12-
from snowflake.snowpark import context
1312
from snowflake.snowpark._internal.analyzer.binary_expression import (
1413
Add,
1514
And,
@@ -976,10 +975,6 @@ def try_cast(
976975
"""Tries to cast the value of the Column to the specified data type.
977976
It returns a NULL value instead of raising an error when the conversion can not be performed.
978977
"""
979-
is_rename = (
980-
isinstance(to, StructType)
981-
and context._should_use_structured_type_semantics()
982-
)
983978
return self._cast(
984979
to, True, _emit_ast=_emit_ast, is_rename=is_rename, is_add=is_add
985980
)

0 commit comments

Comments
 (0)