I’m not sure where to send “faults” for the DataStax Devcenter so I’ll send 
them here.  If I define a UDT such as:

CREATE TYPE if not exists sensorsync.SensorReading (

fValue float,
sValue text,
iValue  int
);

and a table

Create table if not exists sensorsync.Sensors(
name uuid,
insertion_time timestamp,
reading map <text,frozen<SensorReading>>,
Primary Key (name,insertion_time)
)

If I now want to insert data  but not use all the fields in the UDT DevCenter 
flags it as a fault.  So:

insert into sensorsync.Sensors (name,insertion_time,reading) values 
(7500e917-04b0-4697-ae7e-dbcdbf7415cb,'2015-01-01 
02:10:05',{'sensor':{iValue:101},'sensor1':{fValue:30.5}});

Works ok (rund in devcenter and cqlsh)  but dev centre flags the missing values 
with an error.  Minor, but may throw people a curve.

Andy



The University of Dundee is a registered Scottish Charity, No: SC015096

Reply via email to