Skip to content

Commit c04d583

Browse files
switch docstring format to align with Connection class
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 36b9cfb commit c04d583

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/databricks/sql/result_set.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ def __init__(
4949
"""
5050
A ResultSet manages the results of a single command.
5151
52-
Args:
53-
connection: The parent connection
54-
backend: The backend client
55-
arraysize: The max number of rows to fetch at a time (PEP-249)
56-
buffer_size_bytes: The size (in bytes) of the internal buffer + max fetch
57-
command_id: The command ID
58-
status: The command status
59-
has_been_closed_server_side: Whether the command has been closed on the server
60-
is_direct_results: Whether the command has more rows
61-
results_queue: The results queue
62-
description: column description of the results
63-
is_staging_operation: Whether the command is a staging operation
52+
Parameters:
53+
:param connection: The parent connection
54+
:param backend: The backend client
55+
:param arraysize: The max number of rows to fetch at a time (PEP-249)
56+
:param buffer_size_bytes: The size (in bytes) of the internal buffer + max fetch
57+
:param command_id: The command ID
58+
:param status: The command status
59+
:param has_been_closed_server_side: Whether the command has been closed on the server
60+
:param is_direct_results: Whether the command has more rows
61+
:param results_queue: The results queue
62+
:param description: column description of the results
63+
:param is_staging_operation: Whether the command is a staging operation
6464
"""
6565

6666
self.connection = connection
@@ -165,17 +165,17 @@ def __init__(
165165
"""
166166
Initialize a ThriftResultSet with direct access to the ThriftDatabricksClient.
167167
168-
Args:
169-
connection: The parent connection
170-
execute_response: Response from the execute command
171-
thrift_client: The ThriftDatabricksClient instance for direct access
172-
buffer_size_bytes: Buffer size for fetching results
173-
arraysize: Default number of rows to fetch
174-
use_cloud_fetch: Whether to use cloud fetch for retrieving results
175-
t_row_set: The TRowSet containing result data (if available)
176-
max_download_threads: Maximum number of download threads for cloud fetch
177-
ssl_options: SSL options for cloud fetch
178-
is_direct_results: Whether there are more rows to fetch
168+
Parameters:
169+
:param connection: The parent connection
170+
:param execute_response: Response from the execute command
171+
:param thrift_client: The ThriftDatabricksClient instance for direct access
172+
:param buffer_size_bytes: Buffer size for fetching results
173+
:param arraysize: Default number of rows to fetch
174+
:param use_cloud_fetch: Whether to use cloud fetch for retrieving results
175+
:param t_row_set: The TRowSet containing result data (if available)
176+
:param max_download_threads: Maximum number of download threads for cloud fetch
177+
:param ssl_options: SSL options for cloud fetch
178+
:param is_direct_results: Whether there are more rows to fetch
179179
"""
180180
# Initialize ThriftResultSet-specific attributes
181181
self._arrow_schema_bytes = execute_response.arrow_schema_bytes

0 commit comments

Comments
 (0)