[MDEV-3998] Cassandra SE: Cryptic error message on SELECT from a badly formed table Created: 2013-01-04  Updated: 2014-04-16  Resolved: 2014-04-16

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.1
Fix Version/s: 10.0.11

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Won't Fix Votes: 0
Labels: cassandra

Issue Links:
Relates
relates to MDEV-431 Cassandra storage engine Closed

 Description   

I create a valid column family:

cqlsh:manual_test> create columnfamily cf1 ( rowkey int primary key, a int );

Then I create a Cassandra table which only has a column for rowkey, but not for `a`. I expected it to fail, but it works all right:

create table t1 (rowkey int primary key) engine=cassandra keyspace='manual_test' column_family='cf1';
# Query OK, 0 rows affected (0.12 sec)

Then I insert into the table. I thought now it would fail for sure, but it worked too:

insert into t1 values (1);
# Query OK, 1 row affected (0.00 sec)

Then I selected from the table. Since all the above worked, I thought it would work also, but it didn't:

select * from t1;
# ERROR 1928 (HY000): Internal error: 'Default TException. [predicate column_names and slice_range may not both be null]'

The error message is anything but clear, I can only guess what it's about because I made the mess myself. Since the table is basically non-functional, maybe it makes sense to forbid creating it in the fist place.

revision-id: psergey@askmonty.org-20121224043622-xn8g8y3vhtu1lb3w
revno: 3459
branch: 10.0-base-cassandra


Generated at Thu Feb 08 06:52:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.