Skip to content

Commit

Permalink
Remove meaningless call of Math.max
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjian2664 authored and ebyhr committed Jan 20, 2025
1 parent 50a16f3 commit 7d96a55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ private TableStatistics readTableStatistics(ConnectorSession session, JdbcTableH
// row count from INFORMATION_SCHEMA.TABLES is very inaccurate but rowCount already includes MAX(CARDINALITY) from indexes
// This can still happen if table's index statistics change concurrently
log.debug("Table %s rowCount calculated so far [%s] is less than index cardinality for %s: %s", table, rowCount, columnName, columnIndexStatistics);
rowCount = max(rowCount, columnIndexStatistics.cardinality());
rowCount = columnIndexStatistics.cardinality();
}
}

Expand Down

0 comments on commit 7d96a55

Please sign in to comment.