google-cloud-bigtable - BigTable是否允许设置微时间戳粒度

我正在尝试将时间戳作为微粒度的单元格写入 Bigtable。这里的文档说我应该能够将粒度设置为微米:https://cloud.google.com/bigtable/docs/reference/data/rpc/google.bigtable.v2#google.bigtable.v2.Mutation.SetCell

但是如果你查看 java 客户端,我看不到除了 millis 之外的其他设置选项。 https://cloud.google.com/bigtable/docs/reference/admin/rpc/google.bigtable.admin.v2#google.bigtable.admin.v2.Table.TimestampGranularity

Ruby 客户端也一样 https://github.com/googleapis/google-cloud-ruby/blob/master/google-cloud-bigtable/lib/google/cloud/bigtable/instance.rb#L548

有谁知道是否可以将粒度设置为微米?

最佳答案

我联系了谷歌,他们确认他们只支持以毫秒为单位设置单元格时间戳,即使时间戳在内部似乎存储为微米级。

这是他们的 C++ 库所说的

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect. Creating cells with higher granularity than the supported value is rejected by the server.

https://googleapis.github.io/google-cloud-cpp/latest/bigtable/classgoogle_1_1cloud_1_1bigtable_1_1v1_1_1TableConfig.html#a4ee0e2162c04b1e67bbac98605d165fd

https://stackoverflow.com/questions/60517902/

相关文章:

npm - 错误 : pngquant failed to build, 确保安装了 libpng-

python - 加载模型时没有 GPU 的机器上的 Cuda 驱动程序错误

reactjs - 如何测试 componentWillUnmount

reactjs - 在 react-testing-library 中使用 getByRole 按可

vue.js - 元标记在 Nuxt.js 应用程序的页面源中无法正确显示

c++ - 这是带有 std::any 或 std::is_copy_constructible 的

amazon-web-services - 如何让我的 Auth0 权限进入 AWS HTTP AP

node.js - 找不到 NodeJS nodegui 模块

googlebot - 是否可以让 fail2ban 忽略谷歌?

typescript - 如何在 WebStorm/IntelliJ 中使用 ts-node 导入项