incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Brown <paulrbr...@gmail.com>
Subject Odd/incorrect getSlice behavior with 0.6.0rc1
Date Thu, 08 Apr 2010 06:31:58 GMT

> [Question about slice behavior from me] Bug?  Misconception on my part?

The answer is misconception; I interpreted the behavior of get_slice to be columns between
X and Y, in ascending or descending depending on the "reversed" flag, but it's a little different

start = X, end = Y, reversed = false -->
  { col | X <= col <= Y }

start = X, end = Y, reversed = true -->
  { col | Y <= col <= X }

To be fair, this is more or less what the wiki doc says, although I don't think that the analogy
with SQL's ASC/DESC is accurate.

-- Paul
Mime
View raw message