This table describes how to address common errors you can encounter while working with the Database Toolbox™ Interface for Apache Cassandra® Database.
Error Message | Probable Cause | Resolution |
---|---|---|
Cassandra exception: | The Cassandra® Java® driver throws an error. Sometimes the error can result from an invalid Cassandra Query Language (CQL) query. | Use the error message to troubleshoot the issue. If you are using a CQL
query, ensure that you enter a valid CQL query in the |
Invalid Cassandra connection. | The Cassandra database connection is closed. | Create a new Cassandra database connection using the |
Unable to find | The specified keyspace does not exist in the Cassandra database. | Specify a keyspace that exists in the Cassandra database. To view the keyspaces, access the
|
Unable to find | The specified Cassandra database table does not exist in the Cassandra database. | Specify a Cassandra database table that exists in the Cassandra database. To view the Cassandra database tables, use the |
Too many inputs. Table | You specify more key values than primary keys in the
| Specify the correct number of key values for the primary keys. To view the
key values, use the |
Primary keys of type | You specify a value that does not contain text data for a key that has a
| Use a string scalar, character vector, or one-dimensional cell array of character vectors to specify text data. |
Primary keys of type | You specify a value that does not contain numeric data for a key that has a numeric data type. | Use a numeric vector to specify numeric data. |
Primary keys of type | You specify a value that does not contain numeric data for a key that has a
| Use a numeric vector or one-dimensional cell array of numeric vectors to
specify data that has the |
Primary keys of type | You specify a value that does not contain numeric or logical data for a key
that has a | Use a numeric or logical vector to specify data that has the
|
Primary keys of type | You specify a value that does not contain numeric or text data for a key
that has a | Use a |
Primary keys of type | You specify a value that does not contain numeric or text data for a key
that has a | Use a |
Primary keys of type | You specify a data type of a primary key that is not supported in the
| Execute a CQL query using the |
UPSERT requires values for the following primary key columns to be
specified: | You omit one or more primary keys in the Cassandra database table. | Specify a variable in the MATLAB® table for each primary key in the Cassandra database table when you insert or update data using the |
One or more variables in DATA are not a column in the Cassandra table.
Use COLUMNINFO to list all columns defined for the table. | One or more variable names in the MATLAB table do not match any column names in the Cassandra database table. | Verify the names of the columns in the Cassandra database table by using the |
cassandra
| columninfo
| executecql
| partitionRead
| tablenames
| upsert