@@ -63,7 +63,7 @@ def __str__(self) -> str:
63
63
if isinstance (self .secret , bytes )
64
64
else str (self .secret )
65
65
)
66
- return f"{ self .get_hex_id ()} |{ secret_hex } "
66
+ return f"{ self .get_hex_guid ()} |{ secret_hex } "
67
67
return str (self .guid )
68
68
69
69
@classmethod
@@ -137,13 +137,13 @@ def to_sea_session_id(self):
137
137
138
138
return self .guid
139
139
140
- def get_id (self ) -> Any :
140
+ def get_guid (self ) -> Any :
141
141
"""
142
142
Get the ID of the session.
143
143
"""
144
144
return self .guid
145
145
146
- def get_hex_id (self ) -> str :
146
+ def get_hex_guid (self ) -> str :
147
147
"""
148
148
Get a hexadecimal string representation of the session ID.
149
149
@@ -214,7 +214,12 @@ def __str__(self) -> str:
214
214
if self .backend_type == BackendType .SEA :
215
215
return str (self .guid )
216
216
elif self .backend_type == BackendType .THRIFT :
217
- return f"{ self .to_hex_id ()} |{ guid_to_hex_id (self .secret ) if isinstance (self .secret , bytes ) else str (self .secret )} "
217
+ secret_hex = (
218
+ guid_to_hex_id (self .secret )
219
+ if isinstance (self .secret , bytes )
220
+ else str (self .secret )
221
+ )
222
+ return f"{ self .to_hex_guid ()} |{ secret_hex } "
218
223
return str (self .guid )
219
224
220
225
@classmethod
@@ -288,7 +293,7 @@ def to_sea_statement_id(self):
288
293
289
294
return self .guid
290
295
291
- def to_hex_id (self ) -> str :
296
+ def to_hex_guid (self ) -> str :
292
297
"""
293
298
Get a hexadecimal string representation of the command ID.
294
299
0 commit comments