Skip to content

Commit

Permalink
[BugFix][hbase-connector][#1485] hbase ttl millisecond not second (#1486
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 8ff95f2)
  • Loading branch information
liumengkai authored and OT-XY committed Mar 3, 2023
1 parent b9e2a34 commit d507f59
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ public Mutation toExternal(RowData rowData, Mutation output) throws Exception {
}

put.setTTL(
Optional.ofNullable(hBaseConf.getTtl()).orElseGet(() -> (long) Integer.MAX_VALUE));
Optional.ofNullable(hBaseConf.getTtl())
.orElseGet(() -> (long) Integer.MAX_VALUE * 1000));

for (int i = 0; i < rowData.getArity(); i++) {
if (rowKeyIndex == i || columnConfigIndex.contains(i)) {
Expand Down

0 comments on commit d507f59

Please # to comment.