Skip to content

Instantly share code, notes, and snippets.

@mfiguiere
Created April 15, 2015 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfiguiere/7a19f8368b3ab4fbef3a to your computer and use it in GitHub Desktop.
Save mfiguiere/7a19f8368b3ab4fbef3a to your computer and use it in GitHub Desktop.
Cassandra Error Codes
BATCH-1: Batch with conditions cannot span multiple partitions
BATCH-2: Batch with conditions cannot span multiple tables
BATCH-3: Cannot include a counter statement in a logged batch
BATCH-4: Cannot include non-counter statement in a counter batch
BATCH-5: Cannot provide custom timestamp for a BATCH containing counters
BATCH-6: Cannot provide custom timestamp for conditional BATCH
BATCH-7: Cannot provide custom timestamp for counter BATCH
BATCH-8: Counter and non-counter mutations cannot exist in the same batch
BATCH-9: Global TTL on the BATCH statement is not supported.
BATCH-10: Invalid empty consistency level
BATCH-11: Timestamp must be set either on BATCH or individual statements
BATCH-12: Batch too large
COLLECTION-1: Invalid null map key
COLLECTION-2: null is not supported inside collections
COLLECTION-3: Invalid map literal for %s of type %s
COLLECTION-4: Invalid map literal for %s: bind variables are not supported inside collection literals
COLLECTION-5: Invalid map literal for %s: key %s is not of type %s
COLLECTION-6: Invalid map literal for %s: value %s is not of type %s
COLLECTION-7: Map key is too long. Map keys are limited to %d bytes but %d bytes keys provided
COLLECTION-8: Map value is too long. Map values are limited to %d bytes but %d bytes value provided
COLLECTION-9: Map value is too long. Map values are limited to %d bytes but %d bytes value provided
COLLECTION-10: Cannot set the value of counter column %s (counters can only be incremented/decremented, not set)
COLLECTION-11: Invalid deletion operation for frozen collection column %s
COLLECTION-12: Invalid deletion operation for non collection column %s
COLLECTION-13: Invalid operation (%s) for frozen collection column %s
COLLECTION-14: Invalid operation (%s) for frozen list column %s
COLLECTION-15: Invalid operation (%s) for non collection column %s
COLLECTION-16: Invalid operation (%s) for non counter column %s
COLLECTION-17: Invalid operation (%s) for non list column %s
COLLECTION-18: Invalid operation (%s) for set column %s
COLLECTION-19: Non-frozen collections are not allowed inside collections: %s
COLLECTION-20: Attempted to delete an element from a list which is null
COLLECTION-21: Attempted to set an element on a list which is null
COLLECTION-22: Invalid null value for list index
COLLECTION-23: null is not supported inside collections
COLLECTION-24: Invalid list literal for %s of type %s
COLLECTION-25: Invalid list literal for %s: bind variables are not supported inside collection literals
COLLECTION-26: Invalid list literal for %s: value %s is not of type %s
COLLECTION-27: List index %d out of bound, list has size %d
COLLECTION-28: List value is too long. List values are limited to %d bytes but %d bytes value provided
COLLECTION-29: Invalid null set element
COLLECTION-30: null is not supported inside collections
COLLECTION-31: Invalid set literal for %s of type %s
COLLECTION-32: Invalid set literal for %s: bind variables are not supported inside collection literals
COLLECTION-33: Invalid set literal for %s: value %s is not of type %s
COLLECTION-34: Set value is too long. Set values are limited to %d bytes but %d bytes value provided
COLLECTION-35: Non-frozen collection columns do not support IN relations
COLLECTION-36: Unsupported null value for map-entry equality
COUNTER-1: Counters are not allowed inside collections
COUNTER-2: Counters are not allowed inside tuples
COUNTER-3: Cannot provide custom TTL for counter updates
COUNTER-4: Cannot provide custom timestamp for counter updates
COUNTER-5: Invalid null value for counter increment
COUNTER-6: Invalid null value for counter increment/decrement
COUNTER-7: The negation of %s overflows supported counter precision (signed 8 bytes integer)
COUNTER-8: Cannot provide custom TTL for counter updates
COUNTER-9: INSERT statements are not allowed on counter tables, use UPDATE instead
FUNCTION-1: In call to function %s, value 0x%s is not a valid binary representation for type %s
FUNCTION-2: Aggregation function are not supported in the where clause
FUNCTION-3: Incorrect number of arguments specified for function %s (expected %d, found %d)
FUNCTION-4: Type error: cannot assign result of function %s (type %s) to %s (type %s)
FUNCTION-5: Unknown function %s called
FUNCTION-6: fromJson() cannot be used in the selection clause of a SELECT statement
FUNCTION-7: toJson() may only be used within the selection clause of SELECT statements
FUNCTION-8: Ambiguous call to function %s (can be matched by following signatures: %s): use type casts to disambiguate
FUNCTION-9: Invalid call to function %s, none of its type signatures match (known type signatures: %s)
FUNCTION-10: Invalid number of arguments in call to function %s: %d required but %d provided
FUNCTION-12: Type error: %s cannot be passed as argument %d of function %s of type %s
FUNCTION-13: Could not compile function '%s' from Java source: %s
FUNCTION-14: Failed to compile function '%s' for language %s: %s
FUNCTION-15: Invalid language '%s' for function '%s'
FUNCTION-16: toJson() only accepts one argument (got %d)
FUNCTION-17: Aggregate '%s' exists but hasn't been loaded successfully for the following reason: %s. Please see the server log for more details
FUNCTION-18: Referenced state function '%s %s' for aggregate '%s' does not exist
FUNCTION-19: Referenced state function '%s %s' for aggregate '%s' is not a scalar function
FUNCTION-20: Function '%s' exists but hasn't been loaded successfully for the following reason: %s. Please see the server log for details
FUNCTION-21: aggregate functions cannot be used as arguments of aggregate functions
FUNCTION-22: arguments of function %s must be either all aggregates or no aggregates
FUNCTION-23: Cannot use both 'OR REPLACE' and 'IF NOT EXISTS' directives
FUNCTION-24: Final function %s does not exist or is not a scalar function
FUNCTION-25: Functions must be fully qualified with a keyspace name if a keyspace is not set for the session
FUNCTION-26: State function %s does not exist or is not a scalar function
FUNCTION-27: State function %s return type must be the same as the first argument type (if no final function is used)
FUNCTION-28: Aggregate %s can only replace an aggregate
FUNCTION-29: Cannot add aggregate '%s' to non existing keyspace '%s'.
FUNCTION-30: Cannot replace aggregate %s, the new return type %s is not compatible with the return type %s of existing function
FUNCTION-31: Cannot replace native aggregate %s
FUNCTION-32: Function %s already exists
FUNCTION-33: Cannot use both 'OR REPLACE' and 'IF NOT EXISTS' directives
FUNCTION-34: Functions must be fully qualified with a keyspace name if a keyspace is not set for the session
FUNCTION-35: Cannot add function '%s' to non existing keyspace '%s'.
FUNCTION-36: Cannot replace function %s, the new return type %s is not compatible with the return type %s of existing function
FUNCTION-37: Function %s already exists
FUNCTION-38: Function %s can only replace a function
FUNCTION-39: duplicate argument names for given function %s with argument names %s
FUNCTION-40: Functions must be fully qualified with a keyspace name if a keyspace is not set for the session
FUNCTION-41: 'DROP AGGREGATE %s' matches multiple function definitions; specify the argument types by issuing a statement like 'DROP AGGREGATE %s (type, type, ...)'. Hint: use cqlsh 'DESCRIBE AGGREGATE %s' command to find all overloads
FUNCTION-42: Cannot drop aggregate '%s' because it is a " + "native (built-in) function
FUNCTION-43: Cannot drop non existing aggregate '%s'
FUNCTION-44: Functions must be fully qualified with a keyspace name if a keyspace is not set for the session
FUNCTION-45: 'DROP FUNCTION %s' matches multiple function definitions; " + "specify the argument types by issuing a statement like " + "'DROP FUNCTION %s (type, type, ...)'. Hint: use cqlsh " + "'DESCRIBE FUNCTION %s' command to find all overloads
FUNCTION-46: Cannot drop non existing function '%s'
FUNCTION-47: Function '%s' still referenced by %s
FUNCTION-48: Cannot use selection function %s on PRIMARY KEY part %s
FUNCTION-49: Invalid field selection: %s of type %s is not a user type
FUNCTION-50: %s of type %s has no field %s
FUNCTION-51: Cannot use selection function %s on collections
FUNCTION-52: Undefined name %s in selection clause
FUNCTION-53: Unknown function %s called in selection clause
FUNCTION-54: Unknown function '%s'
INDEX-1: Index already exists
INDEX-2: No column definition found for column %s
INDEX-3: Secondary indexes are not allowed on static columns
INDEX-4: Secondary indexes are not supported on PRIMARY KEY columns in COMPACT STORAGE tables
INDEX-5: Secondary indexes are not supported on counter tables
INDEX-6: full() indexes can only be created on frozen collections
INDEX-7: Cannot create index on %s of column %s with non-map type
INDEX-8: Cannot create index on %s of column %s; only non-frozen collections support %s indexes
INDEX-9: Cannot create index on %s of frozen<map> column %s
INDEX-10: Cannot create secondary index on partition key column %s
INDEX-11: Index '" + indexName + "' could not be found in any of the tables of keyspace '
INDEX-12: CUSTOM index requires specifiying the index class
INDEX-13: Cannot specify index class for a non-CUSTOM index
INDEX-14: Cannot specify options for a non-CUSTOM index
INDEX-15: Cannot specify %s as a CUSTOM option
KEYSPACE-1: Keyspace names shouldn't be more than %s characters long (got %s)
KEYSPACE-2: %s is not a valid keyspace name
KEYSPACE-3: Unknown keyspace %s
LWT-1: Cannot mix IF EXISTS and IF NOT EXISTS conditions for the same row
LWT-2: Cannot mix IF conditions and IF NOT EXISTS for the same row
LWT-3: Invalid empty serial consistency level
LWT-4: Cannot provide custom timestamp for conditional updates
LWT-5: Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2.
LWT-6: Conditional updates are not supported on counter tables
LWT-7: IN on the partition key is not supported with conditional updates
LWT-8: PRIMARY KEY column '%s' cannot have IF conditions
LWT-9: Conditions on counters are not supported
LWT-10: DELETE statements must restrict all PRIMARY KEY columns with equality relations in order to use IF conditions, but column '%s' is not restricted
SECURITY-1: ALTER [ROLE|USER] can't be empty
SECURITY-2: %s doesn't exist
SECURITY-3: Role name can't be an empty string
SECURITY-4: %s already exists
SECURITY-5: Cannot DROP primary role for current login
SECURITY-6: Resource %s doesn't exist
SECURITY-7: Role %s doesn't exist
STATEMENT-1: A TTL must be greater or equal to 0
STATEMENT-2: Invalid null value of TTL
STATEMENT-3: Invalid null value of timestamp
STATEMENT-4: ttl is too large. requested (%d) maximum (%d)
STATEMENT-5: Invalid null value for %s element access
STATEMENT-6: Invalid comparison with null for operator %s
STATEMENT-7: Invalid element access syntax for non-collection column %s
STATEMENT-8: Invalid element access syntax for set column %s
STATEMENT-9: Invalid negative list index %d
STATEMENT-10: Undefined name %s in selection clause
STATEMENT-11: Invalid %s constant (%s) for %s of type %s
STATEMENT-12: Got null for INSERT JSON values
STATEMENT-13: JSON values map contains unrecognized column: %s
STATEMENT-14: Could not decode JSON string as a map: %s. (String was: %s)
STATEMENT-15: Error decoding JSON value for %s: %s
STATEMENT-16: Invalid amount of bind variables
STATEMENT-17: Invalid empty value for clustering column of COMPACT TABLE
STATEMENT-18: Key length of %s is longer than maximum of %s
STATEMENT-19: Key may not be empty
STATEMENT-20: Prepared statement of size %d bytes is larger than allowed maximum of %d bytes.
STATEMENT-21: The sum of all clustering columns is too long (%s > %s)
STATEMENT-22: Too many markers(?). %d markers exceed the allowed maximum of %d
STATEMENT-23: there were %d markers(?) in CQL but %d bound variables
STATEMENT-24: Expected %d elements in value tuple, but got %d: %s
STATEMENT-25: Invalid tuple literal for %s: component %d is not of type %s
STATEMENT-26: Invalid tuple literal for %s: too many elements. Type %s expects %d but got %d
STATEMENT-27: Invalid tuple type literal for %s of type %s
STATEMENT-28: Cannot assign value %s to %s of type %s
STATEMENT-29: Out of bound timestamp, must be in [%d, %d]
STATEMENT-30: Invalid null value for IN restriction
STATEMENT-31: the select clause must either contain only aggregates or no aggregate
STATEMENT-32: Invalid identifier %s for deletion (should not be a PRIMARY KEY part)
STATEMENT-33: Primary key column '%s' must be specified in order to delete column '%s'
STATEMENT-34: Unknown identifier %s
STATEMENT-35: Invalid identifier %s for deletion (should not be a PRIMARY KEY part)
STATEMENT-36: Primary key column '%s' must be specified in order to delete column '%s'
STATEMENT-37: Unknown identifier %s
STATEMENT-38: Multi-column relations cannot be used in WHERE clauses for UPDATE and DELETE statements: %s
STATEMENT-39: Invalid empty consistency level
STATEMENT-40: Invalid operator %s for PRIMARY KEY part %s
STATEMENT-41: Invalid restriction on clustering column %s since the %s statement modifies only static columns
STATEMENT-42: Multiple definitions found for PRIMARY KEY part %s
STATEMENT-43: Non PRIMARY KEY %s found in where clause
STATEMENT-44: The token function cannot be used in WHERE clauses for UPDATE and DELETE statements: %s
STATEMENT-45: Unknown key identifier %s
STATEMENT-46: Write operation require a read but consistency %s is not supported on reads
STATEMENT-47: Invalid limit value
STATEMENT-48: Column names for INSERT must be provided when using VALUES
STATEMENT-49: No columns provided to INSERT
STATEMENT-50: Unmatched column names/values
STATEMENT-51: Column %s is mandatory for this COMPACT STORAGE table
STATEMENT-52: Missing PRIMARY KEY part %s
STATEMENT-53: Multiple definitions found for column %s
STATEMENT-54: PRIMARY KEY part %s found in SET part
STATEMENT-55: Invalid number of arguments, expecting %d values but got %d
TABLE-1: Cannot add new column to a COMPACT STORAGE table
TABLE-2: Cannot drop columns from a non-CQL3 table
TABLE-3: Cannot set default_time_to_live on a table with counters
TABLE-4: Cannot use non-frozen collections with a non-composite PRIMARY KEY
TABLE-5: Cannot use non-frozen collections with super column families
TABLE-6: Static columns are not allowed in COMPACT STORAGE tables
TABLE-7: Static columns are only useful (and thus allowed) if the table has at least one clustering column
TABLE-8: ALTER TABLE WITH invoked, but no parameters found
TABLE-9: Cannot add a collection with the name %s because a collection with the same name and a different type has already been used in the past
TABLE-10: Cannot drop PRIMARY KEY part %s
TABLE-11: Cannot re-add previously dropped counter column %s
TABLE-12: Column %s was not found in table %s
TABLE-13: Invalid column name %s because it conflicts with a PRIMARY KEY part
TABLE-14: Invalid column name %s because it conflicts with an existing column
TABLE-15: counter type is not supported for PRIMARY KEY part %s
TABLE-16: COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY, none given
TABLE-17: Cannot set default_time_to_live on a table with counters
TABLE-18: Collection types are not supported with COMPACT STORAGE
TABLE-19: Multiple PRIMARY KEYs specifed (exactly one required)
TABLE-20: No PRIMARY KEY specifed (exactly one required)
TABLE-21: No definition found that is not part of the PRIMARY KEY
TABLE-22: Non-frozen collection types are not supported with COMPACT STORAGE
TABLE-23: Only clustering key columns can be defined in CLUSTERING ORDER directive
TABLE-24: Static columns are not supported in COMPACT STORAGE tables
TABLE-25: Static columns are only useful (and thus allowed) if the table has at least one clustering column
TABLE-26: COMPACT STORAGE with composite PRIMARY KEY allows no more than one column not part of the PRIMARY KEY (got: %s)
TABLE-27: Invalid collection type for PRIMARY KEY component %s
TABLE-28: Missing CLUSTERING ORDER for column %s
TABLE-29: Multiple definition of identifier %s
TABLE-30: Static column %s cannot be part of the PRIMARY KEY
TABLE-31: Table names shouldn't be more than %s characters long (got %s)
TABLE-32: The order of columns in the CLUSTERING ORDER directive must be the one of the clustering key (%s must appear before %s)
TABLE-33: Unknown definition %s referenced in PRIMARY KEY
TABLE-34: %s is not a valid table name (must be alphanumeric character only: [0-9A-Za-z]+)
TABLE-35: counter type is not supported for PRIMARY KEY part %s
TRIGGER-1: Trigger %s was not found
TRIGGER-2: Counter mutations and trigger mutations cannot be applied together atomically
TRIGGER-3: Partition key of additional mutation does not match primary update key
TRIGGER-4: table of additional mutation does not match primary update table
UDT-1: You need to be logged in a keyspace or use a fully qualified user type name
UDT-2: Cannot add new field %s to type %s: a field of the same name already exists
UDT-3: Cannot alter type in unknown keyspace %s
UDT-4: No user type named %s exists.
UDT-5: Type %s is incompatible with previous type %s of field %s in user type %s
UDT-6: Unknown field %s in type %s
UDT-7: A user type cannot contain counters
UDT-8: A user type of name %s already exists
UDT-9: Cannot add type in unknown keyspace %s
UDT-10: Duplicate field name %s in type %s
UDT-11: Cannot drop type in unknown keyspace %s
UDT-12: Cannot drop user type %s as it is still used by function %s
UDT-13: Cannot drop user type %s as it is still used by table %s.%s
UDT-14: Cannot drop user type %s as it is still used by user type %s
UDT-15: No user type named %s exists
UDT-16: Non-frozen User-Defined types are not supported, please use frozen<>
UDT-17: Unknown type %s
UDT-18: Statement on keyspace %s cannot refer to a user type in keyspace %s
UDT-19: Invalid user type literal for %s of type %s
UDT-20: Invalid user type literal for %s: field %s is not of type %s
UDT-21: Unknown field '%s' in value of user defined type %s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment