[GitHub] carbondata pull request #2908: [CARBONDATA-3087] Improve DESC FORMATTED outp...

classic Classic list List threaded Threaded
37 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
Github user zzcclp commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    @jackylk it now looks good to me, you added database and table name in the latest commit , right?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1352/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1562/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9610/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1385/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1386/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1596/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9644/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1391/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed  with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9649/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1601/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/1401/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/1611/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    Build Success with Spark 2.3.1, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/9659/



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata issue #2908: [CARBONDATA-3087] Improve DESC FORMATTED output

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user xuchuanyin commented on the issue:

    https://github.com/apache/carbondata/pull/2908
 
    LGTM


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2908: [CARBONDATA-3087] Improve DESC FORMATTED outp...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user asfgit closed the pull request at:

    https://github.com/apache/carbondata/pull/2908


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] carbondata pull request #2908: [CARBONDATA-3087] Improve DESC FORMATTED outp...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2908#discussion_r233759450
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/CarbonTable.java ---
    @@ -1214,16 +1232,22 @@ public String getFormat() {
         String tableName = tableInfo.getFactTable().getTableName();
         String cacheColumns =
             tableInfo.getFactTable().getTableProperties().get(CarbonCommonConstants.COLUMN_META_CACHE);
    -    if (null != cacheColumns && !cacheColumns.isEmpty()) {
    -      String[] cachedCols = cacheColumns.split(",");
    -      for (String column : cachedCols) {
    -        CarbonColumn carbonColumn = getColumnByName(tableName, column);
    -        if (null != carbonColumn && !carbonColumn.isInvisible()) {
    -          cachedColsList.add(carbonColumn.getColName());
    +    if (null != cacheColumns) {
    +      if (!cacheColumns.isEmpty()) {
    +        String[] cachedCols = cacheColumns.split(",");
    +        for (String column : cachedCols) {
    +          CarbonColumn carbonColumn = getColumnByName(tableName, column);
    +          if (null != carbonColumn && !carbonColumn.isInvisible()) {
    +            cachedColsList.add(carbonColumn.getColName());
    +          }
             }
    +        return cachedColsList;
    +      } else {
    +        return new LinkedList<>();
    --- End diff --
   
    I think it is not required to create `LinkedList` here. we can return `cachedColsList` directly


---
12