Github user QiangCai commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/3063#discussion_r246979073
--- Diff:
core/src/main/java/org/apache/carbondata/core/util/CarbonProperties.java ---
@@ -1364,6 +1365,29 @@ public int getHeapMemoryPoolingThresholdBytes() {
return thresholdSize;
}
+ public int getRangeColumnScaleFactor() {
+ boolean isValid = true;
+ int scaleFactor = 1;
+ try {
+ scaleFactor =
Integer.parseInt(CarbonProperties.getInstance().getProperty(
+ CarbonCommonConstants.CARBON_RANGE_COLUMN_SCALE_FACTOR,
+ CarbonCommonConstants.CARBON_RANGE_COLUMN_SCALE_FACTOR_DEFAULT));
+ if (scaleFactor < 1 || scaleFactor > 300) {
+ isValid = false;
+ }
+ } catch (NumberFormatException ex) {
+ isValid = false;
--- End diff --
accept
---