ShreelekhyaG opened a new pull request #4208:
URL: https://github.com/apache/carbondata/pull/4208


    ### Why is this PR needed?
    With spark 3.1, we can create a partition table by giving partition columns 
from schema.
    Like below example:
   `create table partitionTable(c1 int, c2 int, v1 string, v2 string) stored as 
carbondata partitioned by (v2,c2)`
   
   In cluster/ with carbon session, when we create partition table with above 
syntax it is creating normal table with no partitions.
    
    ### What changes were proposed in this PR?
   `partitionByStructFields` is empty when we directly give partition column 
names. So it was not creating a partition table. Made changes to identify the 
partition column names and get the struct field and datatype info from table 
columns.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - Yes, tested in cluster.
   
       
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to