[
https://issues.apache.org/jira/browse/CASSANDRA-9148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487532#comment-14487532
]
Philip Thompson commented on CASSANDRA-9148:
--------------------------------------------
{code}ERROR [SharedPool-Worker-1] 2015-04-09 11:32:5
0,156 ErrorMessage.java:243 - Unexpected excep
tion during request
java.lang.NullPointerException: null
at org.apache.cassandra.db.composites.
AbstractSimpleCellNameType.<init>(AbstractSimp
leCellNameType.java:70) ~[main/:na]
at org.apache.cassandra.db.composites.
SimpleSparseCellNameType.<init>(SimpleSparseCe
llNameType.java:43) ~[main/:na]
at org.apache.cassandra.db.composites.
SimpleSparseCellNameType.<init>(SimpleSparseCe
llNameType.java:38) ~[main/:na]
at org.apache.cassandra.db.composites.
CellNames.fromAbstractType(CellNames.java:66)
~[main/:na]
at org.apache.cassandra.cql3.statement
s.AlterTypeStatement.updateDefinition(AlterTyp
eStatement.java:169) ~[main/:na]
at org.apache.cassandra.cql3.statement
s.AlterTypeStatement.announceMigration(AlterTy
peStatement.java:116) ~[main/:na]
at org.apache.cassandra.cql3.statement
s.SchemaAlteringStatement.execute(SchemaAlteri
ngStatement.java:80) ~[main/:na]
at org.apache.cassandra.cql3.QueryProc
essor.processStatement(QueryProcessor.java:238
) ~[main/:na]
{code} is the full stack trace on the ALTER TYPE command
> Issue when modifying UDT
> ------------------------
>
> Key: CASSANDRA-9148
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9148
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Oskar Kjellin
> Assignee: Benjamin Lerer
> Fix For: 2.1.5
>
>
> I'm trying out the user defined types but ran into some issues when adding a
> column to an existing type.
> Unfortunately I had to scrap the entire cluster so I cannot access it any
> more.
> After creating the UDT i adde two tables using it. 1 was just using
> frozen<type>. The other was using both frozen<type> frozen map<String, type>.
> Then I realized I needed to add a new field to the user type. Then when I
> tried to put to any of the two tables (setting all fields to the UDT in the
> datastax java driver) I got this error message that I could not find anywhere
> else but in the cassandra code:
> com.datastax.driver.core.exceptions.InvalidQueryException: Invalid remaining
> data after end of UDT value
> I had to scrap my keyspace in order to be able to use it again. Could not
> even drop one of the tables.
> I know that they are frozen so we cannot modify the value of individual
> fields once they are written but we must be able to modify the schema right?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)