Skip to content

[CASSANALYTICS-183] - Pass quoted identifiers to sidecar API calls for mixed-case keyspace/table restore - #226

Open
bianca-stanciu29 wants to merge 4 commits into
apache:trunkfrom
bianca-stanciu29:CASSANALYTICS-183
Open

[CASSANALYTICS-183] - Pass quoted identifiers to sidecar API calls for mixed-case keyspace/table restore#226
bianca-stanciu29 wants to merge 4 commits into
apache:trunkfrom
bianca-stanciu29:CASSANALYTICS-183

Conversation

@bianca-stanciu29

Copy link
Copy Markdown

No description provided.

private TokenRangeReplicasResponse getTokenRangesAndReplicaSets()
{
CassandraContext context = getCassandraContext();
String quotedKeyspace = maybeQuotedIdentifier(bridge(), conf.quoteIdentifiers, conf.keyspace);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: change name to maybeQuotedKeyspace?

}

@Test
void testCreateRestoreJobUsesQuotedIdentifiers() throws Exception

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding quoted identifiers tests to the other modified APIs?

/**
* @return the keyspace name, quoted with double quotes when {@code quoteIdentifiers} is set
*/
public String maybeQuotedKeyspace()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering here if we really need wrappers with the "maybe*" prefix, or we can just use this as default for keyspace() and table(). What do you think @yifan-c / @frankgh ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants