Re: TTL on UDT

2019-12-09 Thread Carl Mueller
Oh right frozen vs unfrozen. On Mon, Dec 9, 2019 at 2:23 PM DuyHai Doan wrote: > It depends on.. Latest version of Cassandra allows unfrozen UDT. The > individual fields of UDT are updated atomically and they are stored > effectively in distinct physical columns inside the partition, thus > appl

Re: TTL on UDT

2019-12-09 Thread DuyHai Doan
It depends on.. Latest version of Cassandra allows unfrozen UDT. The individual fields of UDT are updated atomically and they are stored effectively in distinct physical columns inside the partition, thus applying ttl() on them makes sense. I'm not sure however if the CQL parser allows this syntax

Re: TTL on UDT

2019-12-09 Thread Carl Mueller
I could be wrong, but UDTs I think are written (and overwritten) as one unit, so the notion of a TTL on a UDT field doesn't exist, the TTL is applied to the overall structure. Think of it like a serialized json object with multiple fields. To update a field they deserialize the json, then reserial

TTL on UDT

2019-12-03 Thread Mark Furlong
When I run the command 'select ttl(udt_field) from table; I'm getting an error 'InvalidRequest: Error from server: code=2200 [Invalid query] message="Cannot use selection function ttl on collections"'. How can I get the TTL from a UDT field? Mark Furlong [cid:image001.png@01D5A920.52B244C0] W