GitHub user photogamerun opened a pull request:
https://github.com/apache/carbondata/pull/2178 show table in presto doesn't initialized load carbon metadata 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/photogamerun/carbondata-1 master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2178.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 #2178 ---- commit 71fe3a32ea010e28a280672172535fcf458ee6f9 Author: photogamerun <27547073@...> Date: 2018-04-17T09:18:00Z fix the firstly show table without load hdfs metdata file commit 717ba0e23779c069fbf9a67c6224a07be2503b3a Author: photogamerun <27547073@...> Date: 2018-04-17T09:21:05Z fix the firstly show table without load hdfs metdata file ---- --- |
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Can one of the admins verify this patch? --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Can one of the admins verify this patch? --- |
In reply to this post by qiuchenjian-2
Github user xubo245 commented on the issue:
https://github.com/apache/carbondata/pull/2178 Please add jira number in title. Can you provide more infomation? --- |
In reply to this post by qiuchenjian-2
Github user anubhav100 commented on the issue:
https://github.com/apache/carbondata/pull/2178 Please add the steps to reproduce in PR description @photogamerun --- |
In reply to this post by qiuchenjian-2
Github user ravipesala commented on the issue:
https://github.com/apache/carbondata/pull/2178 Can one of the admins verify this patch? --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Can one of the admins verify this patch? --- |
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on the issue:
https://github.com/apache/carbondata/pull/2178 @photogamerun please create a jira ticket for this pr and please provide more detail about this pr. --- |
In reply to this post by qiuchenjian-2
Github user photogamerun commented on the issue:
https://github.com/apache/carbondata/pull/2178 firstly let me explain this change private Set<String> updateTableList(String schemaName, String user) { updateCarbonFile(user); private CarbonFile carbonFileList; is initially null only this method updateCarbonFile give the value to carbonFileList so once user call updateTableList(user) without initilize carbonFileList it will throw nullpointexception in updateTableList method List<CarbonFile> schema = Stream.of(carbonFileList.listFiles()).filter(a -> schemaName.equals(a.getName())) .collect(Collectors.toList()); --- |
In reply to this post by qiuchenjian-2
Github user photogamerun commented on the issue:
https://github.com/apache/carbondata/pull/2178 请çä¸ Files changed ä¸çæ件çæ¹å(please check the diff in Files changed) åé¢çåå¤æ¯å¯¹äºç¬¬ä¸ä¸ªæ¹æ³updateTableList éè¦å¨é¦å è°ç¨updateCarbonFile æ¹æ³å»åå§åcarbonFileListè¿ä¸ªå±æ§ å¦åï¼ä¼åºç©ºæé(the above reply is for the first change we need to call updateCarbonFile before the logic is executed in updateTableList method ) --- |
In reply to this post by qiuchenjian-2
Github user photogamerun commented on the issue:
https://github.com/apache/carbondata/pull/2178 第äºä¸ªé®é¢ change æ¯è¿æ ·ç parseCarbonMetadata è¿ä¸ªæ¹æ³æ们åç°åå¨å¤çº¿ç¨å»è°ç¨ å½æ¶æäºä¸ä¸ªè¿æ ·çå¼å¸¸ä¿¡æ¯ tableCacheModel.carbonTable should not be null åæ¥éè¿åæ代ç åç°å¹¶å模å¼ä¸ï¼tableCacheModel.carbonTable ä¸çcarbonTable 对象å¨æ²¡æè·åå 就已ç»è¢«å¦å¤ç线ç¨è·å并ä¸è¯»åäºã æ以åå¨è¯»ä¸å°è¡¨ä¿¡æ¯çbug æ以å¨ä¹åå®ç°ä¸æè¿æ ·ä¸ä¸ªé®é¢parseCarbonMetadata ä¸ carbonCache.get().put(table, cache);å è°ç¨ï¼ ç¶åèµ°äºä¸ä¸ªå é»è¾å对cacheä¸çå±æ§åèµå¼ cache.tableInfo = wrapperTableInfo; cache.carbonTable = CarbonMetadata.getInstance() .getCarbonTable(cache.carbonTableIdentifier.getTableUniqueName()); è¿æ ·åå¨ä¸ä¸ªä¸¥éé®é¢ï¼å¨æ¾å ¥cache åå±æ§èµå¼çè¿ä¸ªæ¶é´æ®µå ã ä¸æ¦ææ¹æ³è°ç¨carbonCache.get().get(table); æ¯å¦è¿ä¸ªæ¹æ³ public List<CarbonLocalInputSplit> getInputSplits2(CarbonTableCacheModel tableCacheModel, Expression filters, Expression partitionFilters, ConnectorSession session) { private void removeTableFromCache(SchemaTableName table) { ä»ä»¬å¨åæ¶æ¶é´é½ä¼è°ç¨ carbonCache.get().get(table);继èæ¿åå é¨å±æ§carbonTable 并è°ç¨å ¶api è¿ä¸ªæ¶é´å ¶å®carbonTable è¿ä¸ªå±æ§æ¯null è°ç¨å ¶apiä¸å®ä¼åºé®é¢ --- |
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on the issue:
https://github.com/apache/carbondata/pull/2178 add to whitelist --- |
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2178#discussion_r200978774 --- Diff: integration/presto/src/main/java/org/apache/carbondata/presto/impl/CarbonTableReader.java --- @@ -314,7 +315,7 @@ private CarbonTable loadTableMetadata(SchemaTableName schemaTableName) { for (SchemaTableName table : tableList) { if (!table.equals(schemaTableName)) continue; - return parseCarbonMetadata(table); + return parseCarbonMetadata(table).carbonTable; --- End diff -- why here need to add ".carbonTable"? Inside parseCarbonMetadata(table), already have the below code ð result = cache.carbonTable; --- |
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2178#discussion_r200981549 --- Diff: integration/presto/src/main/java/org/apache/carbondata/presto/impl/CarbonTableReader.java --- @@ -325,14 +326,23 @@ private CarbonTable loadTableMetadata(SchemaTableName schemaTableName) { * @param table name of the given table. * @return the CarbonTable instance which contains all the needed metadata for a table. --- End diff -- please update the comment info also. now is not returning CarbonTable instance. --- |
In reply to this post by qiuchenjian-2
Github user photogamerun commented on the issue:
https://github.com/apache/carbondata/pull/2178 please refer to https://github.com/apache/carbondata/pull/2468 --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/6957/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/6961/ --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5741/ --- |
In reply to this post by qiuchenjian-2
Github user photogamerun closed the pull request at:
https://github.com/apache/carbondata/pull/2178 --- |
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:
https://github.com/apache/carbondata/pull/2178 Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/5750/ --- |
Free forum by Nabble | Edit this page |