Skip to content

Commit a4f4811

Browse files
committed
Document where reserved keyword list comes from.
1 parent 697d373 commit a4f4811

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

driver-core/src/main/java/com/datastax/driver/core/Metadata.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class Metadata {
4848
private static final Pattern alphanumeric = Pattern.compile("\\w+"); // this includes _
4949
private static final Pattern lowercaseAlphanumeric = Pattern.compile("[a-z][a-z0-9_]*");
5050

51+
// See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#appendixA
5152
private static final Set<String> RESERVED_KEYWORDS = ImmutableSet.of(
5253
"add", "allow", "alter", "and", "any", "apply", "asc", "authorize", "batch", "begin", "by",
5354
"columnfamily", "create", "delete", "desc", "drop", "each_quorum", "from", "grant", "in",

0 commit comments

Comments
 (0)