Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can't set table timestamp precision with python API #2569

Copy link
Copy link
@destijl

Description

@destijl
Issue body actions

I didn't realise per-table timestamp precision was a thing because it is missing from the python API, but is present in the RPC API:
https://cloud.google.com/bigtable/docs/reference/admin/rpc/google.bigtable.admin.v2#google.bigtable.admin.v2.Table.TimestampGranularity

It's REALLY not obvious that the table is in ms precision by default, and is silently dropping usec (granularity isn't mentioned at all in docs I've read). This wasn't visible to me until I happened to try and filter by a value that didn't divide evenly into ms and got:

Timestamp granularity mismatch. Expected a multiple of 1000 (millisecond granularity), but got 500.

This also explains some of my problems in:
#2397

although the InvalidChunk problem might be independent.

Metadata

Metadata

Assignees

Labels

api: bigtableIssues related to the Bigtable API.Issues related to the Bigtable API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.