Github user kunal642 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2207#discussion_r195635301 --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/CarbonTable.java --- @@ -1007,6 +1007,19 @@ public boolean canAllow(CarbonTable carbonTable, TableOperation operation) { return indexColumn; } + /** + * Whether this table supports flat folder structure, it means all data files directly written + * under table path + */ + public boolean isSupportFlatFolder() { + boolean supportFlatFolder = Boolean.parseBoolean(CarbonCommonConstants.DEFAULT_FLAT_FOLDER); + Map<String, String> tblProps = getTableInfo().getFactTable().getTableProperties(); + if (tblProps.containsKey(CarbonCommonConstants.FLAT_FOLDER)) { --- End diff -- Can the user set FLAT_FOLDER property in CarbonProperties(applicable for all tables) instead of specifying for each table??
---