Cassandra only stores keys, not columns; once all of the columns in a
row have been deleted, there is nothing left to delete, although the
row may still appear in some queries (with no columns) until the
tombstones for those columns have been removed (which occurs during
compaction once gc_grace_seconds has passed).

On Wed, Feb 27, 2013 at 11:59 AM, Sloot, Hans-Peter
<hans-peter.sl...@atos.net> wrote:
> But how do you check whether it exists?
>
> Can I select rows from a columnfamily which do not have a column set?
>
>
>
> What if I have set a ttl on all columns. After the expiration everything
> will be removed except the key.
>
> How can I determine the keys that have no additional columns and delete
> them?
>
>
>
>
>
> From: Alain RODRIGUEZ [mailto:arodr...@gmail.com]
> Sent: woensdag 27 februari 2013 10:35
> To: user@cassandra.apache.org
> Subject: Re: NULL values
>
>
>
> Cassandra (C*) has no NULL values. C* is column schemaless, meaning you can
> have different columns on each row of the same ColumnFamily (CF).
>
>
>
> So if you want to check if a certain column is NULL for a row, you just
> check if it exist. By the way, you can store a column with a name and no
> value (empty value). This empty value doesn't take any disk space AFAIK.
>
>
>
> About the TTL, their point is precisely to keep them for a predefined time.
> C* delete them on without any action needed by a client, it's an internal
> work.
>
>
>
> Alain
>
>
>
> 2013/2/27 Sloot, Hans-Peter <hans-peter.sl...@atos.net>
>
> Hi,
>
>
>
> How does Cassandra handle NULL values?
>
> I want to know how I can see rows where a certain column has no values.
>
>
>
> For example if I set the TTL for columns is it possible to select rows where
> the ttl has expired for deletion.
>
>
>
> Regards Hans-Peter
>
>
>
>
>
>
> Dit bericht is vertrouwelijk en kan geheime informatie bevatten enkel
> bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd,
> verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te
> vernietigen. Aangezien de integriteit van het bericht niet veilig gesteld is
> middels verzending via internet, kan Atos Nederland B.V. niet aansprakelijk
> worden gehouden voor de inhoud daarvan. Hoewel wij ons inspannen een
> virusvrij netwerk te hanteren, geven wij geen enkele garantie dat dit
> bericht virusvrij is, noch aanvaarden wij enige aansprakelijkheid voor de
> mogelijke aanwezigheid van een virus in dit bericht. Op al onze
> rechtsverhoudingen, aanbiedingen en overeenkomsten waaronder Atos Nederland
> B.V. goederen en/of diensten levert zijn met uitsluiting van alle andere
> voorwaarden de Leveringsvoorwaarden van Atos Nederland B.V. van toepassing.
> Deze worden u op aanvraag direct kosteloos toegezonden.
>
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Atos Nederland B.V. group liability
> cannot be triggered for the message content. Although the sender endeavours
> to maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted. On all offers and agreements under
> which Atos Nederland B.V. supplies goods and/or services of whatever nature,
> the Terms of Delivery from Atos Nederland B.V. exclusively apply. The Terms
> of Delivery shall be promptly submitted to you on your request.
>
> Atos Nederland B.V. / Utrecht
> KvK Utrecht 30132762
>
>
>
>
>
>
>
>
> Dit bericht is vertrouwelijk en kan geheime informatie bevatten enkel
> bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd,
> verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te
> vernietigen. Aangezien de integriteit van het bericht niet veilig gesteld is
> middels verzending via internet, kan Atos Nederland B.V. niet aansprakelijk
> worden gehouden voor de inhoud daarvan. Hoewel wij ons inspannen een
> virusvrij netwerk te hanteren, geven wij geen enkele garantie dat dit
> bericht virusvrij is, noch aanvaarden wij enige aansprakelijkheid voor de
> mogelijke aanwezigheid van een virus in dit bericht. Op al onze
> rechtsverhoudingen, aanbiedingen en overeenkomsten waaronder Atos Nederland
> B.V. goederen en/of diensten levert zijn met uitsluiting van alle andere
> voorwaarden de Leveringsvoorwaarden van Atos Nederland B.V. van toepassing.
> Deze worden u op aanvraag direct kosteloos toegezonden.
>
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Atos Nederland B.V. group liability
> cannot be triggered for the message content. Although the sender endeavours
> to maintain a computer virus-free network, the sender does not warrant that
> this transmission is virus-free and will not be liable for any damages
> resulting from any virus transmitted. On all offers and agreements under
> which Atos Nederland B.V. supplies goods and/or services of whatever nature,
> the Terms of Delivery from Atos Nederland B.V. exclusively apply. The Terms
> of Delivery shall be promptly submitted to you on your request.
>
> Atos Nederland B.V. / Utrecht
> KvK Utrecht 30132762



--
mithrandi, i Ainil en-Balandor, a faer Ambar

Reply via email to