Consider dsePatch version when parsing the schema

Description

DSE reports the Cassandra version it is based on in system.local.release_version. When the OSS driver connects to DSE, it uses that to decide how to parse the schema (it doesn't know that it's connecting to DSE).

Sadly, modern DSE versions report a misleading C* version: 4.0.0.6xx, which is "close" to 4.0.0, but definitely not "higher" (4.0.0 is not even GA yet).

In particular, DSE 6.0.x reports 4.0.0.60x, but it doesn't have system_virtual_schema. Currently this will cause the schema parsing to fail, and the schema metadata remains empty.

SchemaQueriesFactory should inspect Version.dsePatch and use Cassandra3SchemaQueries for 4.0.0.60x.

Environment

None

Pull Requests

None

Status

Assignee

Bret McGuire

Reporter

Olivier Michallat

Labels

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Minor
Configure