cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rami Badran <ramibadran...@gmail.com>
Subject Re:
Date Tue, 15 Mar 2016 15:06:13 GMT
sorry am new in cassandra and i want to check if i got you, you mean like
this

insert into users (uid,loginIds) values ('111','{ 'emails'  : {'
f@baggins.com', 'baggins@gmail.com'},'unverifiedEmails' : {'a@baggins.com',
'c@gmail.com'} }');

On Tue, Mar 15, 2016 at 5:01 PM, Jack Krupansky <jack.krupansky@gmail.com>
wrote:

> No quotes around the UDT key names. (Or use double quotes.)
>
> -- Jack Krupansky
>
> On Tue, Mar 15, 2016 at 10:56 AM, Rami Badran <ramibadran.82@gmail.com>
> wrote:
>
>> here is the CQL
>>
>> insert into users (uid,loginIds) values ('111',{ 'emails'  : {'
>> f@baggins.com', 'baggins@gmail.com'},'unverifiedEmails' : {'a@baggins.com',
>> 'c@gmail.com'} });
>>
>>
>> On Tue, Mar 15, 2016 at 4:54 PM, Spencer Brown <lilspenny@gmail.com>
>> wrote:
>>
>>> Should be loginIds map<text, frozen <loginIds>>, with s at the end
of
>>> the loginId in the map definition.
>>>
>>> On Tue, Mar 15, 2016 at 10:38 AM, Rami Badran <ramibadran.82@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> i have the following cassandra schema structure:
>>>>
>>>> CREATE TABLE users (
>>>> uid TEXT,
>>>> loginIds map<text, frozen <loginId>>,
>>>> primary key (uid)
>>>> );
>>>>
>>>> CREATE TYPE loginId (
>>>> emails set<text>,
>>>> unverifiedEmails set<text>,
>>>>  );
>>>>
>>>> and i tried to insert record to my table,but i have problem with
>>>> loginIds attribute,
>>>> could you please advice how i can insert record
>>>>
>>>> --
>>>>
>>>> Regards
>>>> Rami Badran
>>>>
>>>
>>>
>>
>>
>> --
>>
>> Regards
>> Rami Badran
>>
>
>


-- 

Regards
Rami Badran

Mime
View raw message