File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/databricks/sql/cloudfetch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def __init__(
4848 session_id_hex : Optional [str ],
4949 statement_id : str ,
5050 chunk_id : int ,
51- expiry_callback : Optional [ Callable [[TSparkArrowResultLink ], None ]] = None ,
51+ expiry_callback : Callable [[TSparkArrowResultLink ], None ],
5252 ):
5353 self ._pending_links : List [Tuple [int , TSparkArrowResultLink ]] = []
5454 self .chunk_id = chunk_id
@@ -141,7 +141,7 @@ def to_cancel(link: TSparkArrowResultLink) -> bool:
141141 self ._download_tasks = tasks_to_keep
142142
143143 pending_links_to_keep = [
144- link for link in self ._pending_links if not to_cancel (link )
144+ link for link in self ._pending_links if not to_cancel (link [ 1 ] )
145145 ]
146146 self ._pending_links = pending_links_to_keep
147147 logger .info (
You can’t perform that action at this time.
0 commit comments