Yifan Cai created CASSANALYTICS-211:
---------------------------------------
Summary: Make CqlUtils schema extraction quote-aware
Key: CASSANALYTICS-211
URL: https://issues.apache.org/jira/browse/CASSANALYTICS-211
Project: Apache Cassandra Analytics
Issue Type: Bug
Components: Reader, Writer
Reporter: Yifan Cai
CqlUtils extracts the table schema, UDTs and index count from the keyspace
schema dump with regular expressions that do not understand single-quoted
string literals. Text inside a table comment that looks like a CREATE TABLE, or
that contains a semicolon, can be matched as DDL or can truncate the statement,
giving the reader or writer the wrong schema. This change blanks string
literals before matching (or parses the dump with the Cassandra CQL parser) in
extractTableSchema, extractUdts and extractIndexCount, and quotes interpolated
identifiers.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]