You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "slfan1989 (via GitHub)" <gi...@apache.org> on 2023/04/12 00:21:10 UTC

[GitHub] [hudi] slfan1989 opened a new pull request, #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

slfan1989 opened a new pull request, #8434:
URL: https://github.com/apache/hudi/pull/8434

   ### Change Logs
   
   There is a logging error in JDBCExecutor. During the process of drop partitions, the log prints add partitions.
   
   ### Impact
   
   none.
   
   ### Risk level (write none, low medium or high below)
   
   none.
   
   ### Documentation Update
   
   none.
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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@hudi.apache.org

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


[GitHub] [hudi] danny0405 merged pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #8434:
URL: https://github.com/apache/hudi/pull/8434


-- 
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@hudi.apache.org

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


[GitHub] [hudi] danny0405 commented on a diff in pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #8434:
URL: https://github.com/apache/hudi/pull/8434#discussion_r1165075404


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/JDBCExecutor.java:
##########
@@ -154,7 +154,7 @@ public void dropPartitionsToTable(String tableName, List<String> partitionsToDro
       LOG.info("No partitions to add for " + tableName);
       return;
     }
-    LOG.info("Adding partitions " + partitionsToDrop.size() + " to table " + tableName);
+    LOG.info("Drop partitions " + partitionsToDrop.size() + " to table " + tableName);
     List<String> sqls = constructDropPartitions(tableName, partitionsToDrop);

Review Comment:
   Drop -> Dropping
   to table -> from table



-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1504328434

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1504513257

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1507195751

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16329",
       "triggerID" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269) 
   * 4197e6d1216ee9bc269fb5368ab6c919c55ec146 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16329) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1504336034

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] slfan1989 commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1508538824

   @danny0405 Can you help to review this PR again? Thank you very much!


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1507726100

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16329",
       "triggerID" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 4197e6d1216ee9bc269fb5368ab6c919c55ec146 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16329) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] hudi-bot commented on pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8434:
URL: https://github.com/apache/hudi/pull/8434#issuecomment-1507183590

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269",
       "triggerID" : "321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd",
       "triggerType" : "PUSH"
     }, {
       "hash" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "4197e6d1216ee9bc269fb5368ab6c919c55ec146",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 321a9073e72e4c06cc8c93b6fb114b9ed6aecfbd Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=16269) 
   * 4197e6d1216ee9bc269fb5368ab6c919c55ec146 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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@hudi.apache.org

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


[GitHub] [hudi] slfan1989 commented on a diff in pull request #8434: [HUDI-6063] Modify logging errors In JDBCExecutor.

Posted by "slfan1989 (via GitHub)" <gi...@apache.org>.
slfan1989 commented on code in PR #8434:
URL: https://github.com/apache/hudi/pull/8434#discussion_r1165659235


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/JDBCExecutor.java:
##########
@@ -154,7 +154,7 @@ public void dropPartitionsToTable(String tableName, List<String> partitionsToDro
       LOG.info("No partitions to add for " + tableName);
       return;
     }
-    LOG.info("Adding partitions " + partitionsToDrop.size() + " to table " + tableName);
+    LOG.info("Drop partitions " + partitionsToDrop.size() + " to table " + tableName);
     List<String> sqls = constructDropPartitions(tableName, partitionsToDrop);

Review Comment:
   Thanks for your suggestion, I will modify the code!



##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/JDBCExecutor.java:
##########
@@ -154,7 +154,7 @@ public void dropPartitionsToTable(String tableName, List<String> partitionsToDro
       LOG.info("No partitions to add for " + tableName);
       return;
     }
-    LOG.info("Adding partitions " + partitionsToDrop.size() + " to table " + tableName);
+    LOG.info("Drop partitions " + partitionsToDrop.size() + " to table " + tableName);
     List<String> sqls = constructDropPartitions(tableName, partitionsToDrop);

Review Comment:
   Thanks for your suggestion! I will modify the code.



-- 
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@hudi.apache.org

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