Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CARBONDATA-3101] Fixed dataload failure when a column is dropped and…
… added in partition table Problem: Data load is failing when a column in partition table is dropped and recreated because fieldConverters are created based on schemaOrdinal and this may be different than the order in which data is read from the csv. For example --> columns = nonparcolumn string, parcolumn int Now if the user drops and adds column the nonparcolumn then the fieldConverters would be created in the following order fieldConverters[0] = MeasureFieldConverter fieldConverters[1] = NonDictionaryFieldConverterImpl The data read from the csv would be 'columndata', 1. The conversion for nonPartition column would fail i this case. Solution: Add the partition column to the last while doing alter add column and creating fieldConverters. This closes #2923
- Loading branch information
1 parent
79fc97a
commit c5de10c
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters