Skip to content

Commit 6d1b518

Browse files
authored
Apply suggestions from code review
1 parent ff68500 commit 6d1b518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/snowpark/_internal/compiler/repeated_subquery_elimination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _update_parents(
173173
self._query_generator.session.reduce_describe_query_enabled
174174
and context._is_snowpark_connect_compatible_mode
175175
):
176-
# create a deterministic name using the first 16 chars of encoded_node_id_with_query (SHA256 hash)
176+
# create a deterministic name using the first 10 chars of encoded_node_id_with_query (SHA256 hash)
177177
# It helps when DataFrame.queries is called multiple times.
178178
# Consistent CTE names returned, reducing the number of describe queries from cached_analyze_attributes calls.
179179
cte_name = f"{TEMP_OBJECT_NAME_PREFIX}{TempObjectType.CTE.value}_{node.encoded_node_id_with_query[:HASH_LENGTH].upper()}"

0 commit comments

Comments
 (0)