{"action":"created","issue":{"url":"https://api.github.com/repos/apache/carbondata/issues/2318","repository_url":"https://api.github.com/repos/apache/carbondata","labels_url":"https://api.github.com/repos/apache/carbondata/issues/2318/labels{/name}","comments_url":"https://api.github.com/repos/apache/carbondata/issues/2318/comments","events_url":"https://api.github.com/repos/apache/carbondata/issues/2318/events","html_url":"https://github.com/apache/carbondata/pull/2318","id":324304458,"number":2318,"title":" [CARBONDATA-2491] Fix the error when reader read twice with SDK carbonReader","user":{"login":"xubo245","id":8759816,"avatar_url":"https://avatars1.githubusercontent.com/u/8759816?v=4","gravatar_id":"","url":"https://api.github.com/users/xubo245","html_url":"https://github.com/xubo245","followers_url":"https://api.github.com/users/xubo245/followers","following_url":"https://api.github.com/users/xubo245/following{/other_user}","gists_url":"https://api.github.com/users/xubo245/gists{/gist_id}","starred_url":"https://api.github.com/users/xubo245/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xubo245/subscriptions","organizations_url":"https://api.github.com/users/xubo245/orgs","repos_url":"https://api.github.com/users/xubo245/repos","events_url":"https://api.github.com/users/xubo245/events{/privacy}","received_events_url":"https://api.github.com/users/xubo245/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-05-18T07:45:29Z","updated_at":"2018-05-22T14:25:53Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/carbondata/pulls/2318","html_url":"https://github.com/apache/carbondata/pull/2318","diff_url":"https://github.com/apache/carbondata/pull/2318.diff","patch_url":"https://github.com/apache/carbondata/pull/2318.patch"},"body":"    [CARBONDATA-2491] Fix the error when reader read twice with SDK carbonReader\r\n1.Fix the error out of bound when reader read twice with SDK carbonReader\r\n2.Fix the java.lang.NegativeArraySizeException\r\n3.Add timestamp and  bad record test case\r\nThis PR dependency on https://github.com/apache/carbondata/pull/2246\r\n\r\nHow to fix the error:\r\nCarbon throw the exception because the fileName is \"\" in org.apache.carbondata.core.util.path.CarbonTablePath.DataFileUtil#getTaskNo, I find the filePath is \"\" in prunedBlocklets of org.apache.carbondata.hadoop.api.CarbonInputFormat#getDataBlocksOfSegment. So it should the data map issue.\r\nIt'S UNSAFE issue\r\n \r\nCarbon throw the second exception  because the length less than 0 in org.apache.carbondata.core.indexstore.row.UnsafeDataMapRow#convertToSafeRow\r\n\r\nBe sure to do all of the following checklist to help us incorporate \r\nyour contribution quickly and easily:\r\n\r\n - [x] Any interfaces changed?\r\n No\r\n - [x] Any backward compatibility impacted?\r\n No\r\n - [x] Document update required?\r\nNo\r\n - [x] Testing done\r\n        Please provide details on \r\n        - Whether new unit test cases have been added or why no new tests are required?\r\n        - How it is tested? Please attach test report.\r\n        - Is it a performance related change? Please attach the performance test report.\r\n        - Any additional information to help reviewers in testing this change.\r\n       No\r\n - [x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. \r\nNo"},"comment":{"url":"https://api.github.com/repos/apache/carbondata/issues/comments/391010368","html_url":"https://github.com/apache/carbondata/pull/2318#issuecomment-391010368","issue_url":"https://api.github.com/repos/apache/carbondata/issues/2318","id":391010368,"user":{"login":"CarbonDataQA","id":24402133,"avatar_url":"https://avatars0.githubusercontent.com/u/24402133?v=4","gravatar_id":"","url":"https://api.github.com/users/CarbonDataQA","html_url":"https://github.com/CarbonDataQA","followers_url":"https://api.github.com/users/CarbonDataQA/followers","following_url":"https://api.github.com/users/CarbonDataQA/following{/other_user}","gists_url":"https://api.github.com/users/CarbonDataQA/gists{/gist_id}","starred_url":"https://api.github.com/users/CarbonDataQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarbonDataQA/subscriptions","organizations_url":"https://api.github.com/users/CarbonDataQA/orgs","repos_url":"https://api.github.com/users/CarbonDataQA/repos","events_url":"https://api.github.com/users/CarbonDataQA/events{/privacy}","received_events_url":"https://api.github.com/users/CarbonDataQA/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T14:25:53Z","updated_at":"2018-05-22T14:25:53Z","author_association":"NONE","body":"Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4887/\n"}}
{"actor":{"display_login":"CarbonDataQA"}}