Skip to content

Instantly share code, notes, and snippets.

@mfiguiere
Created April 8, 2015 15:59
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/3036c2a54af016bbeb58 to your computer and use it in GitHub Desktop.
Save mfiguiere/3036c2a54af016bbeb58 to your computer and use it in GitHub Desktop.
Cassandra Errors by Version - 1.2.0 -> trunk
=== cassandra-1.2.0 -> cassandra-1.2.1 ===
org/apache/cassandra/cql3/operations/ColumnOperation.java (file added)
+ String.format("'%s' is an invalid value, should be a long.", value.getText())
+ "The negation of " + val + " overflows supported integer precision (signed 8 bytes integer)"
org/apache/cassandra/cql3/operations/PreparedOperation.java (file added)
+ "Unsupported syntax for increment, must be of the form X = X + <value>"
+ "Unsupported syntax, cannot add to a prepared set"
+ "Unsuppoted syntax, discard syntax for map not supported"
+ "Unsupported syntax, cannot put to a prepared map"
org/apache/cassandra/cql3/ParsedType.java (file added)
+ "set type cannot contain another collection"
+ "map type cannot contain another collection"
+ "list type cannot contain another collection"
+ "counters are not allowed inside a collection"
org/apache/cassandra/cql3/operations/ListOperation.java (file added)
+ "Can't apply operation on column with " + validator + " type."
+ String.format("Invalid operation, %s is not of list type", column.name)
+ String.format("Invalid index %d, list has size %d", idx, list == null ? 0 : list.size())
+ "List operations are only supported on List typed columns, but " + validator + " given."
+ String.format("Invalid argument %s for %s, must be an integer.", value.getText(), getType())
org/apache/cassandra/cql3/Term.java (file added)
+ "Invalid null value for prepared variable " + bindIndex
org/apache/cassandra/cql3/operations/MapOperation.java (file added)
+ String.format("Invalid operation, %s is not of map type", column.name)
+ "Can't apply operation on column with " + validator + " type."
+ "Map operations are only supported on Map typed columns, but " + validator + " given."
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java (file added)
+ String.format("Unkown definition %s referenced in PRIMARY KEY", t)
+ String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
+ String.format("The order of columns in the CLUSTERING ORDER directive must be the one of the clustering key (%s must appear before %s)", c, id)
+ String.format("\"%s\" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
+ String.format("COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
+ String.format("Invalid collection type for PRIMARY KEY component %s", t)
+ "Too much columns provided for CLUSTERING ORDER"
+ String.format("counter type is not supported for PRIMARY KEY part %s", alias)
+ String.format("COMPACT STORAGE with composite PRIMARY KEY allows no more than one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
+ String.format("Column family names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
+ String.format("counter type is not supported for PRIMARY KEY part %s", t.key)
+ String.format("Missing CLUSTERING ORDER for column %s", c)
+ "Collection types are not supported with COMPACT STORAGE"
+ "You must specify one and only one PRIMARY KEY"
+ String.format("Multiple definition of identifier %s", entry.getElement())
+ "No definition found that is not part of the PRIMARY KEY"
org/apache/cassandra/cql3/operations/SetOperation.java (file added)
+ "Can't apply operation on column with " + validator + " type."
+ "Set operations are only supported on Set typed columns, but " + validator + " given."
org/apache/cassandra/cql3/Constants.java (file deleted)
- "Invalid null value for counter increment"
- "The negation of " + increment + " overflows supported counter precision (signed 8 bytes integer)"
- String.format("Invalid %s constant (%s) for \"%s\" of type %s", type, text, receiver.name, receiver.type.asCQL3Type())
- "Invalid null value for counter increment/decrement"
org/apache/cassandra/triggers/TriggerExecutor.java (file deleted)
- "Counter mutations and trigger mutations cannot be applied together atomically."
- "Column family of additional mutation does not match primary update cf"
- "Partition key of additional mutation does not match primary update key"
org/apache/cassandra/cql3/Operation.java (file deleted)
- String.format("Invalid operation (%s) for non counter column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for non collection column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for set column %s", toString(receiver), receiver.name)
- String.format("Cannot set the value of counter column %s (counters can only be incremented/decremented, not set)", receiver.name)
- String.format("Invalid deletion operation for frozen collection column %s", receiver.name)
- String.format("Invalid operation (%s) for non list column %s", toString(receiver), receiver.name)
- String.format("Invalid deletion operation for non collection column %s", receiver.name)
- String.format("Invalid operation (%s) for frozen list column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for frozen collection column %s", toString(receiver), receiver.name)
org/apache/cassandra/cql3/functions/FunctionCall.java (file deleted)
- String.format("Invalid null value for argument to %s", fun)
org/apache/cassandra/cql3/functions/Functions.java (file deleted)
- String.format("Invalid call to function %s, none of its type signature matches (known type signatures: %s)", name, signatures(factories, receiver))
- String.format("Unknown CQL3 function %s called", name)
- String.format("Type error: cannot assign result of function %s (type %s) to %s (type %s)", fun.name(), fun.returnType().asCQL3Type(), receiver, receiver.type.asCQL3Type())
- String.format("Type error: %s cannot be passed as argument %d of function %s of type %s", provided, i, fun.name(), expected.type.asCQL3Type())
- String.format("Invalid number of arguments in call to function %s: %d required but %d provided", fun.name(), fun.argsType().size(), providedArgs.size())
- String.format("Ambiguous call to function %s (can match both type signature %s and %s): use type casts to disambiguate", name, signature(candidate), signature(toTest))
org/apache/cassandra/cql3/TypeCast.java (file deleted)
- String.format("Cannot cast value %s to type %s", term, type)
- String.format("Cannot assign value %s to %s of type %s", this, receiver, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/statements/CreateTypeStatement.java (file deleted)
- String.format("Cannot add type in unknown keyspace %s", name.getKeyspace())
- String.format("A user type of name %s already exists", name)
- String.format("Duplicate field name %s in type %s", UTF8Type.instance.getString(fieldName), UTF8Type.instance.getString(type.name))
- "A user type cannot contain counters"
org/apache/cassandra/cql3/statements/AlterTypeStatement.java (file deleted)
- String.format("Type %s is incompatible with previous type %s of field %s in user type %s", type, previous.asCQL3Type(), fieldName, name)
- String.format("Unknown field %s in type %s", fieldName, name)
- "You need to be logged in a keyspace or use a fully qualified user type name"
- String.format("Cannot add new field %s to type %s: a field of the same name already exists", fieldName, name)
- String.format("Cannot alter type in unknown keyspace %s", name.getKeyspace())
- String.format("No user type named %s exists.", name)
- String.format("Unknown field %s in type %s", from, name)
org/apache/cassandra/cql3/UserTypes.java (file deleted)
- String.format("Unknown field '%s' in value of user defined type %s", id, ut.getNameAsString())
- String.format("Invalid user type literal for %s: field %s is not of type %s", receiver, field, fieldSpec.type.asCQL3Type())
- String.format("Invalid user type literal for %s of type %s", receiver, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/Maps.java (file deleted)
- String.format("Invalid map literal for %s: bind variables are not supported inside collection literals", receiver.name)
- String.format("Invalid map literal for %s: key %s is not of type %s", receiver.name, entry.left, keySpec.type.asCQL3Type())
- "null is not supported inside collections"
- String.format("Map value is too long. Map values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, valueBytes.remaining())
- String.format("Invalid map literal for %s: value %s is not of type %s", receiver.name, entry.right, valueSpec.type.asCQL3Type())
- String.format("Map value is too long. Map values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, value.remaining())
- "Invalid null map key"
- String.format("Map key is too long. Map keys are limited to %d bytes but %d bytes keys provided", FBUtilities.MAX_UNSIGNED_SHORT, keyBytes.remaining())
- String.format("Invalid map literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/statements/DropTypeStatement.java (file deleted)
- String.format("Cannot drop user type %s as it is still used by user type %s", name, ut.asCQL3Type())
- String.format("No user type named %s exists.", name)
- String.format("Cannot drop user type %s as it is still used by table %s.%s", name, cfm.ksName, cfm.cfName)
- String.format("Cannot drop type in unknown keyspace %s", name.getKeyspace())
org/apache/cassandra/cql3/statements/CQL3CasRequest.java (file deleted)
- "Cannot mix IF EXISTS and IF NOT EXISTS conditions for the same row"
- "Cannot mix IF conditions and IF NOT EXISTS for the same row"
org/apache/cassandra/cql3/statements/SingleColumnRestriction.java (file deleted)
- "Invalid null value for IN restriction"
- String.format( "More than one restriction was found for the %s bound on %s", b.name().toLowerCase(), name)
org/apache/cassandra/cql3/UpdateParameters.java (file deleted)
- String.format("Out of bound timestamp, must be in [%d, %d]", Long.MIN_VALUE + 1, Long.MAX_VALUE)
org/apache/cassandra/cql3/statements/IndexPropDefs.java (file deleted)
- "Cannot specify options for a non-CUSTOM index"
- "CUSTOM index requires specifiying the index class"
- String.format("Cannot specify %s as a CUSTOM option", SecondaryIndex.CUSTOM_INDEX_OPTION_NAME)
- "Cannot specify index class for a non-CUSTOM index"
org/apache/cassandra/cql3/statements/MultiColumnRestriction.java (file deleted)
- "Invalid null value for IN restriction"
org/apache/cassandra/cql3/statements/CreateTableStatement.java (file deleted)
- "Static columns are only useful (and thus allowed) if the table has at least one clustering column"
- String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
- String.format("The order of columns in the CLUSTERING ORDER directive must be the one of the clustering key (%s must appear before %s)", c, id)
- String.format("\"%s\" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
- "Only clustering key columns can be defined in CLUSTERING ORDER directive"
- "Non-frozen collection types are not supported with COMPACT STORAGE"
- "Multiple PRIMARY KEYs specifed (exactly one required)"
- "Collection types are not supported with COMPACT STORAGE"
- String.format("Multiple definition of identifier %s", entry.getElement())
- String.format("counter type is not supported for PRIMARY KEY part %s", t)
- "Static columns are not supported in COMPACT STORAGE tables"
- String.format("Missing CLUSTERING ORDER for column %s", c)
- String.format("Static column %s cannot be part of the PRIMARY KEY", t)
- String.format("Invalid collection type for PRIMARY KEY component %s", t)
- String.format("Static column %s cannot be part of the PRIMARY KEY", alias)
- String.format("Column family names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
- "COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY, none given"
- "No PRIMARY KEY specifed (exactly one required)"
- "No definition found that is not part of the PRIMARY KEY"
- String.format("Unknown definition %s referenced in PRIMARY KEY", t)
- String.format("COMPACT STORAGE with composite PRIMARY KEY allows no more than one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
- String.format("counter type is not supported for PRIMARY KEY part %s", alias)
- "Cannot set default_time_to_live on a table with counters"
org/apache/cassandra/cql3/CQL3Type.java (file deleted)
- "Counters are not allowed inside tuples"
- "Unknown type " + name
- "Counters are not allowed inside collections: " + this
- String.format("Statement on keyspace %s cannot refer to a user type in keyspace %s; " + "user types can only be used in the keyspace they are defined in", keyspace, name.getKeyspace())
- "Unknown keyspace " + name.getKeyspace()
- "Non-frozen User-Defined types are not supported, please use frozen<>"
- "Non-frozen collections are not allowed inside collections: " + this
org/apache/cassandra/cql3/Attributes.java (file deleted)
- "A TTL must be greater or equal to 0"
- String.format("ttl is too large. requested (%d) maximum (%d)", ttl, ExpiringCell.MAX_TTL)
- "Invalid null value of timestamp"
- "Invalid null value of TTL"
- "Invalid timestamp value"
org/apache/cassandra/cql3/Tuples.java (file deleted)
- String.format("Invalid tuple type literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
- String.format("Invalid tuple literal for %s: component %d is not of type %s", receiver.name, i, spec.type.asCQL3Type())
- "Non-frozen collection columns do not support IN relations"
- String.format("Expected %d elements in value tuple, but got %d: %s", receivers.size(), elements.size(), this)
- String.format("Invalid tuple literal for %s: too many elements. Type %s expects %d but got %d", receiver.name, tt.asCQL3Type(), tt.size(), elements.size())
org/apache/cassandra/cql3/Lists.java (file deleted)
- String.format("List value is too long. List values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, bytes.remaining())
- String.format("List value is too long. List values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, value.remaining())
- "null is not supported inside collections"
- String.format("Invalid list literal for %s: bind variables are not supported inside collection literals", receiver.name)
- String.format("List index %d out of bound, list has size %d", idx, existingList.size())
- "Invalid null value for list index"
- String.format("Invalid list literal for %s: value %s is not of type %s", receiver.name, rt, valueSpec.type.asCQL3Type())
- String.format("Invalid list literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/Sets.java (file deleted)
- String.format("Invalid set literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
- String.format("Invalid set literal for %s: value %s is not of type %s", receiver.name, rt, valueSpec.type.asCQL3Type())
- "null is not supported inside collections"
- String.format("Set value is too long. Set values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, bytes.remaining())
- String.format("Invalid set literal for %s: bind variables are not supported inside collection literals", receiver.name)
org/apache/cassandra/cql3/functions/BytesConversionFcts.java (file deleted)
- String.format("In call to function %s, value 0x%s is not a valid binary representation for type %s", name, ByteBufferUtil.bytesToHex(val), toType.asCQL3Type())
org/apache/cassandra/io/sstable/CQLSSTableWriter.java (file deleted)
- String.format("Invalid number of arguments, expecting %d values but got %d", boundNames.size(), values.size())
org/apache/cassandra/cql3/statements/Selection.java (file deleted)
- String.format("Unknown function '%s'", withFun.functionName)
- String.format("Cannot use selection function %s on PRIMARY KEY part %s", tot.isWritetime ? "writeTime" : "ttl", def.name)
- String.format("%s of type %s has no field %s", withField.selected, type.asCQL3Type(), withField.field)
- String.format("Cannot use selection function %s on collections", tot.isWritetime ? "writeTime" : "ttl")
- String.format("Undefined name %s in selection clause", selectable)
- String.format("Undefined name %s in selection clause", id)
- String.format("Undefined name %s in selection clause", tot.id)
- String.format("Invalid field selection: %s of type %s is not a user type", withField.selected, type.asCQL3Type())
- String.format("Unknown function %s called in selection clause", fun.functionName)
org/apache/cassandra/cql3/statements/DropTriggerStatement.java (file deleted)
- String.format("Trigger %s was not found", triggerName)
org/apache/cassandra/cql3/ColumnCondition.java (file deleted)
- String.format("Invalid comparison with null for operator \"%s\"", operator)
- String.format("Invalid element access syntax for non-collection column %s", receiver.name)
- "Conditions on counters are not supported"
- String.format("Invalid element access syntax for set column %s", receiver.name)
- String.format("Invalid negative list index %d", idx)
- "Invalid null value for " + (column.type instanceof MapType ? "map" : "list") + " element access"
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
- "Cannot create index on keys of column " + target + " with non-map type"
- "Cannot create index on keys of frozen<map> column " + target
- "Frozen collections currently only support full-collection indexes. " + "For example, 'CREATE INDEX ON <table>(full(<columnName>))'."
+ "Indexes on collections are no yet supported"
- "No column definition found for column " + target.column
+ "No column definition found for column " + columnName
+ String.format("Cannot create index on PRIMARY KEY part %s", columnName)
+ String.format("Cannot create index on column %s of compact CF", columnName)
- "Secondary indexes are not allowed on static columns"
- "Secondary indexes are not supported on PRIMARY KEY columns in COMPACT STORAGE tables"
- "Secondary indexes are not supported on counter tables"
- "full() indexes can only be created on frozen collections"
- String.format("Cannot create secondary index on partition key column %s", target.column)
- String.format(msg, target.column, target.isCollectionKeys ? "keys" : "values", target.column, previousIsKeys ? "keys" : "values")
org/apache/cassandra/cql3/QueryProcessor.java
- "Invalid amount of bind variables"
- "Invalid empty value for clustering column of COMPACT TABLE"
+ "zero-length column name"
+ String.format("column name is too long (%s > %s)", name.remaining(), IColumn.MAX_NAME_LENGTH)
- String.format("Prepared statement of size %d bytes is larger than allowed maximum of %d bytes.", statementSize, MAX_CACHE_PREPARED_MEMORY)
- String.format("The sum of all clustering columns is too long (%s > %s)", serializedSize, Cell.MAX_NAME_LENGTH)
- String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", boundTerms, FBUtilities.MAX_UNSIGNED_SHORT)
- String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundTerms(), variables.size())
+ String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundsTerms(), variables.size())
org/apache/cassandra/cql3/statements/UpdateStatement.java
+ "Cannot apply collection operation on column " + name + " with " + name.type + " type."
+ "IN is only supported on the last column of the partition key"
+ "Invalid counter operation on non-counter table."
+ "Invalid non-counter operation on counter table."
- "No columns provided to INSERT"
+ "no columns specified for INSERT"
- "Unmatched column names/values"
+ "unmatched column names/values"
- String.format("Can't index column value of size %d for index %s on %s.%s", cell.value().remaining(), cfm.getColumnDefinition(cell.name()).getIndexName(), cfm.ksName, cfm.cfName)
- String.format("Column %s is mandatory for this COMPACT STORAGE table", cfm.compactValueColumn().name)
+ String.format("Invalid definition for %s, not a collection type", name)
+ String.format("Invalid operator %s for key %s", rel.operator(), rel.getEntity())
+ String.format("Missing PRIMARY KEY part %s since %s is set", firstEmpty.name, name.name)
- String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().iterator().next())
+ String.format("Missing PRIMARY KEY part %s", cfDef.columns.values().iterator().next())
+ String.format("Missing mandatory PRIMARY KEY part %s", name)
+ String.format("Missing mandatory column %s", cfDef.value)
+ String.format("Multiple definitions found for PRIMARY KEY part %s", name)
- String.format("Multiple definitions found for column %s", id)
+ String.format("Multiple definitions found for column %s", name)
+ String.format("PRIMARY KEY part %s found in SET part", rel.getEntity())
+ String.format("Unknown identifier %s", columnNames.get(i))
- String.format("Unknown identifier %s", id)
+ String.format("Unknown key identifier %s", rel.getEntity())
org/apache/cassandra/cql3/statements/DropUserStatement.java
- String.format("User %s doesn't exist", username)
+ String.format("User %s doesn't exists", username)
org/apache/cassandra/cql3/statements/DropIndexStatement.java
- "Index '" + indexName + "' could not be found in any of the tables of keyspace '" + keyspace() + '\''
+ "Index '" + indexName + "' could not be found in any of the column families of keyspace '" + keyspace() + "'"
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("DELETE statements must restrict all PRIMARY KEY columns with equality relations in order " + "to use IF conditions, but column '%s' is not restricted", def.name)
+ "Unknown collection type: " + validator.kind
- String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", def.name)
+ String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", column)
- String.format("Primary key column '%s' must be specified in order to delete column '%s'", getFirstEmptyKey().name, deletion.column.name)
+ String.format("Invalid selection %s since %s is neither a list or a map", column, column.id())
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.iterator().next().left)
- String.format("Unknown identifier %s", id)
+ String.format("Unknown identifier %s", column)
org/apache/cassandra/cql3/statements/ModificationStatement.java
+ "A TTL must be greater or equal to 0"
- String.format("Multi-column relations cannot be used in WHERE clauses for UPDATE and DELETE statements: %s", relation)
- "Cannot provide custom TTL for counter updates"
- "Cannot provide custom timestamp for conditional updates"
- "Cannot provide custom timestamp for counter updates"
- "Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2."
- "Conditional updates are not supported on counter tables"
- "IN is only supported on the last column of the partition key"
- "IN on the partition key is not supported with conditional updates"
- String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", def.name)
- String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), def.name)
- String.format("Invalid restriction on clustering column %s since the %s statement modifies only static columns", def.name, type)
- String.format("Missing PRIMARY KEY part %s since %s is set", firstEmptyKey.name, def.name)
- String.format("Missing mandatory PRIMARY KEY part %s", def.name)
- String.format("Multiple definitions found for PRIMARY KEY part %s", def.name)
- String.format("Non PRIMARY KEY %s found in where clause", def.name)
- String.format("PRIMARY KEY column '%s' cannot have IF conditions", id)
- String.format("The token function cannot be used in WHERE clauses for UPDATE and DELETE statements: %s", relation)
- String.format("Unknown identifier %s", id)
- String.format("Unknown key identifier %s", id)
+ String.format("ttl is too large. requested (%d) maximum (%d)", timeToLive, ExpiringColumn.MAX_TTL)
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Cannot execute this query as it might involve data filtering and thus may have unpredictable performance. " + "If you want to execute this query despite the performance unpredictability, use ALLOW FILTERING"
+ "Cannot use IN operator on column not part of the PRIMARY KEY"
- "Cannot execute this query as it might involve data filtering and " + "thus may have unpredictable performance. If you want to execute " + "this query despite the performance unpredictability, use ALLOW FILTERING"
- "Cannot page queries with both ORDER BY and a IN restriction on the partition key; you must either remove the " + "ORDER BY or the IN and sort client side, or disable paging for this query"
- "Cannot restrict clustering columns when selecting only static columns"
- "IN restrictions are not supported on indexed columns"
- "Invalid limit value"
- "Invalid null token value"
- "Invalid null value in condition for column " + cfm.clusteringColumns().get(i + def.position())
- "Invalid null value in condition for column " + def.name
- "Invalid null value in condition for column " + defs.get(i)
- "Invalid null value in condition for column " + firstName.name
- "Invalid null value of limit"
- "Mixing single column relations and multi column relations on clustering columns is not allowed"
+ "No indexed columns present in by-columns clause with Equal operator"
+ "ORDER BY could not be used on columns missing in select clause."
- "Only EQ and IN relation are supported on the partition key (unless you use the token() function)"
+ "Only EQ and IN relation are supported on the partition key for random partitioners (unless you use the token() function)"
- "Queries using 2ndary indexes don't support selecting only static columns"
+ "Select using the token() function don't support IN clause"
+ "Start key must sort before (or equal to) finish key in your partitioner!"
+ "Start key sorts after end key. This is not allowed; you probably should not specify end key at all under random partitioner"
+ String.format("%s cannot be restricted by both an equal and an inequal relation", name)
- String.format( "Clustering columns may not be skipped in multi-column relations. " + "They should appear in the PRIMARY KEY order. Got %s", relation)
- String.format( "Clustering columns must appear in the PRIMARY KEY order in multi-column relations: %s", relation)
- String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous.name)
- String.format( "Partitioning column \"%s\" cannot be restricted because the preceding column (\"%s\") is " + "either not restricted or is restricted by a non-EQ relation", cdef.name, previous)
- String.format("%s cannot be restricted by more than one relation if it includes a IN", def.name)
+ String.format("%s cannot be restricted by more than one reation if it includes a IN", name)
- String.format("%s cannot be restricted by more than one relation if it includes an Equal", def.name)
+ String.format("%s cannot be restricted by more than one relation if it includes an Equal", name)
+ String.format("Cannot use function %s on PRIMARY KEY part %s", t.function(), name)
+ String.format("Function %s is not supported on collections", t.function())
+ String.format("Function %s is only allowed on timeuuid columns", t.function())
+ String.format("Invalid restrictions found on %s", name)
- String.format("Aliases are not allowed in order by clause ('%s')", column)
- String.format("Aliases aren't allowed in the where clause ('%s')", relation)
- String.format("Cannot restrict column \"%s\" by IN relation as a collection is selected by the query", cdef.name)
- String.format("Cannot restrict column \"%s\" by a CONTAINS relation without a secondary index", cdef.name)
- String.format("Cannot use %s relation on non collection column %s", newRel.operator(), def.name)
- String.format("Cannot use CONTAINS KEY on non-map column %s", def.name)
- String.format("Clustering column \"%s\" cannot be restricted by an IN relation", cdef.name)
- String.format("Collection column %s can only be restricted by CONTAINS or CONTAINS KEY", def.name)
- String.format("Collection column '%s' (%s) cannot be restricted by a '%s' relation", def.name, receiver.type.asCQL3Type(), newRel.operator())
- String.format("Column \"%s\" appeared twice in a relation: %s", def, relation)
- String.format("Column \"%s\" cannot be restricted by an equality relation and an inequality relation", def)
- String.format("Column \"%s\" cannot be restricted by both a tuple notation inequality and a single column inequality (%s)", def.name, newRel)
- String.format("Column \"%s\" cannot be restricted by both an equality and an inequality relation", def.name)
- String.format("Column \"%s\" cannot be restricted by more than one relation if it is in an %s relation", def, relation.operator())
- String.format("Column \"%s\" cannot have both tuple-notation inequalities and single-column inequalities: %s", def.name, relation)
- String.format("IN predicates on non-primary-key columns (%s) is not yet supported", def.name)
- String.format("Invalid null clustering key part %s", def.name)
- String.format("Invalid null clustering key part %s", r)
- String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", def.name)
- String.format("Multi-column relations can only be applied to clustering columns: %s", def)
+ String.format("PRIMARY KEY part %s cannot be restricted (preceding part %s is either not restricted or by a non-EQ relation)", cname, previous)
+ String.format("PRIMARY KEY part %s cannot be restricted by IN relation", cname)
- String.format("Partition KEY part %s cannot be restricted by IN relation (only the last part of the partition key can)", cdef.name)
+ String.format("Partition KEY part %s cannot be restricted by IN relation (only the last part of the partition key can)", cname)
- String.format("Partition key part %s must be restricted since preceding part is", cdef.name)
+ String.format("Partition key part %s must be restricted since preceding part is", cname)
+ String.format("Restricting the value of a compact CF (%s) is not supported", name.name)
- String.format("Predicates on the non-primary-key column (%s) of a COMPACT table are not yet supported", def.name)
- String.format("SELECT DISTINCT queries must only request partition key columns and/or static columns (not %s)", def.name)
- String.format("SELECT DISTINCT queries must request all the partition key columns (missing %s)", def.name)
- String.format("The query requests a restriction of rows with a strict bound (%s) over a range of partitions. " + "This is not supported by the underlying storage engine for COMPACT tables if a LIMIT is provided. " + "Please either make the condition non strict (%s) or remove the user LIMIT", rel, rel.withNonStrictOperator())
- String.format("The token function arguments must be in the partition key order: %s", Joiner.on(',').join(cfm.partitionKeyColumns()))
- String.format("The token() function is only supported on the partition key, found on %s", def.name)
+ String.format("The token() function is only supported on the partition key, found on %s", name)
+ String.format("Undefined name %s in selection clause", t.id())
- String.format("Undefined name %s in where clause ('%s')", entity, relation)
+ String.format("Undefined name %s in where clause ('%s')", rel.getEntity(), rel)
- String.format("Unsupported \"!=\" relation on column \"%s\"", def.name)
- String.format("Unsupported \"!=\" relation: %s", relation)
- String.format("Unsupported null value for indexed column %s", def.name)
+ String.format("partition key part %s cannot be restricted (preceding part %s is either not restricted or by a non-EQ relation)", cname, previous)
org/apache/cassandra/cql3/statements/BatchStatement.java
+ "A TTL must be greater or equal to 0"
+ "Counter mutations are only allowed in COUNTER batches"
- "Batch with conditions cannot span multiple partitions"
- "Batch with conditions cannot span multiple tables"
- "Cannot include a counter statement in a logged batch"
- "Cannot include non-counter statement in a counter batch"
- "Cannot provide custom timestamp for a BATCH containing counters"
- "Cannot provide custom timestamp for conditional BATCH"
- "Cannot provide custom timestamp for counter BATCH"
- "Counter and non-counter mutations cannot exist in the same batch"
+ "Only counter mutations are allowed in COUNTER batches"
- "Invalid empty consistency level"
- "Invalid empty serial consistency level"
org/apache/cassandra/cql3/statements/AlterTableStatement.java
- "Cannot add new column to a COMPACT STORAGE table"
+ "Cannot add new column to a compact CF"
- "Cannot drop columns from a non-CQL3 table"
+ "Cannot drop columns from a compact CF"
- "Cannot set default_time_to_live on a table with counters"
- "Cannot use non-frozen collections with a non-composite PRIMARY KEY"
+ "Cannot use collection types with non-composite PRIMARY KEY"
- "Cannot use non-frozen collections with super column families"
- "Static columns are not allowed in COMPACT STORAGE tables"
- "Static columns are only useful (and thus allowed) if the table has at least one clustering column"
- String.format("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", columnName)
- String.format("Cannot re-add previously dropped counter column %s", columnName)
+ String.format("Cannot rename column %s in table %s to %s; another column of that name already exist", from, columnFamily(), to)
+ String.format("Cannot rename non PRIMARY KEY part %s", from)
+ String.format("Column %s was not found in table %s", entry.getKey(), columnFamily())
=== cassandra-1.2.1 -> cassandra-1.2.2 ===
org/apache/cassandra/cql3/Constants.java (file added)
+ "The negation of " + increment + " overflows supported counter precision (signed 8 bytes integer)"
+ String.format("Invalid %s constant (%s) for %s of type %s", type, text, receiver, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/Lists.java (file added)
+ String.format("Invalid list literal for %s: nested collections are not supported", receiver)
+ String.format("Invalid list literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("List index %d out of bound, list has size %d", idx, existingList.size())
+ String.format("Invalid list literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid list literal for %s: value %s is not of type %s", receiver, rt, valueSpec.type.asCQL3Type())
org/apache/cassandra/cql3/Operation.java (file added)
+ String.format("Invalid operation (%s) for non counter column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for set column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for non collection column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for non list column %s", toString(receiver), receiver)
+ String.format("Invalid deletion operation for non collection column %s", receiver)
+ String.format("Invalid operation (%s) for map column %s", toString(receiver), receiver)
org/apache/cassandra/cql3/Maps.java (file added)
+ String.format("Invalid map literal for %s: value %s is not of type %s", receiver, entry.right, valueSpec.type.asCQL3Type())
+ String.format("Invalid map literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("Invalid map literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid map literal for %s: nested collections are not supported", receiver)
+ String.format("Invalid map literal: duplicate entry for key %s", entry.left)
+ String.format("Invalid map literal for %s: key %s is not of type %s", receiver, entry.left, keySpec.type.asCQL3Type())
org/apache/cassandra/cql3/statements/Selection.java (file added)
+ String.format("Cannot use selection function %s on collections", tot.isWritetime ? "writeTime" : "ttl")
+ String.format("Undefined name %s in selection clause", raw)
+ String.format("Undefined name %s in selection clause", tot.id)
+ String.format("Undefined name %s in selection clause", rawSelector)
+ String.format("Cannot use selection function %s on PRIMARY KEY part %s", tot.isWritetime ? "writeTime" : "ttl", name)
+ String.format("Unknown function %s called in selection clause", fun.functionName)
org/apache/cassandra/cql3/functions/Functions.java (file added)
+ String.format("Invalid call to function %s, none of its type signature matches (known type signatures: %s)", name, signatures(factories, receiver))
+ String.format("Unknown CQL3 function %s called", name)
+ String.format("Type error: cannot assign result of function %s (type %s) to %s (type %s)", fun.name(), fun.returnType().asCQL3Type(), receiver, receiver.type.asCQL3Type())
+ String.format("Type error: %s cannot be passed as argument %d of function %s of type %s", provided, i, fun.name(), expected.type.asCQL3Type())
+ String.format("Ambiguous call to function %s (can match both type signature %s and %s): use type casts to disambiguate", name, signature(candidate), signature(toTest))
+ String.format("Invalid number of arguments in call to function %s: %d required but %d provided", fun.name(), fun.argsType().size(), providedArgs.size())
org/apache/cassandra/cql3/CQL3Type.java (file added)
+ "set type cannot contain another collection"
+ "map type cannot contain another collection"
+ "counters are not allowed inside a collection"
+ "list type cannot contain another collection"
org/apache/cassandra/cql3/TypeCast.java (file added)
+ String.format("Cannot cast value %s to type %s", term, type)
+ String.format("Cannot assign value %s to %s of type %s", this, receiver, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/Sets.java (file added)
+ String.format("Invalid set literal for %s: nested collections are not supported", receiver)
+ String.format("Invalid set literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("Invalid set literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid set literal for %s: value %s is not of type %s", receiver, rt, valueSpec.type.asCQL3Type())
+ String.format("Invalid set literal: duplicate value %s", rt)
org/apache/cassandra/cql3/operations/ColumnOperation.java (file deleted)
- String.format("'%s' is an invalid value, should be a long.", value.getText())
- "The negation of " + val + " overflows supported integer precision (signed 8 bytes integer)"
org/apache/cassandra/cql3/operations/PreparedOperation.java (file deleted)
- "Unsupported syntax for increment, must be of the form X = X + <value>"
- "Unsupported syntax, cannot add to a prepared set"
- "Unsuppoted syntax, discard syntax for map not supported"
- "Unsupported syntax, cannot put to a prepared map"
org/apache/cassandra/cql3/ParsedType.java (file deleted)
- "set type cannot contain another collection"
- "map type cannot contain another collection"
- "list type cannot contain another collection"
- "counters are not allowed inside a collection"
org/apache/cassandra/cql3/operations/ListOperation.java (file deleted)
- "Can't apply operation on column with " + validator + " type."
- String.format("Invalid operation, %s is not of list type", column.name)
- String.format("Invalid index %d, list has size %d", idx, list == null ? 0 : list.size())
- "List operations are only supported on List typed columns, but " + validator + " given."
- String.format("Invalid argument %s for %s, must be an integer.", value.getText(), getType())
org/apache/cassandra/cql3/Term.java (file deleted)
- "Invalid null value for prepared variable " + bindIndex
org/apache/cassandra/cql3/operations/MapOperation.java (file deleted)
- String.format("Invalid operation, %s is not of map type", column.name)
- "Can't apply operation on column with " + validator + " type."
- "Map operations are only supported on Map typed columns, but " + validator + " given."
org/apache/cassandra/cql3/operations/SetOperation.java (file deleted)
- "Can't apply operation on column with " + validator + " type."
- "Set operations are only supported on Set typed columns, but " + validator + " given."
org/apache/cassandra/cql3/QueryProcessor.java
+ "Cannot execute query with bind variables"
org/apache/cassandra/cql3/statements/DeleteStatement.java
- "Unknown collection type: " + validator.kind
- String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", column)
+ String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", name)
- String.format("Invalid selection %s since %s is neither a list or a map", column, column.id())
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.iterator().next().left)
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.iterator().next().columnName)
- String.format("Unknown identifier %s", column)
+ String.format("Unknown identifier %s", name)
org/apache/cassandra/cql3/statements/SelectStatement.java
- String.format("Cannot use function %s on PRIMARY KEY part %s", t.function(), name)
- String.format("Function %s is not supported on collections", t.function())
- String.format("Function %s is only allowed on timeuuid columns", t.function())
- String.format("Undefined name %s in selection clause", t.id())
org/apache/cassandra/cql3/statements/UpdateStatement.java
- "Cannot apply collection operation on column " + name + " with " + name.type + " type."
- "Invalid counter operation on non-counter table."
- "Invalid non-counter operation on counter table."
- "no columns specified for INSERT"
+ "No columns provided to INSERT"
- "unmatched column names/values"
+ "Unmatched column names/values"
- String.format("Invalid definition for %s, not a collection type", name)
- String.format("Invalid operator %s for key %s", rel.operator(), rel.getEntity())
+ String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), name)
+ String.format("Non PRIMARY KEY %s found in where clause", name)
- String.format("PRIMARY KEY part %s found in SET part", rel.getEntity())
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
+ "COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY, none given"
- String.format("COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
=== cassandra-1.2.2 -> cassandra-1.2.3 ===
org/apache/cassandra/cql3/functions/FunctionCall.java (file added)
+ String.format("Invalid null value for argument to %s", fun)
org/apache/cassandra/cql3/Constants.java
+ "Invalid null value for counter increment"
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Unknown identifier %s", name)
+ String.format("Unknown identifier %s", deletion.affectedColumn())
org/apache/cassandra/cql3/Operation.java
+ String.format("Cannot set the value of counter column %s (counters can only be incremented/decremented, not set)", receiver)
org/apache/cassandra/cql3/Maps.java
+ "Invalid null map key"
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Invalid null token value"
+ String.format("Invalid null clustering key part %s", name)
+ String.format("Invalid null value for clustering key part %s", id)
+ String.format("Invalid null value for partition key part %s", name)
+ String.format("Unsupported null value for indexed column %s", name)
org/apache/cassandra/cql3/statements/DropUserStatement.java
- String.format("User %s doesn't exists", username)
+ String.format("User %s doesn't exist", username)
org/apache/cassandra/cql3/Lists.java
+ "Invalid null value for list index"
org/apache/cassandra/cql3/statements/UpdateStatement.java
+ String.format("Invalid null value for clustering key part %s", name)
+ String.format("Invalid null value for partition key part %s", name)
=== cassandra-1.2.3 -> cassandra-1.2.4 ===
org/apache/cassandra/cql3/Constants.java
+ "Invalid null value for counter increment/decrement"
org/apache/cassandra/cql3/Maps.java
+ "null is not supported inside collections"
- String.format("Invalid map literal for %s: nested collections are not supported", receiver)
+ String.format("Map key is too long. Map keys are limited to %d bytes but %d bytes keys provided", FBUtilities.MAX_UNSIGNED_SHORT, keyBytes.remaining())
+ String.format("Map value is too long. Map values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, value.remaining())
+ String.format("Map value is too long. Map values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, valueBytes.remaining())
org/apache/cassandra/cql3/statements/SelectStatement.java
+ String.format("Cannot restrict PRIMARY KEY part %s by IN relation as a collection is selected by the query", cname)
org/apache/cassandra/cql3/Lists.java
+ "null is not supported inside collections"
- String.format("Invalid list literal for %s: nested collections are not supported", receiver)
+ String.format("List value is too long. List values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, bytes.remaining())
+ String.format("List value is too long. List values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, value.remaining())
org/apache/cassandra/cql3/Sets.java
+ "null is not supported inside collections"
- String.format("Invalid set literal for %s: nested collections are not supported", receiver)
+ String.format("Set value is too long. Set values are limited to %d bytes but %d bytes value provided", FBUtilities.MAX_UNSIGNED_SHORT, bytes.remaining())
org/apache/cassandra/cql3/statements/Selection.java
+ String.format("Unknown function '%s'", withFun.functionName)
=== cassandra-1.2.4 -> cassandra-1.2.5 ===
org/apache/cassandra/cql3/IndexPropDefs.java (file added)
+ String.format("Custom index requires '%s' option to be specified", INDEX_CLASS_KEY)
+ String.format("Only custom indexes can currently be parametrized")
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.iterator().next().columnName)
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.get(0).columnName)
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
- String.format("Unkown definition %s referenced in PRIMARY KEY", t)
+ String.format("Unknown definition %s referenced in PRIMARY KEY", t)
org/apache/cassandra/cql3/statements/AlterTableStatement.java
+ "When upgrading from Thrift, all the columns of the (composite) clustering key must be renamed together."
+ "When upgrading from Thrift, all the columns of the (composite) partition key must be renamed together."
=== cassandra-1.2.5 -> cassandra-1.2.6 ===
org/apache/cassandra/cql3/IndexPropDefs.java (file deleted)
- String.format("Custom index requires '%s' option to be specified", INDEX_CLASS_KEY)
- String.format("Only custom indexes can currently be parametrized")
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Only EQ and IN relation are supported on the partition key for random partitioners (unless you use the token() function)"
+ "Only EQ and IN relation are supported on the partition key (you will need to use the token() function for non equality based relation)"
- String.format("%s cannot be restricted by more than one reation if it includes a IN", name)
+ String.format("%s cannot be restricted by more than one relation if it includes a IN", name)
org/apache/cassandra/cql3/statements/UpdateStatement.java
+ String.format("Column %s is mandatory for this COMPACT STORAGE table", cfDef.value)
- String.format("Missing mandatory column %s", cfDef.value)
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ "CUSTOM index requires specifiying the index class"
+ "Cannot specify index class for a non-CUSTOM index"
=== cassandra-1.2.6 -> cassandra-1.2.7 ===
org/apache/cassandra/cql3/Maps.java
- String.format("Invalid map literal: duplicate entry for key %s", entry.left)
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Cannot use IN operator on column not part of the PRIMARY KEY"
+ "Cannot use IN operator on column not part of the partition key"
- "Start key must sort before (or equal to) finish key in your partitioner!"
- "Start key sorts after end key. This is not allowed; you probably should not specify end key at all under random partitioner"
- String.format("Restricting the value of a compact CF (%s) is not supported", name.name)
+ String.format("Predicates on the non-primary-key column (%s) of a COMPACT table are not yet supported", name.name)
org/apache/cassandra/cql3/Sets.java
- String.format("Invalid set literal: duplicate value %s", rt)
=== cassandra-1.2.7 -> cassandra-1.2.8 ===
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Select using the token() function don't support IN clause"
=== cassandra-1.2.8 -> cassandra-1.2.9 ===
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
- "Too much columns provided for CLUSTERING ORDER"
+ "Only clustering key columns can be defined in CLUSTERING ORDER directive"
=== cassandra-1.2.9 -> cassandra-1.2.10 ===
=== cassandra-1.2.10 -> cassandra-1.2.11 ===
org/apache/cassandra/cql3/QueryProcessor.java
+ "Invalid empty value for clustering column of COMPACT TABLE"
- "zero-length column name"
+ String.format("Prepared statement of size %d bytes is larger than allowed maximum of %d bytes.", statementSize, MAX_CACHE_PREPARED_MEMORY)
- String.format("column name is too long (%s > %s)", name.remaining(), IColumn.MAX_NAME_LENGTH)
+ String.format("The sum of all clustering columns is too long (%s > %s)", name.remaining(), IColumn.MAX_NAME_LENGTH)
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ "Secondary indexes are not supported on counter tables"
=== cassandra-1.2.11 -> cassandra-1.2.12 ===
=== cassandra-1.2.12 -> cassandra-1.2.13 ===
org/apache/cassandra/cql3/QueryProcessor.java
+ String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", bountTerms, FBUtilities.MAX_UNSIGNED_SHORT)
=== cassandra-1.2.13 -> cassandra-1.2.14 ===
org/apache/cassandra/cql3/QueryProcessor.java
- String.format("Prepared statement of size %d bytes is larger than allowed maximum of %d bytes.", statementSize, MAX_CACHE_PREPARED_MEMORY)
- String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", bountTerms, FBUtilities.MAX_UNSIGNED_SHORT)
+ String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", boundTerms, FBUtilities.MAX_UNSIGNED_SHORT)
- String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundsTerms(), variables.size())
+ String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundTerms(), variables.size())
=== cassandra-1.2.14 -> cassandra-1.2.15 ===
=== cassandra-1.2.15 -> cassandra-1.2.16 ===
=== cassandra-1.2.16 -> cassandra-1.2.17 ===
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
- String.format("counter type is not supported for PRIMARY KEY part %s", t.key)
+ String.format("counter type is not supported for PRIMARY KEY part %s", t)
=== cassandra-1.2.17 -> cassandra-1.2.18 ===
=== cassandra-1.2.18 -> cassandra-1.2.19 ===
=== cassandra-1.2.19 -> cassandra-2.0.0 ===
org/apache/cassandra/cql3/statements/CreateTableStatement.java (file added)
+ String.format("Unknown definition %s referenced in PRIMARY KEY", t)
+ String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
+ String.format("The order of columns in the CLUSTERING ORDER directive must be the one of the clustering key (%s must appear before %s)", c, id)
+ String.format("\"%s\" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
+ "Only clustering key columns can be defined in CLUSTERING ORDER directive"
+ String.format("Column family names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
+ String.format("Invalid collection type for PRIMARY KEY component %s", t)
+ String.format("COMPACT STORAGE with composite PRIMARY KEY allows no more than one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
+ String.format("counter type is not supported for PRIMARY KEY part %s", alias)
+ String.format("counter type is not supported for PRIMARY KEY part %s", t.key)
+ "COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY, none given"
+ String.format("Missing CLUSTERING ORDER for column %s", c)
+ "Collection types are not supported with COMPACT STORAGE"
+ "You must specify one and only one PRIMARY KEY"
+ String.format("Multiple definition of identifier %s", entry.getElement())
+ "No definition found that is not part of the PRIMARY KEY"
org/apache/cassandra/triggers/TriggerExecutor.java (file added)
+ "Counter mutations and trigger mutations cannot be applied together atomically."
org/apache/cassandra/cql3/Attributes.java (file added)
+ "A TTL must be greater or equal to 0"
+ "Invalid null value of timestamp"
+ "Invalid null value of TTL"
+ String.format("ttl is too large. requested (%d) maximum (%d)", ttl, ExpiringColumn.MAX_TTL)
+ "Invalid timestamp value"
org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java (file deleted)
- String.format("Unknown definition %s referenced in PRIMARY KEY", t)
- String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
- String.format("The order of columns in the CLUSTERING ORDER directive must be the one of the clustering key (%s must appear before %s)", c, id)
- String.format("\"%s\" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
- "Only clustering key columns can be defined in CLUSTERING ORDER directive"
- String.format("Column family names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
- String.format("Invalid collection type for PRIMARY KEY component %s", t)
- String.format("counter type is not supported for PRIMARY KEY part %s", t)
- String.format("COMPACT STORAGE with composite PRIMARY KEY allows no more than one column not part of the PRIMARY KEY (got: %s)", StringUtils.join(stmt.columns.keySet(), ", "))
- String.format("counter type is not supported for PRIMARY KEY part %s", alias)
- "COMPACT STORAGE with non-composite PRIMARY KEY require one column not part of the PRIMARY KEY, none given"
- String.format("Missing CLUSTERING ORDER for column %s", c)
- "Collection types are not supported with COMPACT STORAGE"
- "You must specify one and only one PRIMARY KEY"
- String.format("Multiple definition of identifier %s", entry.getElement())
- "No definition found that is not part of the PRIMARY KEY"
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.get(0).columnName)
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletions.get(0).columnName)
org/apache/cassandra/cql3/statements/Selection.java
- String.format("Undefined name %s in selection clause", raw)
- String.format("Undefined name %s in selection clause", rawSelector)
+ String.format("Undefined name %s in selection clause", raw.selectable)
+ String.format("Undefined name %s in selection clause", rawSelector.selectable)
org/apache/cassandra/cql3/statements/ModificationStatement.java
- "A TTL must be greater or equal to 0"
+ "Cannot provide custom timestamp for conditional update"
+ "Conditional updates are not supported on counter tables"
+ "Custom timestamps are not allowed when conditions are used"
+ "IN is only supported on the last column of the partition key"
+ "IN on the partition key is not supported with conditional updates"
+ String.format("Invalid null value for clustering key part %s", name)
+ String.format("Invalid null value for partition key part %s", name)
+ String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), name)
+ String.format("List operation (%s) are not allowed in conditional updates", name)
+ String.format("Missing PRIMARY KEY part %s since %s is set", firstEmptyKey.name, name.name)
+ String.format("Missing mandatory PRIMARY KEY part %s", name)
+ String.format("Multiple definitions found for PRIMARY KEY part %s", name)
+ String.format("Non PRIMARY KEY %s found in where clause", name)
+ String.format("PRIMARY KEY part %s found in SET part", entry.left)
+ String.format("Unknown identifier %s", entry.left)
+ String.format("Unknown key identifier %s", rel.getEntity())
- String.format("ttl is too large. requested (%d) maximum (%d)", timeToLive, ExpiringColumn.MAX_TTL)
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Cannot use IN operator on column not part of the partition key"
+ "Invalid limit value"
+ "Invalid null value of limit"
- "Only EQ and IN relation are supported on the partition key (you will need to use the token() function for non equality based relation)"
+ "Only EQ and IN relation are supported on the partition key (unless you use the token() function)"
+ String.format("Aliases are not allowed in order by clause ('%s')", column)
+ String.format("Aliases aren't allowed in where clause ('%s')", rel)
org/apache/cassandra/cql3/QueryProcessor.java
+ "Invalid amount of bind variables"
- "Cannot execute query with bind variables"
- "Invalid empty value for clustering column of COMPACT TABLE"
+ "zero-length column name"
- String.format("The sum of all clustering columns is too long (%s > %s)", name.remaining(), IColumn.MAX_NAME_LENGTH)
+ String.format("column name is too long (%s > %s)", name.remaining(), Column.MAX_NAME_LENGTH)
- String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", boundTerms, FBUtilities.MAX_UNSIGNED_SHORT)
- String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundTerms(), variables.size())
+ String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundsTerms(), variables.size())
org/apache/cassandra/cql3/statements/UpdateStatement.java
- "IN is only supported on the last column of the partition key"
- String.format("Invalid null value for clustering key part %s", name)
- String.format("Invalid null value for partition key part %s", name)
- String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), name)
- String.format("Missing PRIMARY KEY part %s since %s is set", firstEmpty.name, name.name)
- String.format("Missing mandatory PRIMARY KEY part %s", name)
- String.format("Multiple definitions found for PRIMARY KEY part %s", name)
- String.format("Non PRIMARY KEY %s found in where clause", name)
- String.format("Unknown key identifier %s", rel.getEntity())
org/apache/cassandra/cql3/statements/BatchStatement.java
- "A TTL must be greater or equal to 0"
+ "Conditional updates are not allowed in batches"
+ "Invalid empty consistency level"
org/apache/cassandra/cql3/statements/AlterTableStatement.java
+ "Cannot drop columns from a non-CQL3 CF"
+ "Cannot use collection types with Super column family"
- "When upgrading from Thrift, all the columns of the (composite) clustering key must be renamed together."
- "When upgrading from Thrift, all the columns of the (composite) partition key must be renamed together."
- String.format("Cannot rename column %s in table %s to %s; another column of that name already exist", from, columnFamily(), to)
- String.format("Cannot rename non PRIMARY KEY part %s", from)
- String.format("Column %s was not found in table %s", entry.getKey(), columnFamily())
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ String.format("Cannot add secondary index to already primarily indexed column %s", columnName)
+ String.format("Secondary index on %s column %s is not yet supported for compact table", cd.type, columnName)
- "Secondary indexes are not supported on counter tables"
- String.format("Cannot create index on PRIMARY KEY part %s", columnName)
- String.format("Cannot create index on column %s of compact CF", columnName)
=== cassandra-2.0.0 -> cassandra-2.0.1 ===
org/apache/cassandra/cql3/statements/Restriction.java (file added)
+ "Invalid null value for IN restriction"
+ String.format("Invalid restrictions found on %s", name)
org/apache/cassandra/cql3/AbstractMarker.java (file added)
+ "Invalid IN relation on collection column"
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "IN restrictions are not supported on indexed columns"
+ String.format("IN predicates on non-primary-key columns (%s) is not yet supported", name)
- String.format("Invalid restrictions found on %s", name)
+ String.format("SELECT DISTINCT queries must only request partition key columns (not %s)", name)
+ String.format("SELECT DISTINCT queries must request all the partition key columns (missing %s)", name)
org/apache/cassandra/cql3/statements/CreateTableStatement.java
+ "Multiple PRIMARY KEYs specifed (exactly one required)"
+ "No PRIMARY KEY specifed (exactly one required)"
- "You must specify one and only one PRIMARY KEY"
=== cassandra-2.0.1 -> cassandra-2.0.2 ===
org/apache/cassandra/cql3/QueryProcessor.java
+ "Invalid empty value for clustering column of COMPACT TABLE"
- "zero-length column name"
+ String.format("Prepared statement of size %d bytes is larger than allowed maximum of %d bytes.", statementSize, MAX_CACHE_PREPARED_MEMORY)
- String.format("column name is too long (%s > %s)", name.remaining(), Column.MAX_NAME_LENGTH)
+ String.format("The sum of all clustering columns is too long (%s > %s)", name.remaining(), Column.MAX_NAME_LENGTH)
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ "Secondary indexes are not supported on counter tables"
=== cassandra-2.0.2 -> cassandra-2.0.3 ===
org/apache/cassandra/io/sstable/CQLSSTableWriter.java (file added)
+ String.format("Invalid number of arguments, expecting %d values but got %d", boundNames.size(), values.size())
org/apache/cassandra/cql3/statements/ModificationStatement.java
+ "Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2."
=== cassandra-2.0.3 -> cassandra-2.0.4 ===
org/apache/cassandra/cql3/QueryProcessor.java
+ String.format("Too many markers(?). %d markers exceed the allowed maximum of %d", boundTerms, FBUtilities.MAX_UNSIGNED_SHORT)
- String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundsTerms(), variables.size())
+ String.format("there were %d markers(?) in CQL but %d bound variables", statement.getBoundTerms(), variables.size())
=== cassandra-2.0.4 -> cassandra-2.0.5 ===
org/apache/cassandra/cql3/statements/IndexPropDefs.java (file added)
+ "Cannot specify options for a non-CUSTOM index"
+ "CUSTOM index requires specifiying the index class"
+ String.format("Cannot specify %s as a CUSTOM option", SecondaryIndex.CUSTOM_INDEX_OPTION_NAME)
+ "Cannot specify index class for a non-CUSTOM index"
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
- "CUSTOM index requires specifiying the index class"
- "Cannot specify index class for a non-CUSTOM index"
=== cassandra-2.0.5 -> cassandra-2.0.6 ===
org/apache/cassandra/cql3/statements/CQL3CasConditions.java (file added)
+ "Duplicate and incompatible conditions for column " + condition.column.name
+ "Cannot mix IF conditions and IF NOT EXISTS for the same row"
org/apache/cassandra/cql3/ColumnCondition.java (file added)
+ "Condtions on counters are not supported"
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletions.get(0).columnName)
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletion.columnName)
org/apache/cassandra/cql3/statements/ModificationStatement.java
- String.format("List operation (%s) are not allowed in conditional updates", name)
+ String.format("Invalid restriction on clustering column %s since the %s statement modifies only static columns", name.name, type)
- String.format("Multiple definitions found for PRIMARY KEY part %s", name)
+ String.format("Multiple definitions found for PRIMARY KEY part %s", name.name)
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Cannot page queries with both ORDER BY and a IN restriction on the partition key; you must either remove the " + "ORDER BY or the IN and sort client side, or disable paging for this query"
+ "Cannot restrict clustering columns when selecting only static columns"
+ "Queries using 2ndary indexes don't support selecting only static columns"
+ String.format("Invalid tuple notation, column %s is not before column %s in the clustering order", newRel.previousInTuple, name.name)
+ String.format("Tuple notation can only be used on clustering columns but found on %s", name)
org/apache/cassandra/cql3/statements/Restriction.java
+ String.format("Clustering column %s cannot be restricted both inside a tuple notation and outside it", name)
org/apache/cassandra/cql3/statements/CreateTableStatement.java
+ "Static columns are not supported in COMPACT STORAGE tables"
+ "Static columns are only useful (and thus allowed) if the table has at least one clustering column"
+ String.format("Static column %s cannot be part of the PRIMARY KEY", alias)
+ String.format("Static column %s cannot be part of the PRIMARY KEY", t)
- String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ "Secondary indexes are not allowed on static columns"
org/apache/cassandra/cql3/statements/UpdateStatement.java
- String.format("Column %s is mandatory for this COMPACT STORAGE table", cfDef.value)
+ String.format("Column %s is mandatory for this COMPACT STORAGE table", cfDef.compactValue())
- String.format("Missing PRIMARY KEY part %s", cfDef.columns.values().iterator().next())
+ String.format("Missing PRIMARY KEY part %s", cfDef.clusteringColumns().iterator().next())
org/apache/cassandra/cql3/statements/BatchStatement.java
- "Conditional updates are not allowed in batches"
+ "Batch with conditions cannot span multiple partitions"
+ "Batch with conditions cannot span multiple tables"
org/apache/cassandra/cql3/statements/AlterTableStatement.java
+ "Cannot add new column to a COMPACT STORAGE table"
+ "Cannot drop columns from a COMPACT STORAGE table"
- "Cannot add new column to a compact CF"
- "Cannot drop columns from a compact CF"
- "Cannot drop columns from a non-CQL3 CF"
+ "Static columns are not allowed in COMPACT STORAGE tables"
=== cassandra-2.0.6 -> cassandra-2.0.7 ===
org/apache/cassandra/triggers/TriggerExecutor.java
+ "Column family of additional mutation does not match primary update cf"
+ "Partition key of additional mutation does not match primary update key"
org/apache/cassandra/cql3/statements/CQL3CasConditions.java
+ "Cannot mix IF EXISTS and IF NOT EXISTS conditions for the same row"
org/apache/cassandra/cql3/ColumnCondition.java
+ "Invalid null value for list access"
+ "Invalid null value for map access"
+ String.format("Invalid element access syntax for non-collection column %s", receiver.name)
+ String.format("Invalid element access syntax for set column %s", receiver.name)
+ String.format("Invalid negative list index %d", idx)
+ String.format("List index %d out of bound, list has size %d", idx, adv)
=== cassandra-2.0.7 -> cassandra-2.0.8 ===
org/apache/cassandra/cql3/statements/ModificationStatement.java
- "Custom timestamps are not allowed when conditions are used"
org/apache/cassandra/cql3/ColumnCondition.java
+ "Invalid null value for " + (column.type instanceof MapType ? "map" : "list") + " element access"
- "Invalid null value for list access"
- "Invalid null value for map access"
=== cassandra-2.0.8 -> cassandra-2.0.9 ===
org/apache/cassandra/cql3/statements/MultiColumnRestriction.java (file added)
+ "Invalid null value for IN restriction"
org/apache/cassandra/cql3/statements/SingleColumnRestriction.java (file added)
+ "Invalid null value for IN restriction"
+ String.format( "More than one restriction was found for the %s bound", b.name().toLowerCase())
org/apache/cassandra/cql3/Tuples.java (file added)
+ "Tuples may not contain null values"
+ "Collection columns do not support IN relations"
+ String.format("Expected %d elements in value tuple, but got %d: %s", receivers.size(), elements.size(), this)
org/apache/cassandra/cql3/statements/Restriction.java (file deleted)
- "Invalid null value for IN restriction"
- String.format("Clustering column %s cannot be restricted both inside a tuple notation and outside it", name)
- String.format("Invalid restrictions found on %s", name)
org/apache/cassandra/cql3/AbstractMarker.java
- "Invalid IN relation on collection column"
+ "Collection columns do not support IN relations"
org/apache/cassandra/cql3/statements/ModificationStatement.java
+ String.format("Multi-column relations cannot be used in WHERE clauses for modification statements: %s", relation)
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Cannot execute this query as it might involve data filtering and thus may have unpredictable performance. " + "If you want to execute this query despite the performance unpredictability, use ALLOW FILTERING"
+ "Cannot execute this query as it might involve data filtering and " + "thus may have unpredictable performance. If you want to execute " + "this query despite the performance unpredictability, use ALLOW FILTERING"
- String.format("%s cannot be restricted by both an equal and an inequal relation", name)
+ String.format( "Clustering columns may not be skipped in multi-column relations. " + "They should appear in the PRIMARY KEY order. Got %s", relation)
+ String.format( "Clustering columns must appear in the PRIMARY KEY order in multi-column relations: %s", relation)
+ String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cname, previous)
+ String.format( "Partitioning column \"%s\" cannot be restricted because the preceding column (\"%s\") is " + "either not restricted or is restricted by a non-EQ relation", cname, previous)
- String.format("Aliases aren't allowed in where clause ('%s')", rel)
+ String.format("Aliases aren't allowed in the where clause ('%s')", relation)
- String.format("Cannot restrict PRIMARY KEY part %s by IN relation as a collection is selected by the query", cname)
+ String.format("Cannot restrict column \"%s\" by IN relation as a collection is selected by the query", cname)
+ String.format("Clustering column \"%s\" cannot be restricted by an IN relation", cname)
+ String.format("Column \"%s\" appeared twice in a relation: %s", name, relation)
+ String.format("Column \"%s\" cannot be restricted by an equality relation and an inequality relation", name)
+ String.format("Column \"%s\" cannot be restricted by both a tuple notation inequality and a single column inequality (%s)", name, newRel)
+ String.format("Column \"%s\" cannot be restricted by both an equality and an inequality relation", name)
+ String.format("Column \"%s\" cannot be restricted by more than one relation if it is in an %s relation", name, relation.operator())
+ String.format("Column \"%s\" cannot have both tuple-notation inequalities and single-column inequalities: %s", name, relation)
+ String.format("Invalid null clustering key part %s", r)
- String.format("Invalid null value for clustering key part %s", id)
+ String.format("Invalid null value for clustering key part %s", name.name)
- String.format("Invalid tuple notation, column %s is not before column %s in the clustering order", newRel.previousInTuple, name.name)
+ String.format("Multi-column relations can only be applied to clustering columns: %s", name)
- String.format("PRIMARY KEY part %s cannot be restricted (preceding part %s is either not restricted or by a non-EQ relation)", cname, previous)
- String.format("PRIMARY KEY part %s cannot be restricted by IN relation", cname)
- String.format("SELECT DISTINCT queries must only request partition key columns (not %s)", name)
+ String.format("SELECT DISTINCT queries must only request partition key columns and/or static columns (not %s)", name)
+ String.format("The query requests a restriction of rows with a strict bound (%s) over a range of partitions. " + "This is not supported by the underlying storage engine for COMPACT tables if a LIMIT is provided. " + "Please either make the condition non strict (%s) or remove the user LIMIT", rel, rel.withNonStrictOperator())
- String.format("Tuple notation can only be used on clustering columns but found on %s", name)
- String.format("Undefined name %s in where clause ('%s')", rel.getEntity(), rel)
+ String.format("Undefined name %s in where clause ('%s')", entity, relation)
- String.format("partition key part %s cannot be restricted (preceding part %s is either not restricted or by a non-EQ relation)", cname, previous)
org/apache/cassandra/cql3/statements/CreateTableStatement.java
- String.format("counter type is not supported for PRIMARY KEY part %s", t.key)
+ String.format("counter type is not supported for PRIMARY KEY part %s", t)
=== cassandra-2.0.9 -> cassandra-2.1.0 ===
org/apache/cassandra/cql3/UserTypes.java (file added)
+ String.format("Unknown field '%s' in value of user defined type %s", id, ut.getNameAsString())
+ String.format("Invalid user type literal for %s: field %s is not of type %s", receiver, field, fieldSpec.type.asCQL3Type())
+ String.format("Invalid user type literal for %s of type %s", receiver, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/functions/BytesConversionFcts.java (file added)
+ String.format("In call to function %s, value 0x%s is not a valid binary representation for type %s", name, ByteBufferUtil.bytesToHex(val), toType.asCQL3Type())
org/apache/cassandra/cql3/statements/AlterTypeStatement.java (file added)
+ String.format("Type %s is incompatible with previous type %s of field %s in user type %s", type, previous.asCQL3Type(), fieldName, name)
+ String.format("Unknown field %s in type %s", fieldName, name)
+ "You need to be logged in a keyspace or use a fully qualified user type name"
+ String.format("Cannot add new field %s to type %s: a field of the same name already exists", fieldName, name)
+ String.format("Cannot alter type in unknown keyspace %s", name.getKeyspace())
+ String.format("No user type named %s exists.", name)
+ String.format("Unknown field %s in type %s", from, name)
org/apache/cassandra/cql3/statements/CreateTypeStatement.java (file added)
+ String.format("Cannot add type in unknown keyspace %s", name.getKeyspace())
+ String.format("A user type of name %s already exists", name)
+ String.format("Duplicate field name %s in type %s", UTF8Type.instance.getString(fieldName), UTF8Type.instance.getString(type.name))
+ "A user type cannot contain counters"
org/apache/cassandra/cql3/statements/DropTypeStatement.java (file added)
+ String.format("Cannot drop user type %s as it is still used by user type %s", name, ut.asCQL3Type())
+ String.format("No user type named %s exists.", name)
+ String.format("Cannot drop user type %s as it is still used by table %s.%s", name, cfm.ksName, cfm.cfName)
+ String.format("Cannot drop type in unknown keyspace %s", name.getKeyspace())
org/apache/cassandra/cql3/Constants.java
- String.format("Invalid %s constant (%s) for %s of type %s", type, text, receiver, receiver.type.asCQL3Type())
+ String.format("Invalid %s constant (%s) for \"%s\" of type %s", type, text, receiver.name, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", name)
+ String.format("Invalid identifier %s for deletion (should not be a PRIMARY KEY part)", def.name)
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletion.columnName)
+ String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletion.column.name)
org/apache/cassandra/cql3/Operation.java
- String.format("Cannot set the value of counter column %s (counters can only be incremented/decremented, not set)", receiver)
+ String.format("Cannot set the value of counter column %s (counters can only be incremented/decremented, not set)", receiver.name)
- String.format("Invalid deletion operation for non collection column %s", receiver)
+ String.format("Invalid deletion operation for non collection column %s", receiver.name)
- String.format("Invalid operation (%s) for non collection column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for non collection column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for non counter column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for non counter column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for non list column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for non list column %s", toString(receiver), receiver.name)
- String.format("Invalid operation (%s) for set column %s", toString(receiver), receiver)
+ String.format("Invalid operation (%s) for set column %s", toString(receiver), receiver.name)
org/apache/cassandra/cql3/Maps.java
- String.format("Invalid map literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("Invalid map literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
- String.format("Invalid map literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid map literal for %s: bind variables are not supported inside collection literals", receiver.name)
- String.format("Invalid map literal for %s: key %s is not of type %s", receiver, entry.left, keySpec.type.asCQL3Type())
+ String.format("Invalid map literal for %s: key %s is not of type %s", receiver.name, entry.left, keySpec.type.asCQL3Type())
- String.format("Invalid map literal for %s: value %s is not of type %s", receiver, entry.right, valueSpec.type.asCQL3Type())
+ String.format("Invalid map literal for %s: value %s is not of type %s", receiver.name, entry.right, valueSpec.type.asCQL3Type())
org/apache/cassandra/cql3/statements/Selection.java
+ String.format("%s of type %s has no field %s", withField.selected, type.asCQL3Type(), withField.field)
- String.format("Cannot use selection function %s on PRIMARY KEY part %s", tot.isWritetime ? "writeTime" : "ttl", name)
+ String.format("Cannot use selection function %s on PRIMARY KEY part %s", tot.isWritetime ? "writeTime" : "ttl", def.name)
+ String.format("Invalid field selection: %s of type %s is not a user type", withField.selected, type.asCQL3Type())
org/apache/cassandra/cql3/statements/SingleColumnRestriction.java
- String.format( "More than one restriction was found for the %s bound", b.name().toLowerCase())
+ String.format( "More than one restriction was found for the %s bound on %s", b.name().toLowerCase(), name)
org/apache/cassandra/cql3/statements/ModificationStatement.java
+ "Cannot provide custom TTL for counter updates"
- "Cannot provide custom timestamp for conditional update"
+ "Cannot provide custom timestamp for conditional updates"
+ "Cannot provide custom timestamp for counter updates"
+ "Operations on lists requiring a read (setting by index and deletions by index or value) are not allowed with IF conditions"
- String.format("Invalid null value for clustering key part %s", name)
+ String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", name)
+ String.format("Invalid null value for partition key part %s", def.name)
- String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), name)
+ String.format("Invalid operator %s for PRIMARY KEY part %s", rel.operator(), def.name)
- String.format("Invalid restriction on clustering column %s since the %s statement modifies only static columns", name.name, type)
+ String.format("Invalid restriction on clustering column %s since the %s statement modifies only static columns", def.name, type)
- String.format("Missing PRIMARY KEY part %s since %s is set", firstEmptyKey.name, name.name)
+ String.format("Missing PRIMARY KEY part %s since %s is set", firstEmptyKey.name, def.name)
- String.format("Missing mandatory PRIMARY KEY part %s", name)
+ String.format("Missing mandatory PRIMARY KEY part %s", def.name)
- String.format("Multiple definitions found for PRIMARY KEY part %s", name.name)
+ String.format("Multiple definitions found for PRIMARY KEY part %s", def.name)
- String.format("Non PRIMARY KEY %s found in where clause", name)
+ String.format("Non PRIMARY KEY %s found in where clause", def.name)
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Invalid null value in condition for column " + def.name
+ "Invalid null value in condition for column " + defs.get(i)
+ "Invalid null value in condition for column " + firstName.name
- "ORDER BY could not be used on columns missing in select clause."
- String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cname, previous)
+ String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous)
- String.format( "Partitioning column \"%s\" cannot be restricted because the preceding column (\"%s\") is " + "either not restricted or is restricted by a non-EQ relation", cname, previous)
+ String.format( "Partitioning column \"%s\" cannot be restricted because the preceding column (\"%s\") is " + "either not restricted or is restricted by a non-EQ relation", cdef.name, previous)
- String.format("%s cannot be restricted by more than one relation if it includes a IN", name)
+ String.format("%s cannot be restricted by more than one relation if it includes a IN", def.name)
- String.format("%s cannot be restricted by more than one relation if it includes an Equal", name)
+ String.format("%s cannot be restricted by more than one relation if it includes an Equal", def.name)
- String.format("Cannot restrict column \"%s\" by IN relation as a collection is selected by the query", cname)
+ String.format("Cannot restrict column \"%s\" by IN relation as a collection is selected by the query", cdef.name)
+ String.format("Cannot use %s relation on non collection column %s", newRel.operator(), def.name)
+ String.format("Cannot use CONTAINS_KEY on non-map column %s", def.name)
- String.format("Clustering column \"%s\" cannot be restricted by an IN relation", cname)
+ String.format("Clustering column \"%s\" cannot be restricted by an IN relation", cdef.name)
+ String.format("Collection column %s can only be restricted by CONTAINS or CONTAINS KEY", def.name)
- String.format("Column \"%s\" appeared twice in a relation: %s", name, relation)
+ String.format("Column \"%s\" appeared twice in a relation: %s", def, relation)
- String.format("Column \"%s\" cannot be restricted by an equality relation and an inequality relation", name)
+ String.format("Column \"%s\" cannot be restricted by an equality relation and an inequality relation", def)
- String.format("Column \"%s\" cannot be restricted by both a tuple notation inequality and a single column inequality (%s)", name, newRel)
+ String.format("Column \"%s\" cannot be restricted by both a tuple notation inequality and a single column inequality (%s)", def.name, newRel)
- String.format("Column \"%s\" cannot be restricted by both an equality and an inequality relation", name)
+ String.format("Column \"%s\" cannot be restricted by both an equality and an inequality relation", def.name)
- String.format("Column \"%s\" cannot be restricted by more than one relation if it is in an %s relation", name, relation.operator())
+ String.format("Column \"%s\" cannot be restricted by more than one relation if it is in an %s relation", def, relation.operator())
- String.format("Column \"%s\" cannot have both tuple-notation inequalities and single-column inequalities: %s", name, relation)
+ String.format("Column \"%s\" cannot have both tuple-notation inequalities and single-column inequalities: %s", def.name, relation)
- String.format("IN predicates on non-primary-key columns (%s) is not yet supported", name)
+ String.format("IN predicates on non-primary-key columns (%s) is not yet supported", def.name)
- String.format("Invalid null clustering key part %s", name)
+ String.format("Invalid null clustering key part %s", def.name)
- String.format("Invalid null value for clustering key part %s", name.name)
+ String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", name)
+ String.format("Invalid null value for partition key part %s", def.name)
- String.format("Multi-column relations can only be applied to clustering columns: %s", name)
+ String.format("Multi-column relations can only be applied to clustering columns: %s", def)
- String.format("Partition KEY part %s cannot be restricted by IN relation (only the last part of the partition key can)", cname)
+ String.format("Partition KEY part %s cannot be restricted by IN relation (only the last part of the partition key can)", cdef.name)
- String.format("Partition key part %s must be restricted since preceding part is", cname)
+ String.format("Partition key part %s must be restricted since preceding part is", cdef.name)
- String.format("Predicates on the non-primary-key column (%s) of a COMPACT table are not yet supported", name.name)
+ String.format("Predicates on the non-primary-key column (%s) of a COMPACT table are not yet supported", def.name)
- String.format("SELECT DISTINCT queries must only request partition key columns and/or static columns (not %s)", name)
+ String.format("SELECT DISTINCT queries must only request partition key columns and/or static columns (not %s)", def.name)
- String.format("SELECT DISTINCT queries must request all the partition key columns (missing %s)", name)
+ String.format("SELECT DISTINCT queries must request all the partition key columns (missing %s)", def.name)
- String.format("The token() function is only supported on the partition key, found on %s", name)
+ String.format("The token() function is only supported on the partition key, found on %s", def.name)
- String.format("Unsupported null value for indexed column %s", name)
+ String.format("Unsupported null value for indexed column %s", def.name)
org/apache/cassandra/cql3/statements/CreateTableStatement.java
+ String.format("counter type is not supported for PRIMARY KEY part %s", stmt.columnAliases.get(0))
org/apache/cassandra/cql3/QueryProcessor.java
- String.format("The sum of all clustering columns is too long (%s > %s)", name.remaining(), Column.MAX_NAME_LENGTH)
+ String.format("The sum of all clustering columns is too long (%s > %s)", serializedSize, Cell.MAX_NAME_LENGTH)
org/apache/cassandra/cql3/statements/DropIndexStatement.java
- "Index '" + indexName + "' could not be found in any of the column families of keyspace '" + keyspace() + "'"
+ "Index '" + indexName + "' could not be found in any of the tables of keyspace '" + keyspace() + '\''
org/apache/cassandra/cql3/CQL3Type.java
+ "Non-frozen User-Defined types are not supported, please use frozen<>"
+ "Non-frozen tuples are not supported, please use frozen<>"
+ "Unknown keyspace " + name.getKeyspace()
+ "Unknown type " + name
+ "counters are not allowed inside tuples"
+ "frozen<> is only currently only allowed on User-Defined and tuple types"
+ String.format("Statement on keyspace %s cannot refer to a user type in keyspace %s; " + "user types can only be used in the keyspace they are defined in", keyspace, name.getKeyspace())
org/apache/cassandra/cql3/Attributes.java
- String.format("ttl is too large. requested (%d) maximum (%d)", ttl, ExpiringColumn.MAX_TTL)
+ String.format("ttl is too large. requested (%d) maximum (%d)", ttl, ExpiringCell.MAX_TTL)
org/apache/cassandra/cql3/Tuples.java
- "Tuples may not contain null values"
+ String.format("Invalid tuple literal for %s: component %d is not of type %s", receiver.name, i, spec.type.asCQL3Type())
+ String.format("Invalid tuple literal for %s: too many elements. Type %s expects %d but got %d", receiver.name, tt.asCQL3Type(), tt.size(), elements.size())
+ String.format("Invalid tuple type literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/Lists.java
- String.format("Invalid list literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("Invalid list literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
- String.format("Invalid list literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid list literal for %s: bind variables are not supported inside collection literals", receiver.name)
- String.format("Invalid list literal for %s: value %s is not of type %s", receiver, rt, valueSpec.type.asCQL3Type())
+ String.format("Invalid list literal for %s: value %s is not of type %s", receiver.name, rt, valueSpec.type.asCQL3Type())
org/apache/cassandra/cql3/Sets.java
- String.format("Invalid set literal for %s of type %s", receiver, receiver.type.asCQL3Type())
+ String.format("Invalid set literal for %s of type %s", receiver.name, receiver.type.asCQL3Type())
- String.format("Invalid set literal for %s: bind variables are not supported inside collection literals", receiver)
+ String.format("Invalid set literal for %s: bind variables are not supported inside collection literals", receiver.name)
- String.format("Invalid set literal for %s: value %s is not of type %s", receiver, rt, valueSpec.type.asCQL3Type())
+ String.format("Invalid set literal for %s: value %s is not of type %s", receiver.name, rt, valueSpec.type.asCQL3Type())
org/apache/cassandra/cql3/statements/UpdateStatement.java
- String.format("Column %s is mandatory for this COMPACT STORAGE table", cfDef.compactValue())
+ String.format("Column %s is mandatory for this COMPACT STORAGE table", cfm.compactValueColumn().name)
- String.format("Missing PRIMARY KEY part %s", cfDef.clusteringColumns().iterator().next())
+ String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().iterator().next())
- String.format("Multiple definitions found for column %s", name)
+ String.format("Multiple definitions found for column %s", def.name)
org/apache/cassandra/cql3/statements/BatchStatement.java
- "Counter mutations are only allowed in COUNTER batches"
+ "Cannot include a counter statement in a logged batch"
+ "Cannot include non-counter statement in a counter batch"
+ "Cannot provide custom timestamp for a BATCH containing counters"
+ "Cannot provide custom timestamp for conditional BATCH"
+ "Cannot provide custom timestamp for counter BATCH"
+ "Counter and non-counter mutations cannot exist in the same batch"
- "Only counter mutations are allowed in COUNTER batches"
+ "Invalid empty serial consistency level"
+ "Operations on lists requiring a read (setting by index and deletions by index or value) are not allowed with IF conditions"
org/apache/cassandra/cql3/statements/AlterTableStatement.java
- "Cannot drop columns from a COMPACT STORAGE table"
+ "Cannot drop columns from a non-CQL3 table"
+ "Static columns are only useful (and thus allowed) if the table has at least one clustering column"
+ String.format("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", columnName)
+ String.format("Cannot re-add previously dropped counter column %s", columnName)
+ String.format("Cell %s was not found in table %s", columnName, columnFamily())
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
+ "Cannot create index on keys of column " + target + " with non map type"
- "Indexes on collections are no yet supported"
- "No column definition found for column " + columnName
+ "No column definition found for column " + target.column
- String.format("Cannot add secondary index to already primarily indexed column %s", columnName)
+ String.format("Cannot add secondary index to already primarily indexed column %s", target.column)
- String.format("Secondary index on %s column %s is not yet supported for compact table", cd.type, columnName)
+ String.format("Secondary index on %s column %s is not yet supported for compact table", cd.kind, target.column)
+ String.format(msg, target.column, target.isCollectionKeys ? "keys" : "values", target.column, previousIsKeys ? "keys" : "values")
=== cassandra-2.1.0 -> cassandra-2.1.1 ===
org/apache/cassandra/cql3/statements/CQL3CasRequest.java (file added)
+ "Cannot mix IF EXISTS and IF NOT EXISTS conditions for the same row"
+ "Cannot mix IF conditions and IF NOT EXISTS for the same row"
org/apache/cassandra/cql3/statements/DropTriggerStatement.java (file added)
+ String.format("Trigger %s was not found", triggerName)
org/apache/cassandra/cql3/statements/CQL3CasConditions.java (file deleted)
- "Cannot mix IF conditions and IF NOT EXISTS for the same row"
- "Cannot mix IF EXISTS and IF NOT EXISTS conditions for the same row"
- "Duplicate and incompatible conditions for column " + condition.column.name
org/apache/cassandra/cql3/AbstractMarker.java (file deleted)
- "Collection columns do not support IN relations"
org/apache/cassandra/cql3/statements/DeleteStatement.java
+ String.format("DELETE statements must restrict all PRIMARY KEY columns with equality relations in order " + "to use IF conditions, but column '%s' is not restricted", def.name)
org/apache/cassandra/cql3/Operation.java
- String.format("Invalid operation (%s) for map column %s", toString(receiver), receiver)
org/apache/cassandra/cql3/statements/ModificationStatement.java
- String.format("Multi-column relations cannot be used in WHERE clauses for modification statements: %s", relation)
+ String.format("Multi-column relations cannot be used in WHERE clauses for UPDATE and DELETE statements: %s", relation)
- "Operations on lists requiring a read (setting by index and deletions by index or value) are not allowed with IF conditions"
- String.format("PRIMARY KEY part %s found in SET part", entry.left)
+ String.format("PRIMARY KEY column '%s' cannot have IF conditions", entry.left)
+ String.format("The token function cannot be used in WHERE clauses for UPDATE and DELETE statements: %s", relation)
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Mixing single column relations and multi column relations on clustering columns is not allowed"
+ String.format("Collection column '%s' (%s) cannot be restricted by a '%s' relation", def.name, receiver.type.asCQL3Type(), newRel.operator())
+ String.format("The token function arguments must be in the partition key order: %s", Joiner.on(',').join(cfm.partitionKeyColumns()))
+ String.format("Unsupported \"!=\" relation on column \"%s\"", def.name)
+ String.format("Unsupported \"!=\" relation: %s", relation)
org/apache/cassandra/cql3/statements/BatchStatement.java
- "Operations on lists requiring a read (setting by index and deletions by index or value) are not allowed with IF conditions"
org/apache/cassandra/cql3/ColumnCondition.java
- "Condtions on counters are not supported"
+ "Conditions on counters are not supported"
+ String.format("Invalid comparison with null for operator \"%s\"", operator)
- String.format("List index %d out of bound, list has size %d", idx, adv)
=== cassandra-2.1.1 -> cassandra-2.1.2 ===
org/apache/cassandra/cql3/UpdateParameters.java (file added)
+ String.format("Out of bound timestamp, must be in [%d, %d]", Long.MIN_VALUE + 1, Long.MAX_VALUE)
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Unknown identifier %s", deletion.affectedColumn())
+ String.format("Unknown identifier %s", id)
org/apache/cassandra/cql3/statements/Selection.java
- String.format("Undefined name %s in selection clause", raw.selectable)
+ String.format("Undefined name %s in selection clause", selectable)
org/apache/cassandra/cql3/statements/ModificationStatement.java
- String.format("PRIMARY KEY column '%s' cannot have IF conditions", entry.left)
+ String.format("PRIMARY KEY column '%s' cannot have IF conditions", id)
- String.format("Unknown identifier %s", entry.left)
+ String.format("Unknown identifier %s", id)
- String.format("Unknown key identifier %s", rel.getEntity())
+ String.format("Unknown key identifier %s", id)
=== cassandra-2.1.2 -> cassandra-2.1.3 ===
org/apache/cassandra/cql3/statements/DeleteStatement.java
- String.format("Missing mandatory PRIMARY KEY part %s since %s specified", getFirstEmptyKey(), deletion.column.name)
+ String.format("Primary key column '%s' must be specified in order to delete column '%s'", getFirstEmptyKey().name, deletion.column.name)
org/apache/cassandra/cql3/Operation.java
+ String.format("Invalid deletion operation for frozen collection column %s", receiver.name)
+ String.format("Invalid operation (%s) for frozen collection column %s", toString(receiver), receiver.name)
+ String.format("Invalid operation (%s) for frozen list column %s", toString(receiver), receiver.name)
org/apache/cassandra/cql3/statements/Selection.java
- String.format("Undefined name %s in selection clause", rawSelector.selectable)
+ String.format("Undefined name %s in selection clause", id)
org/apache/cassandra/cql3/statements/SelectStatement.java
+ "Invalid null value in condition for column " + cfm.clusteringColumns().get(i + def.position())
- "No indexed columns present in by-columns clause with Equal operator"
- String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous)
+ String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous.name)
+ String.format("Cannot restrict column \"%s\" by a CONTAINS relation without a secondary index", cdef.name)
- String.format("Cannot use CONTAINS_KEY on non-map column %s", def.name)
+ String.format("Cannot use CONTAINS KEY on non-map column %s", def.name)
org/apache/cassandra/cql3/statements/CreateTableStatement.java
+ "Cannot set default_time_to_live on a table with counters"
+ "Non-frozen collection types are not supported with COMPACT STORAGE"
org/apache/cassandra/cql3/CQL3Type.java
+ "Counters are not allowed inside collections: " + this
+ "Counters are not allowed inside tuples"
- "Non-frozen tuples are not supported, please use frozen<>"
+ "Non-frozen collections are not allowed inside collections: " + this
- "counters are not allowed inside a collection"
- "counters are not allowed inside tuples"
- "frozen<> is only currently only allowed on User-Defined and tuple types"
- "list type cannot contain another collection"
- "map type cannot contain another collection"
- "set type cannot contain another collection"
org/apache/cassandra/cql3/Tuples.java
- "Collection columns do not support IN relations"
+ "Non-frozen collection columns do not support IN relations"
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
- "Cannot create index on keys of column " + target + " with non map type"
+ "Cannot create index on keys of column " + target + " with non-map type"
+ "Cannot create index on keys of frozen<map> column " + target
+ "Frozen collections currently only support full-collection indexes. " + "For example, 'CREATE INDEX ON <table>(full(<columnName>))'."
+ "Secondary indexes are not supported on PRIMARY KEY columns in COMPACT STORAGE tables"
+ "full() indexes can only be created on frozen collections"
- String.format("Cannot add secondary index to already primarily indexed column %s", target.column)
+ String.format("Cannot create secondary index on partition key column %s", target.column)
- String.format("Secondary index on %s column %s is not yet supported for compact table", cd.kind, target.column)
org/apache/cassandra/cql3/statements/UpdateStatement.java
+ String.format("Can't index column value of size %d for index %s on %s.%s", cell.value().remaining(), cfm.getColumnDefinition(cell.name()).getIndexName(), cfm.ksName, cfm.cfName)
- String.format("Multiple definitions found for column %s", def.name)
+ String.format("Multiple definitions found for column %s", id)
- String.format("Unknown identifier %s", columnNames.get(i))
+ String.format("Unknown identifier %s", id)
org/apache/cassandra/cql3/statements/AlterTableStatement.java
- "Cannot use collection types with Super column family"
+ "Cannot set default_time_to_live on a table with counters"
- "Cannot use collection types with non-composite PRIMARY KEY"
+ "Cannot use non-frozen collections with a non-composite PRIMARY KEY"
+ "Cannot use non-frozen collections with super column families"
- String.format("Cell %s was not found in table %s", columnName, columnFamily())
=== cassandra-2.1.3 -> cassandra-2.1.4 ===
=== cassandra-2.1.4 -> trunk ===
org/apache/cassandra/cql3/functions/JavaSourceUDFFactory.java (file added)
+ String.format("Could not compile function '%s' from Java source: %s", name, e.getCause())
+ String.format("Could not compile function '%s' from Java source: %s", name, e)
org/apache/cassandra/cql3/Json.java (file added)
+ String.format("Error decoding JSON value for %s: %s", spec.name, exc.getMessage())
+ "Got null for INSERT JSON values"
+ String.format( "JSON values map contains unrecognized column: %s", valueMap.keySet().iterator().next())
+ String.format("Could not decode JSON string as a map: %s. (String was: %s)", exc.toString(), jsonString)
org/apache/cassandra/cql3/statements/DropRoleStatement.java (file added)
+ "Cannot DROP primary role for current login"
+ String.format("%s doesn't exist", role.getRoleName())
org/apache/cassandra/cql3/functions/ScriptBasedUDF.java (file added)
+ String.format("Invalid language '%s' for function '%s'", language, name)
+ String.format("Failed to compile function '%s' for language %s: %s", name, language, e)
org/apache/cassandra/cql3/statements/PermissionsManagementStatement.java (file added)
+ String.format("Role %s doesn't exist", grantee.getRoleName())
+ String.format("Resource %s doesn't exist", resource)
org/apache/cassandra/cql3/functions/UDAggregate.java (file added)
+ String.format("Referenced state function '%s %s' for aggregate '%s' is not a scalar function", fName, Arrays.toString(UDHelper.driverTypes(argTypes)), aName)
+ String.format("Aggregate '%s' exists but hasn't been loaded successfully for the following reason: %s. " + "Please see the server log for more details", this, reason.getMessage())
+ String.format("Referenced state function '%s %s' for aggregate '%s' does not exist", fName, Arrays.toString(UDHelper.driverTypes(argTypes)), aName)
org/apache/cassandra/cql3/ColumnIdentifier.java (file added)
+ String.format("Undefined name %s in selection clause", this)
org/apache/cassandra/cql3/statements/CreateFunctionStatement.java (file added)
+ "Cannot use both 'OR REPLACE' and 'IF NOT EXISTS' directives"
+ String.format("Function %s can only replace a function", old)
+ String.format("duplicate argument names for given function %s with argument names %s", functionName, argNames)
+ String.format("Function %s already exists", old)
+ "Functions must be fully qualified with a keyspace name if a keyspace is not set for the session"
+ String.format("Cannot replace function %s, the new return type %s is not compatible with the return type %s of existing function", functionName, returnType.asCQL3Type(), old.returnType().asCQL3Type())
+ String.format("Cannot add function '%s' to non existing keyspace '%s'.", functionName.name, functionName.keyspace)
org/apache/cassandra/cql3/selection/Selectable.java (file added)
+ String.format("%s of type %s has no field %s", selected, type.asCQL3Type(), field)
+ String.format("Unknown function '%s'", functionName)
+ String.format("Invalid field selection: %s of type %s is not a user type", selected, type.asCQL3Type())
+ String.format("Cannot use selection function %s on PRIMARY KEY part %s", isWritetime ? "writeTime" : "ttl", def.name)
+ String.format("Cannot use selection function %s on collections", isWritetime ? "writeTime" : "ttl")
+ String.format("Undefined name %s in selection clause", id)
+ String.format("Unknown function %s called in selection clause", functionName)
org/apache/cassandra/cql3/statements/CreateAggregateStatement.java (file added)
+ "Final function " + finalFuncName + "(" + stateTypeRaw + ") does not exist or is not a scalar function"
+ String.format("Function %s already exists", old)
+ "State function " + stateFuncSig(stateFuncName, stateTypeRaw, argRawTypes) + " return type must be the same as the first argument type (if no final function is used)"
+ String.format("Cannot replace aggregate %s, the new return type %s is not compatible with the return type %s of existing function", functionName, returnType.asCQL3Type(), old.returnType().asCQL3Type())
+ String.format("Aggregate %s can only replace an aggregate", old)
+ String.format("Cannot add aggregate '%s' to non existing keyspace '%s'.", functionName.name, functionName.keyspace)
+ "Functions must be fully qualified with a keyspace name if a keyspace is not set for the session"
+ "Cannot use both 'OR REPLACE' and 'IF NOT EXISTS' directives"
+ "State function " + stateFuncSig(stateFuncName, stateTypeRaw, argRawTypes) + " does not exist or is not a scalar function"
+ String.format("Cannot replace native aggregate %s", old)
org/apache/cassandra/cql3/functions/ToJsonFct.java (file added)
+ String.format("toJson() only accepts one argument (got %d)", argTypes.size())
org/apache/cassandra/cql3/statements/CreateRoleStatement.java (file added)
+ String.format("%s already exists", role.getRoleName())
+ "Role name can't be an empty string"
org/apache/cassandra/cql3/statements/DropFunctionStatement.java (file added)
+ "Functions must be fully qualified with a keyspace name if a keyspace is not set for the session"
+ String.format("'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", functionName, functionName, functionName)
+ String.format("Cannot drop non existing function '%s'", functionName)
+ String.format("Cannot drop non existing function '%s(%s)'", functionName, sb)
+ String.format("Function '%s' still referenced by %s", old, references)
org/apache/cassandra/cql3/statements/RoleManagementStatement.java (file added)
+ String.format("%s doesn't exist", grantee.getRoleName())
+ String.format("%s doesn't exist", role.getRoleName())
org/apache/cassandra/cql3/restrictions/SingleColumnRestriction.java (file added)
+ "Unsupported null value for map-entry equality"
+ "Invalid null value for IN restriction"
org/apache/cassandra/cql3/functions/UDFunction.java (file added)
+ String.format("Function '%s' exists but hasn't been loaded successfully " + "for the following reason: %s. Please see the server log for details", this, reason.getMessage())
org/apache/cassandra/cql3/selection/Selection.java (file added)
+ "the select clause must either contain only aggregates or no aggregate"
org/apache/cassandra/cql3/selection/AbstractFunctionSelector.java (file added)
+ "aggregate functions cannot be used as arguments of aggregate functions"
+ String.format("arguments of function %s must be either all aggregates or no aggregates", fun.name())
org/apache/cassandra/cql3/statements/AlterRoleStatement.java (file added)
+ "ALTER [ROLE|USER] can't be empty"
+ String.format("%s doesn't exist", role.getRoleName())
org/apache/cassandra/cql3/statements/ListRolesStatement.java (file added)
+ String.format("%s doesn't exist", grantee)
org/apache/cassandra/cql3/statements/DropAggregateStatement.java (file added)
+ String.format("Cannot drop aggregate '%s' because it is a " + "native (built-in) function", functionName)
+ "Functions must be fully qualified with a keyspace name if a keyspace is not set for the session"
+ String.format("Cannot drop non existing aggregate '%s(%s)'", functionName, sb)
+ String.format("'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", functionName, functionName, functionName)
+ String.format("Cannot drop non existing aggregate '%s'", functionName)
org/apache/cassandra/cql3/statements/MultiColumnRestriction.java (file deleted)
- "Invalid null value for IN restriction"
org/apache/cassandra/cql3/statements/DropUserStatement.java (file deleted)
- "Users aren't allowed to DROP themselves"
- String.format("User %s doesn't exist", username)
org/apache/cassandra/cql3/statements/CreateUserStatement.java (file deleted)
- "Username can't be an empty string"
- String.format("User %s already exists", username)
org/apache/cassandra/cql3/statements/Selection.java (file deleted)
- String.format("Cannot use selection function %s on PRIMARY KEY part %s", tot.isWritetime ? "writeTime" : "ttl", def.name)
- String.format("Unknown function '%s'", withFun.functionName)
- String.format("%s of type %s has no field %s", withField.selected, type.asCQL3Type(), withField.field)
- String.format("Cannot use selection function %s on collections", tot.isWritetime ? "writeTime" : "ttl")
- String.format("Undefined name %s in selection clause", selectable)
- String.format("Undefined name %s in selection clause", id)
- String.format("Undefined name %s in selection clause", tot.id)
- String.format("Invalid field selection: %s of type %s is not a user type", withField.selected, type.asCQL3Type())
- String.format("Unknown function %s called in selection clause", fun.functionName)
org/apache/cassandra/cql3/statements/SingleColumnRestriction.java (file deleted)
- "Invalid null value for IN restriction"
- String.format( "More than one restriction was found for the %s bound on %s", b.name().toLowerCase(), name)
org/apache/cassandra/cql3/statements/AlterUserStatement.java (file deleted)
- "ALTER USER can't be empty"
- String.format("User %s doesn't exist", username)
org/apache/cassandra/cql3/UserOptions.java (file deleted)
- String.format("%s doesn't support %s option", DatabaseDescriptor.getAuthenticator().getClass().getName(), option)
org/apache/cassandra/cql3/statements/PermissionAlteringStatement.java (file deleted)
- String.format("User %s doesn't exist", username)
- String.format("%s doesn't exist", resource)
org/apache/cassandra/triggers/TriggerExecutor.java
- "Column family of additional mutation does not match primary update cf"
+ "table of additional mutation does not match primary update table"
org/apache/cassandra/cql3/functions/FunctionCall.java
- String.format("Invalid null value for argument to %s", fun)
+ "Aggregation function are not supported in the where clause"
+ String.format("Incorrect number of arguments specified for function %s (expected %d, found %d)", fun, fun.argTypes().size(), terms.size())
+ String.format("Type error: cannot assign result of function %s (type %s) to %s (type %s)", scalarFun.name(), scalarFun.returnType().asCQL3Type(), receiver.name, receiver.type.asCQL3Type())
+ String.format("Unknown function %s called", name)
org/apache/cassandra/cql3/functions/Functions.java
+ "fromJson() cannot be used in the selection clause of a SELECT statement"
+ "toJson() may only be used within the selection clause of SELECT statements"
- String.format("Ambiguous call to function %s (can match both type signature %s and %s): use type casts to disambiguate", name, signature(candidate), signature(toTest))
+ String.format("Ambiguous call to function %s (can be matched by following signatures: %s): use type casts to disambiguate", name, toString(compatibles))
- String.format("Invalid call to function %s, none of its type signature matches (known type signatures: %s)", name, signatures(factories, receiver))
+ String.format("Invalid call to function %s, none of its type signatures match (known type signatures: %s)", name, toString(candidates))
- String.format("Invalid number of arguments in call to function %s: %d required but %d provided", fun.name(), fun.argsType().size(), providedArgs.size())
+ String.format("Invalid number of arguments in call to function %s: %d required but %d provided", fun.name(), fun.argTypes().size(), providedArgs.size())
- String.format("Type error: cannot assign result of function %s (type %s) to %s (type %s)", fun.name(), fun.returnType().asCQL3Type(), receiver, receiver.type.asCQL3Type())
- String.format("Unknown CQL3 function %s called", name)
org/apache/cassandra/cql3/TypeCast.java
- String.format("Cannot assign value %s to %s of type %s", this, receiver, receiver.type.asCQL3Type())
+ String.format("Cannot assign value %s to %s of type %s", this, receiver.name, receiver.type.asCQL3Type())
org/apache/cassandra/cql3/statements/ListPermissionsStatement.java
+ String.format("%s doesn't exist", grantee)
- String.format("User %s doesn't exist", username)
org/apache/cassandra/cql3/statements/DropTypeStatement.java
+ String.format("Cannot drop user type %s as it is still used by function %s", name, function)
org/apache/cassandra/cql3/statements/ModificationStatement.java
- "IN is only supported on the last column of the partition key"
- String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", def.name)
- String.format("Missing PRIMARY KEY part %s since %s is set", firstEmptyKey.name, def.name)
- String.format("Missing mandatory PRIMARY KEY part %s", def.name)
org/apache/cassandra/cql3/statements/SelectStatement.java
- "Cannot execute this query as it might involve data filtering and " + "thus may have unpredictable performance. If you want to execute " + "this query despite the performance unpredictability, use ALLOW FILTERING"
- "Cannot page queries with both ORDER BY and a IN restriction on the partition key; you must either remove the " + "ORDER BY or the IN and sort client side, or disable paging for this query"
- "Cannot restrict clustering columns when selecting only static columns"
- "IN is only supported on the last column of the partition key"
- "IN restrictions are not supported on indexed columns"
- "Index expression values may not be larger than 64K"
- "Invalid empty consistency level"
- "Invalid null token value"
- "Invalid null value in condition for column " + cfm.clusteringColumns().get(i + def.position())
- "Invalid null value in condition for column " + def.name
- "Invalid null value in condition for column " + defs.get(i)
- "Invalid null value in condition for column " + firstName.name
- "Invalid null value of limit"
- "LIMIT must be strictly positive"
- "Mixing single column relations and multi column relations on clustering columns is not allowed"
- "ORDER BY is only supported when the partition key is restricted by an EQ or an IN."
- "ORDER BY with 2ndary indexes is not supported."
- "Only COUNT(*) and COUNT(1) operations are currently supported."
- "Only EQ and IN relation are supported on the partition key (unless you use the token() function)"
- "Queries using 2ndary indexes don't support selecting only static columns"
- "Select on indexed columns and with IN clause for the PRIMARY KEY are not supported"
- "The token() function must be applied to all partition key components or none of them"
- String.format( "Clustering columns may not be skipped in multi-column relations. " + "They should appear in the PRIMARY KEY order. Got %s", relation)
- String.format( "Clustering columns must appear in the PRIMARY KEY order in multi-column relations: %s", relation)
- String.format( "PRIMARY KEY column \"%s\" cannot be restricted (preceding column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous.name)
- String.format( "Partitioning column \"%s\" cannot be restricted because the preceding column (\"%s\") is " + "either not restricted or is restricted by a non-EQ relation", cdef.name, previous)
- String.format("%s cannot be restricted by more than one relation if it includes a IN", def.name)
- String.format("%s cannot be restricted by more than one relation if it includes an Equal", def.name)
- String.format("Aliases are not allowed in order by clause ('%s')", column)
- String.format("Aliases aren't allowed in the where clause ('%s')", relation)
- String.format("Cannot restrict column \"%s\" by IN relation as a collection is selected by the query", cdef.name)
- String.format("Cannot restrict column \"%s\" by a CONTAINS relation without a secondary index", cdef.name)
- String.format("Cannot use %s relation on non collection column %s", newRel.operator(), def.name)
- String.format("Cannot use CONTAINS KEY on non-map column %s", def.name)
- String.format("Clustering column \"%s\" cannot be restricted by an IN relation", cdef.name)
- String.format("Collection column %s can only be restricted by CONTAINS or CONTAINS KEY", def.name)
- String.format("Collection column '%s' (%s) cannot be restricted by a '%s' relation", def.name, receiver.type.asCQL3Type(), newRel.operator())
- String.format("Column \"%s\" appeared twice in a relation: %s", def, relation)
- String.format("Column \"%s\" cannot be restricted by an equality relation and an inequality relation", def)
- String.format("Column \"%s\" cannot be restricted by both a tuple notation inequality and a single column inequality (%s)", def.name, newRel)
- String.format("Column \"%s\" cannot be restricted by both an equality and an inequality relation", def.name)
- String.format("Column \"%s\" cannot be restricted by more than one relation if it is in an %s relation", def, relation.operator())
- String.format("Column \"%s\" cannot have both tuple-notation inequalities and single-column inequalities: %s", def.name, relation)
- String.format("IN predicates on non-primary-key columns (%s) is not yet supported", def.name)
- String.format("Invalid null clustering key part %s", def.name)
- String.format("Invalid null clustering key part %s", r)
- String.format("Invalid null value for clustering key part %s", def.name)
- String.format("Invalid null value for partition key part %s", def.name)
- String.format("Multi-column relations can only be applied to clustering columns: %s", def)
- String.format("Order by currently only support the ordering of columns following their declared order in the PRIMARY KEY")
- String.format("Order by is currently only supported on the clustered columns of the PRIMARY KEY, got %s", column)
- String.format("Order by on unknown column %s", column)
- String.format("Partition KEY part %s cannot be restricted by IN relation (only the last part of the partition key can)", cdef.name)
- String.format("Partition key part %s must be restricted since preceding part is", cdef.name)
- String.format("Predicates on the non-primary-key column (%s) of a COMPACT table are not yet supported", def.name)
- String.format("SELECT DISTINCT queries must only request partition key columns and/or static columns (not %s)", def.name)
- String.format("SELECT DISTINCT queries must request all the partition key columns (missing %s)", def.name)
- String.format("The query requests a restriction of rows with a strict bound (%s) over a range of partitions. " + "This is not supported by the underlying storage engine for COMPACT tables if a LIMIT is provided. " + "Please either make the condition non strict (%s) or remove the user LIMIT", rel, rel.withNonStrictOperator())
- String.format("The token function arguments must be in the partition key order: %s", Joiner.on(',').join(cfm.partitionKeyColumns()))
- String.format("The token() function is only supported on the partition key, found on %s", def.name)
- String.format("The token() function must be applied to all partition key components or none of them")
- String.format("Undefined name %s in where clause ('%s')", entity, relation)
- String.format("Unsupported \"!=\" relation on column \"%s\"", def.name)
- String.format("Unsupported \"!=\" relation: %s", relation)
- String.format("Unsupported null value for indexed column %s", def.name)
- String.format("Unsupported order by relation")
org/apache/cassandra/cql3/statements/CreateTableStatement.java
- String.format("Column family names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
+ String.format("Table names shouldn't be more than %s characters long (got \"%s\")", Schema.NAME_LENGTH, columnFamily())
- String.format("\"%s\" is not a valid column family name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
+ String.format("\"%s\" is not a valid table name (must be alphanumeric character only: [0-9A-Za-z]+)", columnFamily())
org/apache/cassandra/cql3/Attributes.java
- "A TTL must be greater or equal to 0"
+ "A TTL must be greater or equal to 0, but was " + ttl
- "Invalid timestamp value"
+ "Invalid timestamp value: " + tval
org/apache/cassandra/cql3/Lists.java
+ "Attempted to delete an element from a list which is null"
+ "Attempted to set an element on a list which is null"
org/apache/cassandra/cql3/statements/CreateIndexStatement.java
- "Cannot create index on keys of column " + target + " with non-map type"
- "Cannot create index on keys of frozen<map> column " + target
- "Frozen collections currently only support full-collection indexes. " + "For example, 'CREATE INDEX ON <table>(full(<columnName>))'."
+ String.format("Cannot create index on %s of column %s with non-map type", target.type, target.column)
+ String.format("Cannot create index on %s of column %s; only non-frozen collections support %s indexes", target.type, target.column, target.type)
+ String.format("Cannot create index on %s of frozen<map> column %s", target.type, target.column)
- String.format(msg, target.column, target.isCollectionKeys ? "keys" : "values", target.column, previousIsKeys ? "keys" : "values")
org/apache/cassandra/cql3/statements/UpdateStatement.java
+ "Column names for INSERT must be provided when using VALUES"
- "INSERT statement are not allowed on counter tables, use UPDATE instead"
+ "INSERT statements are not allowed on counter tables, use UPDATE instead"
- String.format("Can't index column value of size %d for index %s on %s.%s", cell.value().remaining(), cfm.getColumnDefinition(cell.name()).getIndexName(), cfm.ksName, cfm.cfName)
- String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().iterator().next())
+ String.format("Missing PRIMARY KEY part %s", cfm.clusteringColumns().get(0))
org/apache/cassandra/cql3/Sets.java
+ "Invalid null set element"
org/apache/cassandra/cql3/statements/BatchStatement.java
+ String.format("Batch too large")
org/apache/cassandra/cql3/statements/AlterTableStatement.java
- String.format("ALTER COLUMNFAMILY WITH invoked, but no parameters found")
+ String.format("ALTER TABLE WITH invoked, but no parameters found")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment