You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "gong (via GitHub)" <gi...@apache.org> on 2023/02/02 03:00:07 UTC

[GitHub] [inlong] gong commented on a diff in pull request #7253: [INLONG-7249][Sort] JDBC accurate dirty data archive and metric calculation

gong commented on code in PR #7253:
URL: https://github.com/apache/inlong/pull/7253#discussion_r1093961974


##########
inlong-sort/sort-connectors/jdbc/src/main/java/org/apache/inlong/sort/jdbc/internal/TableMetricStatementExecutor.java:
##########
@@ -89,6 +89,9 @@ public void addToBatch(RowData record) {
 
     @Override
     public void executeBatch() throws SQLException {
+        for (RowData record : batch) {
+            LOG.debug("print batch:{}", record);
+        }
         for (RowData record : batch) {
             long rowSize = record.toString().getBytes(StandardCharsets.UTF_8).length * 8L;

Review Comment:
   Why to * 8



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org