Skip to content
Permalink
Browse files
docs(sample): update UpdateTableExpiration sample (#1389)
Fixes #1371
  • Loading branch information
stephaniewang526 committed Jun 24, 2021
1 parent 9a552eb commit ac854c42fa4339f688c03d121e25df6030eabd3f
Showing with 2 additions and 1 deletion.
  1. +2 −1 samples/snippets/src/main/java/com/example/bigquery/UpdateTableExpiration.java
@@ -30,7 +30,8 @@ public static void main(String[] args) {
String datasetName = "MY_DATASET_NAME";
String tableName = "MY_TABLE_NAME";
// Update table expiration to one day.
Long newExpiration = TimeUnit.MILLISECONDS.convert(1, TimeUnit.DAYS);
Long newExpiration =
TimeUnit.MILLISECONDS.convert(1, TimeUnit.DAYS) + System.currentTimeMillis();
updateTableExpiration(datasetName, tableName, newExpiration);
}

0 comments on commit ac854c4

Please sign in to comment.