We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70b016 commit b02b2b9Copy full SHA for b02b2b9
src/borneo/serdeutil.py
@@ -353,6 +353,10 @@ def map_exception(code, msg):
353
elif code == SerdeUtil.THROTTLING_ERROR.WRITE_LIMIT_EXCEEDED:
354
return WriteThrottlingException(msg)
355
elif code == SerdeUtil.USER_ERROR.BAD_PROTOCOL_MESSAGE:
356
+ # newer proxies will return USER_ERROR.UNSUPPORTED_QUERY_VERSION
357
+ # but older ones don't have that error but do have a defined string
358
+ if 'Invalid query version' in msg:
359
+ return UnsupportedQueryVersionException(msg)
360
# V2 proxy will return this message if V3 is used in the driver
361
if "Invalid driver serial version" in msg:
362
return UnsupportedProtocolException(msg)
0 commit comments