Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aalam committed Aug 28, 2024
1 parent 8a5f2b6 commit 7073a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#

import logging
import os
import tempfile
from collections import defaultdict
from typing import List, Optional, Tuple

Expand Down Expand Up @@ -125,7 +123,6 @@ def __init__(
self._query_generator = query_generator
self.logical_plans = logical_plans
self._parent_map = defaultdict(set)
self._tmp_plot_dir = os.path.join(tempfile.gettempdir(), "snowpark_plan_plots")

def apply(self) -> List[LogicalPlan]:
if is_active_transaction(self.session):
Expand Down
6 changes: 5 additions & 1 deletion src/snowflake/snowpark/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,11 @@ def auto_clean_up_temp_table_enabled(self, value: bool) -> None:
@large_query_breakdown_enabled.setter
@experimental_parameter(version="1.22.0")
def large_query_breakdown_enabled(self, value: bool) -> None:
"""Set the value for large_query_breakdown_enabled"""
"""Set the value for large_query_breakdown_enabled. When enabled, the client will
automatically detect large query plans and break them down into smaller partitions,
materialize the partitions, and then combine them to execute the query to improve
overall performance.
"""

if value in [True, False]:
self._conn._telemetry_client.send_large_query_breakdown_telemetry(
Expand Down

0 comments on commit 7073a83

Please sign in to comment.