Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94d951e

Browse files
use from __future__ import annotations to remove string literals around Cursor
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parented8b610 commit94d951e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎src/databricks/sql/backend/thrift_backend.py‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__importannotations
2+
13
importerrno
24
importlogging
35
importmath
@@ -810,7 +812,7 @@ def _results_message_to_execute_response(self, resp, operation_state):
810812
)
811813

812814
defget_execution_result(
813-
self,command_id:CommandId,cursor:"Cursor"
815+
self,command_id:CommandId,cursor:Cursor
814816
)->"ResultSet":
815817
thrift_handle=command_id.to_thrift_handle()
816818
ifnotthrift_handle:
@@ -939,7 +941,7 @@ def execute_command(
939941
max_rows:int,
940942
max_bytes:int,
941943
lz4_compression:bool,
942-
cursor:"Cursor",
944+
cursor:Cursor,
943945
use_cloud_fetch=True,
944946
parameters=[],
945947
async_op=False,
@@ -1007,7 +1009,7 @@ def get_catalogs(
10071009
session_id:SessionId,
10081010
max_rows:int,
10091011
max_bytes:int,
1010-
cursor:"Cursor",
1012+
cursor:Cursor,
10111013
)->"ResultSet":
10121014
fromdatabricks.sql.result_setimportThriftResultSet
10131015

@@ -1039,7 +1041,7 @@ def get_schemas(
10391041
session_id:SessionId,
10401042
max_rows:int,
10411043
max_bytes:int,
1042-
cursor:"Cursor",
1044+
cursor:Cursor,
10431045
catalog_name=None,
10441046
schema_name=None,
10451047
)->"ResultSet":
@@ -1075,7 +1077,7 @@ def get_tables(
10751077
session_id:SessionId,
10761078
max_rows:int,
10771079
max_bytes:int,
1078-
cursor:"Cursor",
1080+
cursor:Cursor,
10791081
catalog_name=None,
10801082
schema_name=None,
10811083
table_name=None,
@@ -1115,7 +1117,7 @@ def get_columns(
11151117
session_id:SessionId,
11161118
max_rows:int,
11171119
max_bytes:int,
1118-
cursor:"Cursor",
1120+
cursor:Cursor,
11191121
catalog_name=None,
11201122
schema_name=None,
11211123
table_name=None,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp