[GitHub] carbondata pull request #2874: [CARBONDATA-3053][Cli] Fix bugs for carbon-cl...
Github user asfgit closed the pull request at: https://github.com/apache/carbondata/pull/2874 ---
[GitHub] carbondata pull request #2874: [CARBONDATA-3053][Cli] Fix bugs for carbon-cl...
Github user xuchuanyin commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2874#discussion_r229535025 --- Diff: tools/cli/src/main/java/org/apache/carbondata/tool/DataFile.java --- @@ -500,4 +503,7 @@ private double computePercentage(byte[] data, byte[] min, byte[] max, ColumnSche } } + public void close() throws IOException { +this.fileReader.finish(); --- End diff -- this is the `close` method for `fileReader` ---
[GitHub] carbondata pull request #2874: [CARBONDATA-3053][Cli] Fix bugs for carbon-cl...
Github user jackylk commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2874#discussion_r229274712 --- Diff: tools/cli/src/main/java/org/apache/carbondata/tool/DataFile.java --- @@ -500,4 +503,7 @@ private double computePercentage(byte[] data, byte[] min, byte[] max, ColumnSche } } + public void close() throws IOException { +this.fileReader.finish(); --- End diff -- why not close? ---
[GitHub] carbondata pull request #2874: [CARBONDATA-3053][Cli] Fix bugs for carbon-cl...
GitHub user xuchuanyin opened a pull request: https://github.com/apache/carbondata/pull/2874 [CARBONDATA-3053][Cli] Fix bugs for carbon-cli found in windows env Tests run failed in windows env due to: 1. unclosed file stream causing failure in clearing files 2. the line separator is not "\n" in windows In this commit, We fix the bugs. Be sure to do all of the following checklist to help us incorporate your contribution quickly and easily: - [ ] Any interfaces changed? - [ ] Any backward compatibility impacted? - [ ] Document update required? - [ ] Testing done Please provide details on - Whether new unit test cases have been added or why no new tests are required? - How it is tested? Please attach test report. - Is it a performance related change? Please attach the performance test report. - Any additional information to help reviewers in testing this change. - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. You can merge this pull request into a Git repository by running: $ git pull https://github.com/xuchuanyin/carbondata 181029_bug_error_cli_windows_test Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2874.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2874 commit 90c4bd27748f7c86b07a8d3ea42d7cc23b05db1c Author: xuchuanyin Date: 2018-10-29T11:49:25Z Fix bugs for carbon-cli in windows env Tests run failed in windows env due to: 1. unclosed file stream causing failure in clearing files 2. the line separator is not "\n" in windows In this commit, We fix the bugs. ---