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‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: bigtableIssues related to the Bigtable API.
    on Oct 25, 2016
  3. self-assigned this
    on Oct 25, 2016
  4. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    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: bigtableIssues related to the Bigtable API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions