@@ -309,13 +309,13 @@ def read(self) -> Optional[OAuthToken]:
309309
310310 initialize_telemetry_client (
311311 telemetry_enabled = self .telemetry_enabled ,
312- connection_uuid = self .get_session_id_hex (),
312+ session_id_hex = self .get_session_id_hex (),
313313 auth_provider = auth_provider ,
314314 host_url = self .host ,
315315 )
316316
317317 self ._telemetry_client = get_telemetry_client (
318- connection_uuid = self .get_session_id_hex ()
318+ session_id_hex = self .get_session_id_hex ()
319319 )
320320
321321 driver_connection_params = DriverConnectionParameters (
@@ -427,7 +427,7 @@ def cursor(
427427 if not self .open :
428428 raise InterfaceError (
429429 "Cannot create cursor from closed connection" ,
430- connection_uuid = self .get_session_id_hex (),
430+ session_id_hex = self .get_session_id_hex (),
431431 )
432432
433433 cursor = Cursor (
@@ -480,7 +480,7 @@ def commit(self):
480480 def rollback (self ):
481481 raise NotSupportedError (
482482 "Transactions are not supported on Databricks" ,
483- connection_uuid = self .get_session_id_hex (),
483+ session_id_hex = self .get_session_id_hex (),
484484 )
485485
486486
@@ -535,7 +535,7 @@ def __iter__(self):
535535 else :
536536 raise ProgrammingError (
537537 "There is no active result set" ,
538- connection_uuid = self .connection .get_session_id_hex (),
538+ session_id_hex = self .connection .get_session_id_hex (),
539539 )
540540
541541 def _determine_parameter_approach (
@@ -675,7 +675,7 @@ def _check_not_closed(self):
675675 if not self .open :
676676 raise InterfaceError (
677677 "Attempting operation on closed cursor" ,
678- connection_uuid = self .connection .get_session_id_hex (),
678+ session_id_hex = self .connection .get_session_id_hex (),
679679 )
680680
681681 def _handle_staging_operation (
@@ -695,7 +695,7 @@ def _handle_staging_operation(
695695 else :
696696 raise ProgrammingError (
697697 "You must provide at least one staging_allowed_local_path when initialising a connection to perform ingestion commands" ,
698- connection_uuid = self .connection .get_session_id_hex (),
698+ session_id_hex = self .connection .get_session_id_hex (),
699699 )
700700
701701 abs_staging_allowed_local_paths = [
@@ -725,7 +725,7 @@ def _handle_staging_operation(
725725 if not allow_operation :
726726 raise ProgrammingError (
727727 "Local file operations are restricted to paths within the configured staging_allowed_local_path" ,
728- connection_uuid = self .connection .get_session_id_hex (),
728+ session_id_hex = self .connection .get_session_id_hex (),
729729 )
730730
731731 # May be real headers, or could be json string
@@ -756,7 +756,7 @@ def _handle_staging_operation(
756756 raise ProgrammingError (
757757 f"Operation { row .operation } is not supported. "
758758 + "Supported operations are GET, PUT, and REMOVE" ,
759- connection_uuid = self .connection .get_session_id_hex (),
759+ session_id_hex = self .connection .get_session_id_hex (),
760760 )
761761
762762 def _handle_staging_put (
@@ -770,7 +770,7 @@ def _handle_staging_put(
770770 if local_file is None :
771771 raise ProgrammingError (
772772 "Cannot perform PUT without specifying a local_file" ,
773- connection_uuid = self .connection .get_session_id_hex (),
773+ session_id_hex = self .connection .get_session_id_hex (),
774774 )
775775
776776 with open (local_file , "rb" ) as fh :
@@ -789,7 +789,7 @@ def _handle_staging_put(
789789 if r .status_code not in [OK , CREATED , NO_CONTENT , ACCEPTED ]:
790790 raise OperationalError (
791791 f"Staging operation over HTTP was unsuccessful: { r .status_code } -{ r .text } " ,
792- connection_uuid = self .connection .get_session_id_hex (),
792+ session_id_hex = self .connection .get_session_id_hex (),
793793 )
794794
795795 if r .status_code == ACCEPTED :
@@ -809,7 +809,7 @@ def _handle_staging_get(
809809 if local_file is None :
810810 raise ProgrammingError (
811811 "Cannot perform GET without specifying a local_file" ,
812- connection_uuid = self .connection .get_session_id_hex (),
812+ session_id_hex = self .connection .get_session_id_hex (),
813813 )
814814
815815 r = requests .get (url = presigned_url , headers = headers )
@@ -819,7 +819,7 @@ def _handle_staging_get(
819819 if not r .ok :
820820 raise OperationalError (
821821 f"Staging operation over HTTP was unsuccessful: { r .status_code } -{ r .text } " ,
822- connection_uuid = self .connection .get_session_id_hex (),
822+ session_id_hex = self .connection .get_session_id_hex (),
823823 )
824824
825825 with open (local_file , "wb" ) as fp :
@@ -835,7 +835,7 @@ def _handle_staging_remove(
835835 if not r .ok :
836836 raise OperationalError (
837837 f"Staging operation over HTTP was unsuccessful: { r .status_code } -{ r .text } " ,
838- connection_uuid = self .connection .get_session_id_hex (),
838+ session_id_hex = self .connection .get_session_id_hex (),
839839 )
840840
841841 def execute (
@@ -1035,7 +1035,7 @@ def get_async_execution_result(self):
10351035 else :
10361036 raise OperationalError (
10371037 f"get_execution_result failed with Operation status { operation_state } " ,
1038- connection_uuid = self .connection .get_session_id_hex (),
1038+ session_id_hex = self .connection .get_session_id_hex (),
10391039 )
10401040
10411041 def executemany (self , operation , seq_of_parameters ):
@@ -1187,7 +1187,7 @@ def fetchall(self) -> List[Row]:
11871187 else :
11881188 raise ProgrammingError (
11891189 "There is no active result set" ,
1190- connection_uuid = self .connection .get_session_id_hex (),
1190+ session_id_hex = self .connection .get_session_id_hex (),
11911191 )
11921192
11931193 def fetchone (self ) -> Optional [Row ]:
@@ -1204,7 +1204,7 @@ def fetchone(self) -> Optional[Row]:
12041204 else :
12051205 raise ProgrammingError (
12061206 "There is no active result set" ,
1207- connection_uuid = self .connection .get_session_id_hex (),
1207+ session_id_hex = self .connection .get_session_id_hex (),
12081208 )
12091209
12101210 def fetchmany (self , size : int ) -> List [Row ]:
@@ -1229,7 +1229,7 @@ def fetchmany(self, size: int) -> List[Row]:
12291229 else :
12301230 raise ProgrammingError (
12311231 "There is no active result set" ,
1232- connection_uuid = self .connection .get_session_id_hex (),
1232+ session_id_hex = self .connection .get_session_id_hex (),
12331233 )
12341234
12351235 def fetchall_arrow (self ) -> "pyarrow.Table" :
@@ -1239,7 +1239,7 @@ def fetchall_arrow(self) -> "pyarrow.Table":
12391239 else :
12401240 raise ProgrammingError (
12411241 "There is no active result set" ,
1242- connection_uuid = self .connection .get_session_id_hex (),
1242+ session_id_hex = self .connection .get_session_id_hex (),
12431243 )
12441244
12451245 def fetchmany_arrow (self , size ) -> "pyarrow.Table" :
@@ -1249,7 +1249,7 @@ def fetchmany_arrow(self, size) -> "pyarrow.Table":
12491249 else :
12501250 raise ProgrammingError (
12511251 "There is no active result set" ,
1252- connection_uuid = self .connection .get_session_id_hex (),
1252+ session_id_hex = self .connection .get_session_id_hex (),
12531253 )
12541254
12551255 def cancel (self ) -> None :
0 commit comments