GitHub user manishgupta88 opened a pull request: https://github.com/apache/carbondata/pull/2898
[WIP] Fixed query failure in fileformat due stale cache issue **Problem** While using FileFormat API, if a table created, dropped and then recreated with the same name the query fails because of schema mismatch issue **Analysis** In case of carbondata used through FileFormat API, once a table is dropped and recreated with the same name again then because the dataMap contains the stale carbon table schema mismatch exception is thrown **Solution** To avoid such scenarios it is always better to update the carbon table object retrieved - [ ] Any interfaces changed? No - [ ] Any backward compatibility impacted? No - [ ] Document update required? No - [ ] Testing done Added UT to verify the scenario - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. NA You can merge this pull request into a Git repository by running: $ git pull https://github.com/manishgupta88/carbondata stale_carbon_table Alternatively you can review and apply these changes as the patch at: https://github.com/apache/carbondata/pull/2898.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 #2898 ---- commit 2b6789ee5464f90f43ecac3654e58424257eaa29 Author: m00258959 <manish.gupta@...> Date: 2018-11-05T10:15:46Z Fixed select query failure due to stale carbonTable in dataMapFactory class ---- ---