Single quote in a table comment should be quoted in TableMetadata.asCQLQuery

Description

The TableMetadata.asCQLQuery method needs to quote single quote characters in a table comment.

For example, given:

Calling metadata.exportSchemaAsString() will result in a String where the single quote in the comment has not been quoted, which means it cannot be executed.

Environment

None

Pull Requests

None
Fixed

Assignee

Olivier Michallat

Reporter

Dan Jatnieks

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Trivial
Configure