You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2014/07/01 11:26:24 UTC
[jira] [Created] (CASSANDRA-7484) Throw exception on unknown UDT
field
Sylvain Lebresne created CASSANDRA-7484:
-------------------------------------------
Summary: Throw exception on unknown UDT field
Key: CASSANDRA-7484
URL: https://issues.apache.org/jira/browse/CASSANDRA-7484
Project: Cassandra
Issue Type: Bug
Reporter: Sylvain Lebresne
Assignee: Sylvain Lebresne
Priority: Minor
Currently, the following code:
{noformat}
CREATE TYPE foo (f : int);
CREATE TABLE test (k int PRIMARY KEY, v foo);
INSERT INTO test (k, v) VALUES (0, { s : ?})
{noformat}
will crash, because the {{s}} field is not part of type {{foo}} and it's not caught. The consequence being that the metadata for the bindMarker ends up being {{null}} and some NPE is thrown. We should throw a proper exception instead.
--
This message was sent by Atlassian JIRA
(v6.2#6252)