Github user ajantha-bhat commented on the issue:
https://github.com/apache/carbondata/pull/2988
@Shubh18s : I have checked the code,
all the column names are stored without trim in SDK. But long_string_columns table properties is having trim. column name has string without trim but properties have string with trim. Hence the schema mismatch.
After this change, sort_columns and invertedIndexFor are affected.
As CarbonWriterBuilder.sortBy() is exposed to user, here also trim is not there as per previous code. so add trim() here also. similar changes in CarbonWriterBuilder.invertedIndexFor()
---