Ensure we can connect to a Cassandra node version > 3
This commit is contained in:
@@ -2487,7 +2487,8 @@ class MaterializedViewMetadata(object):
|
|||||||
|
|
||||||
|
|
||||||
def get_schema_parser(connection, server_version, timeout):
|
def get_schema_parser(connection, server_version, timeout):
|
||||||
if server_version.startswith('3'):
|
server_major_version = int(server_version.split('.')[0])
|
||||||
|
if server_major_version >= 3:
|
||||||
return SchemaParserV3(connection, timeout)
|
return SchemaParserV3(connection, timeout)
|
||||||
else:
|
else:
|
||||||
# we could further specialize by version. Right now just refactoring the
|
# we could further specialize by version. Right now just refactoring the
|
||||||
|
Reference in New Issue
Block a user