Skip to content

Commit 95e43e4

Browse files
committed
formatting
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 7461d96 commit 95e43e4

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

src/databricks/sql/telemetry/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ class StatementType(Enum):
4040
QUERY = "query"
4141
SQL = "sql"
4242
UPDATE = "update"
43-
METADATA = "metadata"
43+
METADATA = "metadata"

src/databricks/sql/telemetry/telemetry_endpoint_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class TelemetryResponse:
2020
numProtoSuccess: int
2121

2222
def to_json(self):
23-
return json.dumps(asdict(self))
23+
return json.dumps(asdict(self))

src/databricks/sql/telemetry/telemetry_event.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import json
22
from dataclasses import dataclass, asdict
3-
from databricks.sql.telemetry.enums import AuthMech, AuthFlow, DatabricksClientType, DriverVolumeOperationType, StatementType, ExecutionResultFormat
3+
from databricks.sql.telemetry.enums import (
4+
AuthMech,
5+
AuthFlow,
6+
DatabricksClientType,
7+
DriverVolumeOperationType,
8+
StatementType,
9+
ExecutionResultFormat,
10+
)
411

512

613
@dataclass
@@ -51,7 +58,7 @@ class DriverConnectionParameters:
5158

5259
def to_json(self):
5360
return json.dumps(asdict(self))
54-
61+
5562

5663
@dataclass
5764
class DriverSystemConfiguration:
@@ -85,7 +92,7 @@ class DriverSystemConfiguration:
8592

8693
def to_json(self):
8794
return json.dumps(asdict(self))
88-
95+
8996

9097
@dataclass
9198
class DriverVolumeOperation:
@@ -101,7 +108,7 @@ class DriverVolumeOperation:
101108

102109
def to_json(self):
103110
return json.dumps(asdict(self))
104-
111+
105112

106113
@dataclass
107114
class DriverErrorInfo:
@@ -141,7 +148,7 @@ class SqlExecutionEvent:
141148

142149
def to_json(self):
143150
return json.dumps(asdict(self))
144-
151+
145152

146153
@dataclass
147154
class TelemetryEvent:
@@ -156,4 +163,4 @@ class TelemetryEvent:
156163
operation_latency_ms: int
157164

158165
def to_json(self):
159-
return json.dumps(asdict(self))
166+
return json.dumps(asdict(self))

src/databricks/sql/telemetry/telemetry_frontend_log.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from dataclasses import dataclass, asdict
33
from databricks.sql.telemetry.telemetry_event import TelemetryEvent
44

5+
56
@dataclass
67
class TelemetryClientContext:
78
timestamp_millis: int
@@ -15,15 +16,15 @@ class TelemetryClientContext:
1516

1617
def to_json(self):
1718
return json.dumps(asdict(self))
18-
19+
1920

2021
@dataclass
2122
class FrontendLogContext:
2223
client_context: TelemetryClientContext
2324

2425
def to_json(self):
2526
return json.dumps(asdict(self))
26-
27+
2728

2829
@dataclass
2930
class FrontendLogEntry:

0 commit comments

Comments
 (0)