[CARBONDATA-4329] Fix multiple issues with External table