SourabhBadhya commented on code in PR #3576: URL: https://github.com/apache/hive/pull/3576#discussion_r1092018459
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java: ########## @@ -1577,24 +1590,20 @@ public long findMinTxnIdSeenOpen() throws MetaException { } minOpenTxn = rs.getLong(1); if (rs.wasNull()) { - minOpenTxn = -1L; + minOpenTxn = Long.MAX_VALUE; Review Comment: Can we use ternary operator here - `minOpenTxn = rs.wasNull() ? Long.MAX_VALUE : rs.getLong(1)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org