Skip to content

Conversation

lukasz-antoniak
Copy link
Member

JIRA link: CASSJAVA-103.

In all schema builder classes (e.g. DefaultCreateTable), column identifiers are rendered using CqlIdentifier.asCql(true) method. This was not the case in DefaultCreateIndex, which led to missing quotes in CQL statement.

createIndex(CqlIdentifier.fromInternal("bAr"))
   .onTable(CqlIdentifier.fromInternal("xY"))
   .andColumn(CqlIdentifier.fromInternal("aB"))

Result: CREATE INDEX "bAr" ON "xY" (aB)
Expected: CREATE INDEX "bAr" ON "xY" ("aB")

Added test in CreateTableTest to make sure same behaviour applies there.

@absurdfarce absurdfarce self-requested a review September 18, 2025 05:45
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.

1 participant