On Fri, Jan 22, 2010 at 12:03 AM, Luke <[email protected]> wrote: > On Thu, Jan 21, 2010 at 4:12 AM, Stanislav Yudin <[email protected]> wrote: > > Thanks Luke and Sanjit. > > That "magic" in Parser.h in case of python looks like: > > end_row_id = id[:len(start_row)-1] + > chr(ord(start_row[len(start_row)-1:]) + > > 1) > > This is actually not correct. See Joshua Taylor's code for details. > Yes, he is right for general case. My sample was for our own cases (and most of simple real life use cases I believe), where we don't have \xff ever, or any other non-ascii key values. And actually I wonder where such key may have a point. But thanks anyway.
> > > So since we're going to use it, please try not to break start_row/end_row > in > > RowInterval while refactoring. > > The client interface should always be backward compatible. I plan to > add a set_prefix in the native client API, and a is_prefix boolean > field in the thrift ScanSpec, which will be translated by > ThrfitBroker. > Thanks for that. Since there is a statement on website that up to 1.0 release there is no backward compatibility focus, I wanted to stress on that. > > __Luke > > > On Thu, Jan 21, 2010 at 5:03 AM, Sanjit Jhala <[email protected]> wrote: > >> > >> Basically "bas" is the first string that sorts after everything that > >> starts with "bar". A simple way to generate it is add 1 to last non- > 0xff > >> byte of the of the start row string. > >> > >> -Sanjit > >> > >> > >> On Wed, Jan 20, 2010 at 10:20 AM, Stanislav Yudin <[email protected]> > >> wrote: > >>> > >>> Thanks Sanjit, but this is not a solution. I don't know what should be > >>> "bas" in my case, since all I have is a predicate for row key, so I > have to > >>> supply something like "barXXXXXXXX..." as end row, which should be the > last > >>> posible key with such predicate. What I am looking for is the same > logic as > >>> in src/cc/HyperTable/Lib/HqlParser.h:783 onwards (which looks like > black > >>> magic for me). Can you explain what is going on in HqlParser.h? I am > using > >>> thrift bindings for python. > >>> On Wed, Jan 20, 2010 at 10:24 PM, Sanjit Jhala <[email protected]> > wrote: > >>>> > >>>> Hi Stanislav, > >>>> > >>>> Suppose you want to set up a scanner that returns all rows starting > with > >>>> "bar". Setup a scanner with the row interval start_row = 'bar', > end_row = > >>>> 'bas', start_inclusive = true, end_inclusive = false. > >>>> > >>>> Btw are you using the Thrift interface or the C++ client? > >>>> > >>>> -Sanjit > >>>> > >>>> On Wed, Jan 20, 2010 at 4:40 AM, Stanislav Yudin <[email protected]> > >>>> wrote: > >>>>> > >>>>> Hello everyone, > >>>>> I wonder what is the best way to setup ScanSpec which would do the > same > >>>>> as =^ (or RELOP_SW) operator in HQL? > >>>>> -- > >>>>> You received this message because you are subscribed to the Google > >>>>> Groups "Hypertable Development" group. > >>>>> To post to this group, send email to [email protected] > . > >>>>> To unsubscribe from this group, send email to > >>>>> [email protected]<hypertable-dev%[email protected]> > . > >>>>> For more options, visit this group at > >>>>> http://groups.google.com/group/hypertable-dev?hl=en. > >>>>> > >>>> > >>>> > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Hypertable Development" group. > >>>> To post to this group, send email to [email protected]. > >>>> To unsubscribe from this group, send email to > >>>> [email protected]<hypertable-dev%[email protected]> > . > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/hypertable-dev?hl=en. > >>>> > >>> > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "Hypertable Development" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]<hypertable-dev%[email protected]> > . > >>> For more options, visit this group at > >>> http://groups.google.com/group/hypertable-dev?hl=en. > >>> > >> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Hypertable Development" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<hypertable-dev%[email protected]> > . > >> For more options, visit this group at > >> http://groups.google.com/group/hypertable-dev?hl=en. > >> > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Hypertable Development" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<hypertable-dev%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/hypertable-dev?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Hypertable Development" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<hypertable-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hypertable-dev?hl=en. > > > > -- You received this message because you are subscribed to the Google Groups "Hypertable Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hypertable-dev?hl=en.
