File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
src/databricks/sql/backend Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def execute_command(
91
91
Args:
92
92
operation: The SQL command or query to execute
93
93
session_id: The session identifier in which to execute the command
94
- max_rows: Maximum number of rows to fetch in a single batch
95
- max_bytes: Maximum number of bytes to fetch in a single batch
94
+ max_rows: Maximum number of rows to fetch in a single fetch batch
95
+ max_bytes: Maximum number of bytes to fetch in a single fetch batch
96
96
lz4_compression: Whether to use LZ4 compression for result data
97
97
cursor: The cursor object that will handle the results
98
98
use_cloud_fetch: Whether to use cloud fetch for retrieving large result sets
Original file line number Diff line number Diff line change 8
8
9
9
10
10
class BackendType (Enum ):
11
- """Enum representing the type of backend."""
11
+ """
12
+ Enum representing the type of backend
13
+ """
12
14
13
15
THRIFT = "thrift"
14
16
SEA = "sea"
@@ -36,7 +38,7 @@ def __init__(
36
38
backend_type: The type of backend (THRIFT or SEA)
37
39
guid: The primary identifier for the session
38
40
secret: The secret part of the identifier (only used for Thrift)
39
- info : Additional information about the session
41
+ properties : Additional information about the session
40
42
"""
41
43
self .backend_type = backend_type
42
44
self .guid = guid
@@ -56,7 +58,12 @@ def __str__(self) -> str:
56
58
if self .backend_type == BackendType .SEA :
57
59
return str (self .guid )
58
60
elif self .backend_type == BackendType .THRIFT :
59
- return f"{ self .get_hex_id ()} |{ guid_to_hex_id (self .secret ) if isinstance (self .secret , bytes ) else str (self .secret )} "
61
+ secret_hex = (
62
+ guid_to_hex_id (self .secret )
63
+ if isinstance (self .secret , bytes )
64
+ else str (self .secret )
65
+ )
66
+ return f"{ self .get_hex_id ()} |{ secret_hex } "
60
67
return str (self .guid )
61
68
62
69
@classmethod
You can’t perform that action at this time.
0 commit comments