Github user KanakaKumar commented on the issue: https://github.com/apache/carbondata/pull/2804 I think we can enhance the existing APIs itself to take folder path and then list from the first available data file or index file.. Adding many APIs in SDK will cause confusion for same functionality. I think we can unify to single method like getSchemaFromPath() and return the schema irrespective of index file or data file or multiple subfolders.
---