You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/06/10 15:16:04 UTC

[GitHub] [hudi] hddong opened a new pull request #1725: [HUDI-1019]Clean refresh command in CLI

hddong opened a new pull request #1725:
URL: https://github.com/apache/hudi/pull/1725


   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contributing.html before opening a pull request.*
   
   ## What is the purpose of the pull request
   
   *Clean refresh command in CLI*
   
   ## Brief change log
   
     - *Clean refresh command in CLI*
   
   ## Verify this pull request
   
   This pull request is a trivial rework / code cleanup without any test coverage.
   
   ## Committer checklist
   
    - [x] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.


----------------------------------------------------------------
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.

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



[GitHub] [hudi] codecov-commenter edited a comment on pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
codecov-commenter edited a comment on pull request #1725:
URL: https://github.com/apache/hudi/pull/1725#issuecomment-642354552


   # [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=h1) Report
   > Merging [#1725](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=desc) into [master](https://codecov.io/gh/apache/hudi/commit/37838cea6094ddc66191df42e8b2c84f132d1623&el=desc) will **decrease** coverage by `0.01%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/hudi/pull/1725/graphs/tree.svg?width=650&height=150&src=pr&token=VTTXabwbs2)](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #1725      +/-   ##
   ============================================
   - Coverage     18.16%   18.14%   -0.02%     
   + Complexity      860      859       -1     
   ============================================
     Files           352      352              
     Lines         15411    15411              
     Branches       1525     1525              
   ============================================
   - Hits           2799     2796       -3     
   - Misses        12254    12256       +2     
   - Partials        358      359       +1     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
   |---|---|---|---|
   | [...che/hudi/common/table/timeline/TimelineLayout.java](https://codecov.io/gh/apache/hudi/pull/1725/diff?src=pr&el=tree#diff-aHVkaS1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvY29tbW9uL3RhYmxlL3RpbWVsaW5lL1RpbWVsaW5lTGF5b3V0LmphdmE=) | `85.71% <0.00%> (-7.15%)` | `3.00% <0.00%> (ø%)` | |
   | [...apache/hudi/common/fs/HoodieWrapperFileSystem.java](https://codecov.io/gh/apache/hudi/pull/1725/diff?src=pr&el=tree#diff-aHVkaS1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvY29tbW9uL2ZzL0hvb2RpZVdyYXBwZXJGaWxlU3lzdGVtLmphdmE=) | `21.98% <0.00%> (-0.71%)` | `28.00% <0.00%> (-1.00%)` | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=footer). Last update [37838ce...6ff303a](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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.

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



[GitHub] [hudi] leesf commented on a change in pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
leesf commented on a change in pull request #1725:
URL: https://github.com/apache/hudi/pull/1725#discussion_r439703354



##########
File path: hudi-cli/src/main/java/org/apache/hudi/cli/commands/TableCommand.java
##########
@@ -131,4 +131,14 @@ public String descTable() {
     });
     return HoodiePrintHelper.print(header, new HashMap<>(), "", false, -1, false, rows);
   }
+
+  /**
+   * Refresh table metadata.
+   */
+  @CliCommand(value = {"refresh", "refresh metadata", "commits refresh", "cleans refresh", "savepoints refresh"},

Review comment:
       `refresh metadata` to `metadata refresh`?




----------------------------------------------------------------
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.

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



[GitHub] [hudi] codecov-commenter edited a comment on pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
codecov-commenter edited a comment on pull request #1725:
URL: https://github.com/apache/hudi/pull/1725#issuecomment-642354552


   # [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=h1) Report
   > Merging [#1725](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=desc) into [master](https://codecov.io/gh/apache/hudi/commit/37838cea6094ddc66191df42e8b2c84f132d1623&el=desc) will **decrease** coverage by `0.01%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/hudi/pull/1725/graphs/tree.svg?width=650&height=150&src=pr&token=VTTXabwbs2)](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #1725      +/-   ##
   ============================================
   - Coverage     18.16%   18.14%   -0.02%     
   + Complexity      860      859       -1     
   ============================================
     Files           352      352              
     Lines         15411    15411              
     Branches       1525     1525              
   ============================================
   - Hits           2799     2797       -2     
   - Misses        12254    12256       +2     
     Partials        358      358              
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
   |---|---|---|---|
   | [...apache/hudi/common/fs/HoodieWrapperFileSystem.java](https://codecov.io/gh/apache/hudi/pull/1725/diff?src=pr&el=tree#diff-aHVkaS1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvY29tbW9uL2ZzL0hvb2RpZVdyYXBwZXJGaWxlU3lzdGVtLmphdmE=) | `21.98% <0.00%> (-0.71%)` | `28.00% <0.00%> (-1.00%)` | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=footer). Last update [37838ce...2b5304e](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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.

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



[GitHub] [hudi] codecov-commenter commented on pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #1725:
URL: https://github.com/apache/hudi/pull/1725#issuecomment-642354552


   # [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=h1) Report
   > Merging [#1725](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=desc) into [master](https://codecov.io/gh/apache/hudi/commit/37838cea6094ddc66191df42e8b2c84f132d1623&el=desc) will **decrease** coverage by `0.01%`.
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/hudi/pull/1725/graphs/tree.svg?width=650&height=150&src=pr&token=VTTXabwbs2)](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #1725      +/-   ##
   ============================================
   - Coverage     18.16%   18.14%   -0.02%     
   + Complexity      860      859       -1     
   ============================================
     Files           352      352              
     Lines         15411    15411              
     Branches       1525     1525              
   ============================================
   - Hits           2799     2796       -3     
   - Misses        12254    12256       +2     
   - Partials        358      359       +1     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
   |---|---|---|---|
   | [...che/hudi/common/table/timeline/TimelineLayout.java](https://codecov.io/gh/apache/hudi/pull/1725/diff?src=pr&el=tree#diff-aHVkaS1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvY29tbW9uL3RhYmxlL3RpbWVsaW5lL1RpbWVsaW5lTGF5b3V0LmphdmE=) | `85.71% <0.00%> (-7.15%)` | `3.00% <0.00%> (ø%)` | |
   | [...apache/hudi/common/fs/HoodieWrapperFileSystem.java](https://codecov.io/gh/apache/hudi/pull/1725/diff?src=pr&el=tree#diff-aHVkaS1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvY29tbW9uL2ZzL0hvb2RpZVdyYXBwZXJGaWxlU3lzdGVtLmphdmE=) | `21.98% <0.00%> (-0.71%)` | `28.00% <0.00%> (-1.00%)` | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=footer). Last update [37838ce...6ff303a](https://codecov.io/gh/apache/hudi/pull/1725?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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.

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



[GitHub] [hudi] hddong commented on a change in pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
hddong commented on a change in pull request #1725:
URL: https://github.com/apache/hudi/pull/1725#discussion_r439788363



##########
File path: hudi-cli/src/main/java/org/apache/hudi/cli/commands/TableCommand.java
##########
@@ -131,4 +131,14 @@ public String descTable() {
     });
     return HoodiePrintHelper.print(header, new HashMap<>(), "", false, -1, false, rows);
   }
+
+  /**
+   * Refresh table metadata.
+   */
+  @CliCommand(value = {"refresh", "refresh metadata", "commits refresh", "cleans refresh", "savepoints refresh"},

Review comment:
       > `refresh metadata` to `metadata refresh`?
   
   Yes,  had address.




----------------------------------------------------------------
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.

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



[GitHub] [hudi] leesf merged pull request #1725: [HUDI-1019]Clean refresh command in CLI

Posted by GitBox <gi...@apache.org>.
leesf merged pull request #1725:
URL: https://github.com/apache/hudi/pull/1725


   


----------------------------------------------------------------
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.

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