GitHub user jackylk opened a pull request:

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

    [CARBONDATA-3087] Improve DESC FORMATTED output

    Change output of DESC FORMATTED to:
    
    ```
    
+----------------------------+-------------------------------------------------------------------------------------+-------+
    |col_name                    |data_type                                     
                                       |comment|
    
+----------------------------+-------------------------------------------------------------------------------------+-------+
    |shortfield                  |smallint                                      
                                       |null   |
    |intfield                    |int                                           
                                       |null   |
    |bigintfield                 |bigint                                        
                                       |null   |
    |doublefield                 |double                                        
                                       |null   |
    |stringfield                 |string                                        
                                       |null   |
    |timestampfield              |timestamp                                     
                                       |null   |
    |decimalfield                |decimal(18,2)                                 
                                       |null   |
    |datefield                   |date                                          
                                       |null   |
    |charfield                   |string                                        
                                       |null   |
    |floatfield                  |double                                        
                                       |null   |
    |                            |                                              
                                       |       |
    |## Table Basic Information  |                                              
                                       |       |
    |Comment                     |                                              
                                       |       |
    |Path                        
|/Users/jacky/code/carbondata/examples/spark2/target/store/default/carbonsession_table|
       |
    |Table Block Size            |1024 MB                                       
                                       |       |
    |Table Blocklet Size         |64 MB                                         
                                       |       |
    |Streaming                   |false                                         
                                       |       |
    |Flat Folder                 |false                                         
                                       |       |
    |Bad Record Path             |                                              
                                       |       |
    |Min Input Per Node          |0.0B                                          
                                       |       |
    |                            |                                              
                                       |       |
    |## Index Information        |                                              
                                       |       |
    |Sort Scope                  |LOCAL_SORT                                    
                                       |       |
    |Sort Columns                
|stringfield,timestampfield,datefield,charfield                                 
      |       |
    |Index Cache Level           |BLOCK                                         
                                       |       |
    |Cached Index Columns        |All columns                                   
                                       |       |
    |                            |                                              
                                       |       |
    |## Encoding Information     |                                              
                                       |       |
    |Local Dictionary Enabled    |true                                          
                                       |       |
    |Local Dictionary Threshold  |10000                                         
                                       |       |
    |Local Dictionary Include    |stringfield                                   
                                       |       |
    |                            |                                              
                                       |       |
    |## Compaction Information   |                                              
                                       |       |
    |MAJOR_COMPACTION_SIZE       |1024                                          
                                       |       |
    |AUTO_LOAD_MERGE             |false                                         
                                       |       |
    |COMPACTION_LEVEL_THRESHOLD  |4,3                                           
                                       |       |
    |COMPACTION_PRESERVE_SEGMENTS|0                                             
                                       |       |
    |ALLOWED_COMPACTION_DAYS     |0                                             
                                       |       |
    |                            |                                              
                                       |       |
    |## Dynamic Information      |                                              
                                       |       |
    |Table Data Size             |2.93KB                                        
                                       |       |
    |Table Index Size            |1.53KB                                        
                                       |       |
    |Last Update Time            |Wed Nov 07 17:16:01 CST 2018                  
                                       |       |
    
+----------------------------+-------------------------------------------------------------------------------------+-------+
    ```
    
    
     - [ ] 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/jackylk/incubator-carbondata desc

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2908.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 #2908
    
----
commit 5e60f38a5140477277e17452877acf28d63a1b2a
Author: Jacky Li <jacky.likun@...>
Date:   2018-11-08T12:11:28Z

    improve desc

----


---

Reply via email to