GitHub user jackylk opened a pull request: https://github.com/apache/carbondata/pull/1571
[CARBONDATA-1811] [CTAS] Use TableInfo and StructType when creating table This PR contains refactory for CarbonCreateTableCommand and CarbonAlterTableAddColumnCommand, they should use TableInfo and StructType to create the table. This PR is required to implement CREATE TABLE AS SELECT syntax. - [X] Any interfaces changed? No - [X] Any backward compatibility impacted? No - [X] Document update required? NO - [X] Testing done Yes - [X] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. This is refactor of parser and commands, it is impossible to break into smaller sub task. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jackylk/incubator-carbondata tableinfo_addcolumn2 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/1571.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 #1571 ---- commit b293303f6b3f80ecaf0db1bbad95a3015d3db8c3 Author: Jacky Li <jacky.li...@qq.com> Date: 2017-11-26T17:11:33Z use TableInfo rebase ---- ---