VenuReddy2103 opened a new pull request #3760:
URL: https://github.com/apache/carbondata/pull/3760
### Why is this PR needed?
Insert into table select from another table throws exception for spatial
tables. NoSuchElementException exception is thrown with 'mygeohash' column.
### What changes were proposed in this PR?
- Excluded spatial columns during getReArrangedIndexAndSelectedSchema. And
have set the carbonLoadModel.setIndexColumnsPresent if spatial columns are
present during rearranging.
- If the target spatial table has sort_scope configured as global-sort, have
made the insert flow to go through `loadDataFrame()` instead of
`insertDataUsingGlobalSortWithInternalRow()` in
CarbonDataRDDFactory.loadCarbonData(). This ensures that it goes through
existing load without Conversion Step and spatial column values are regenerated
in the flow.
- Added testcases for
1. insert into table without sort_scope configuration.
2. insert into table with sort_scope configuration.
3. Load data to table with partition.
### Does this PR introduce any user interface change?
- No
### Is any new testcase added?
- Yes
----------------------------------------------------------------
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:
[email protected]