|
74 | 74 | import java.sql.Connection;
|
75 | 75 | import java.sql.PreparedStatement;
|
76 | 76 | import java.sql.SQLException;
|
77 |
| -import java.text.NumberFormat; |
78 | 77 | import java.time.Duration;
|
79 | 78 | import java.time.Instant;
|
80 | 79 | import java.util.ArrayList;
|
@@ -573,8 +572,8 @@ protected void estimateFullRefreshSyncSize(final JdbcDatabase database,
|
573 | 572 | // read a row and Stringify it to better understand the accurate volume of data sent over the wire.
|
574 | 573 | // However, this approach doesn't account for different row sizes.
|
575 | 574 | AirbyteTraceMessageUtility.emitEstimateTrace(PLATFORM_DATA_INCREASE_FACTOR * syncByteCount, Type.STREAM, syncRowCount, tableName, schemaName);
|
576 |
| - LOGGER.info(String.format("Estimate for table in full refresh mode: %s : {rows_to_sync: %s, data_to_sync: %s}", |
577 |
| - fullTableName, NumberFormat.getInstance().format(syncRowCount), JdbcUtils.humanReadableByteCountSI(syncByteCount))); |
| 575 | + LOGGER.info(String.format("Estimate for table: %s : {sync_row_count: %s, sync_bytes: %s, total_table_row_count: %s, total_table_bytes: %s}", |
| 576 | + fullTableName, syncRowCount, syncByteCount, syncRowCount, syncByteCount)); |
578 | 577 | }
|
579 | 578 | } catch (final SQLException e) {
|
580 | 579 | LOGGER.warn("Error occurred while attempting to estimate sync size", e);
|
@@ -615,9 +614,8 @@ protected void estimateIncrementalSyncSize(final JdbcDatabase database,
|
615 | 614 | // read a row and Stringify it to better understand the accurate volume of data sent over the wire.
|
616 | 615 | // However, this approach doesn't account for different row sizes
|
617 | 616 | AirbyteTraceMessageUtility.emitEstimateTrace(PLATFORM_DATA_INCREASE_FACTOR * syncByteCount, Type.STREAM, syncRowCount, tableName, schemaName);
|
618 |
| - LOGGER.info(String.format("Estimate for table in incremental mode: %s : {rows_to_sync: %s, data_to_sync: %s, table_row_count: %s, table_size: %s}", |
619 |
| - fullTableName, NumberFormat.getInstance().format(syncRowCount), JdbcUtils.humanReadableByteCountSI(syncByteCount), NumberFormat.getInstance().format(tableRowCount), |
620 |
| - JdbcUtils.humanReadableByteCountSI(tableByteCount))); |
| 617 | + LOGGER.info(String.format("Estimate for table: %s : {sync_row_count: %s, sync_bytes: %s, total_table_row_count: %s, total_table_bytes: %s}", |
| 618 | + fullTableName, syncRowCount, syncByteCount, tableRowCount, tableRowCount)); |
621 | 619 | } catch (final SQLException e) {
|
622 | 620 | LOGGER.warn("Error occurred while attempting to estimate sync size", e);
|
623 | 621 | }
|
|
0 commit comments