You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "C. Scott Andreas (JIRA)" <ji...@apache.org> on 2018/11/19 01:45:00 UTC
[jira] [Updated] (CASSANDRA-13602) Trigger Data Unmarshalling not
working for Compose Data Structures
[ https://issues.apache.org/jira/browse/CASSANDRA-13602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
C. Scott Andreas updated CASSANDRA-13602:
-----------------------------------------
Component/s: Core
> Trigger Data Unmarshalling not working for Compose Data Structures
> ------------------------------------------------------------------
>
> Key: CASSANDRA-13602
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13602
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Samuel Martinucci
> Priority: Major
>
> The following behavior was identified running Cassandra 3.10
> I have the following trigger:
> {code}
> public class TestTrigger implements ITrigger
> {
> @Override
> public Collection<Mutation> augment(final Partition update)
> {
> final UnfilteredRowIterator it = update.unfilteredIterator();
> while (it.hasNext())
> {
> final Unfiltered un = it.next();
> final Clustering clt = (Clustering) un.clustering();
> final Row row = update.getRow(clt);
> final Iterator<Cell> cls = row.cells().iterator();
> while (cls.hasNext())
> {
> final Cell cell = cls.next();
> System.out.println(cell.column().name.toString() + " "
> + cell.column().cellValueType().getClass() + " "
> + cell.column().cellValueType().compose(cell.value()));
> }
> }
> return Collections.emptyList();
> }
> }
> {code}
> Configured for the following table:
> {code}
> CREATE TABLE IF NOT EXISTS audit_app_log
> (
> id text,
> log_time timestamp,
> mappings map<text,frozen<list<text>>>,
> PRIMARY KEY((id),log_time)
> )
> AND CLUSTERING ORDER BY (log_time DESC);
> {code}
> When I insert data into this table, I have the following output:
> mappings class org.apache.cassandra.db.marshal.ListType ["test"]
> This output means that I am losing the key from the map, and seeing only the internal data structure. Am I doing something wrong or this is really a bug?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org