Github user ajantha-bhat commented on the issue:
https://github.com/apache/carbondata/pull/2804
@xubo245 : In that case you can implement,
String getFirstCarbonFile(path, ExtenstionType)
and pass it to existing method. ReadSchemaFromFile() must only read it. It
should not do any extra work.---
