jackylk opened a new pull request #3424: [CARBONDATA-3559] Support adding carbon files into CarbonData table
URL:
https://github.com/apache/carbondata/pull/3424
Since adding parquet/orc files into CarbonData table are supported now, adding carbon files should be supported as well
This PR supports usage as below:
```
CREATE TABLE source (
userId string,
message string
) USING carbon/parquet/orc;
# bulk loading into source table for many times
INSERT INTO source ...
INSERT INTO source ...
CREATE TABLE target (
userId string,
message string
) USING carbondata;
# bulk loading into target table, creating internal segments
INSERT INTO target ...
INSERT INTO target ...
# add files from source table as external segments to target table
ALTER TABLE target ADD SEGMENT
OPTIONS (path='path_to_files', format='carbon/parquet/orc');
# query target table will read files from both internal segment and external segment
SELECT * FROM target;
```
- [ ] 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.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services