Skip to content

Commit 1174144

Browse files
committed
formatting
Signed-off-by: Sai Shree Pradhan <[email protected]>
1 parent 50e4629 commit 1174144

File tree

8 files changed

+30
-23
lines changed

8 files changed

+30
-23
lines changed

src/databricks/sql/telemetry/DriverConnectionParameters.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class DriverConnectionParameters:
1616
auth_scope: str
1717
discovery_url: str
1818
allowed_volume_ingestion_paths: str
19-
enable_complex_datatype_support: bool
2019
azure_tenant_id: str
2120
socket_timeout: int
2221

2322
def to_json(self):
2423
return json.dumps(asdict(self))
25-
24+
25+
2626
# Part of TelemetryEvent
2727
# DriverConnectionParameters connectionParams = new DriverConnectionParameters(
2828
# httpPath = " /sql/1.0/endpoints/1234567890abcdef",
@@ -36,7 +36,6 @@ def to_json(self):
3636
# authScope = "sql",
3737
# discoveryUrl = "https://example-url",
3838
# allowedVolumeIngestionPaths = "[]",
39-
# enableComplexDatatypeSupport = true,
4039
# azureTenantId = "1234567890abcdef",
4140
# socketTimeout = 10000
42-
# )
41+
# )

src/databricks/sql/telemetry/DriverErrorInfo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class DriverErrorInfo:
1010
def to_json(self):
1111
return json.dumps(asdict(self))
1212

13-
# Required for ErrorLogs
13+
14+
# Required for ErrorLogs
1415
# DriverErrorInfo errorInfo = new DriverErrorInfo(
1516
# errorName="CONNECTION_ERROR",
1617
# stackTrace="Connection failure while using the Databricks SQL Python connector. Failed to connect to server: https://my-workspace.cloud.databricks.com\n" +
@@ -19,4 +20,4 @@ def to_json(self):
1920
# "at databricks.sql.thrift_backend.ThriftBackend.attempt_request(ThriftBackend.py:366)\n" +
2021
# "at databricks.sql.thrift_backend.ThriftBackend.open_session(ThriftBackend.py:575)\n" +
2122
# "at databricks.sql.client.Connection.__init__(client.py:69)\n" +
22-
# "at databricks.sql.client.connect(connection.py:123)")
23+
# "at databricks.sql.client.connect(connection.py:123)")

src/databricks/sql/telemetry/DriverSystemConfiguration.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@ class DriverSystemConfiguration:
1919

2020
def to_json(self):
2121
return json.dumps(asdict(self))
22-
22+
23+
2324
# Part of TelemetryEvent
2425
# DriverSystemConfiguration systemConfig = new DriverSystemConfiguration(
25-
# driver_version = "2.9.3",
26-
# os_name = "Darwin",
27-
# os_version = "24.4.0",
28-
# os_arch = "arm64",
29-
# runtime_name = "CPython",
30-
# runtime_version = "3.13.3",
26+
# driver_version = "2.9.3",
27+
# os_name = "Darwin",
28+
# os_version = "24.4.0",
29+
# os_arch = "arm64",
30+
# runtime_name = "CPython",
31+
# runtime_version = "3.13.3",
3132
# runtime_vendor = "cpython",
32-
# client_app_name = "databricks-sql-python",
33-
# locale_name = "en_US",
34-
# driver_name = "databricks-sql-python",
35-
# char_set_encoding = "UTF-8"
36-
# )
33+
# client_app_name = "databricks-sql-python",
34+
# locale_name = "en_US",
35+
# driver_name = "databricks-sql-python",
36+
# char_set_encoding = "UTF-8"
37+
# )

src/databricks/sql/telemetry/DriverVolumeOperation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
DriverVolumeOperationType,
55
)
66

7+
78
@dataclass
89
class DriverVolumeOperation:
910
volume_operation_type: DriverVolumeOperationType
1011
volume_path: str
1112

1213
def to_json(self):
1314
return json.dumps(asdict(self))
14-
15+
16+
1517
# Part of TelemetryEvent
1618
# DriverVolumeOperation volumeOperation = new DriverVolumeOperation(
1719
# volumeOperationType = "LIST",

src/databricks/sql/telemetry/FrontendLogContext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class FrontendLogContext:
99

1010
def to_json(self):
1111
return json.dumps(asdict(self))
12-
12+
13+
1314
# used in TelemetryFrontendLog
1415
# FrontendLogContext frontendLogContext = new FrontendLogContext(
1516
# clientContext = new TelemetryClientContext(

src/databricks/sql/telemetry/HostDetails.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class HostDetails:
1010
def to_json(self):
1111
return json.dumps(asdict(self))
1212

13+
1314
# Part of DriverConnectionParameters
1415
# HostDetails hostDetails = new HostDetails(
1516
# hostUrl = "https://my-workspace.cloud.databricks.com",

src/databricks/sql/telemetry/SqlExecutionEvent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ class SqlExecutionEvent:
1414
def to_json(self):
1515
return json.dumps(asdict(self))
1616

17+
1718
# Part of TelemetryEvent
1819
# SqlExecutionEvent sqlExecutionEvent = new SqlExecutionEvent(
1920
# statementType = "QUERY",
2021
# isCompressed = true,
2122
# executionResult = "INLINE_ARROW",
2223
# retryCount = 0
23-
# )
24+
# )

src/databricks/sql/telemetry/TelemetryClientContext.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ class TelemetryClientContext:
99

1010
def to_json(self):
1111
return json.dumps(asdict(self))
12-
12+
13+
1314
# used in FrontendLogContext
1415
# TelemetryClientContext clientContext = new TelemetryClientContext(
1516
# timestampMillis = 1716489600000,
1617
# userAgent = "databricks-sql-python-test"
17-
# )
18+
# )

0 commit comments

Comments
 (0)