Skip to content
Snippets Groups Projects
Unverified Commit 14399c90 authored by Camilo Aguilar's avatar Camilo Aguilar
Browse files

[bigtable] Bigtable uses 1ms granularity.

Fixes #733
parent 76e44c3c
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,9 @@ public class GoogleBigtableClient extends com.yahoo.ycsb.DB {
setCellBuilder.setFamilyNameBytes(ByteStringer.wrap(columnFamilyBytes));
setCellBuilder.setColumnQualifier(ByteStringer.wrap(entry.getKey().getBytes()));
setCellBuilder.setValue(ByteStringer.wrap(entry.getValue().toArray()));
setCellBuilder.setTimestampMicros(System.nanoTime() / 1000);
// Bigtable uses a 1ms granularity
setCellBuilder.setTimestampMicros(System.currentTimeMillis() * 1000);
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment