Skip to content

TimestampRange should allow customization of inclusive/exclusive #2608

Closed

Description

@destijl

Currently TimestampRange supports only inclusive lower, exclusive upper:
https://googlecloudplatform.github.io/google-cloud-python/stable/bigtable-row-filters.html#google.cloud.bigtable.row_filters.TimestampRange

My application expects inclusive upper timestamp bounds. The super hacky workaround I currently have to make it work with bigtable is adding 1ms (minimum timestamp resolution) onto all end timestamps.

It would be great if I could control this behavior, just as for the value range filter:
https://googlecloudplatform.github.io/google-cloud-python/stable/bigtable-row-filters.html#google.cloud.bigtable.row_filters.ValueRangeFilter

Activity

  1. dhermes commented on Oct 25, 2016

    @dhermes
    Contributor

    We are at the mercy of the spec

    // Specified a contiguous range of microsecond timestamps.
    message TimestampRange {
      // Inclusive lower bound. If left empty, interpreted as 0.
      int64 start_timestamp_micros = 1;
    
      // Exclusive upper bound. If left empty, interpreted as infinity.
      int64 end_timestamp_micros = 2;
    }
    

    For now, your workaround is what I would recommend, but we can certainly consider adding this feature.

  2. added
    type: feature request
    api: bigtable
    on Oct 25, 2016
  3. self-assigned this
    on Oct 25, 2016
  4. added
    priority: p2
    on Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: bigtablepriority: p2type: feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions