Github user ajantha-bhat commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2433#discussion_r199370193
--- Diff:
store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java
---
@@ -284,6 +286,28 @@ public CarbonWriterBuilder withBlockSize(int
blockSize) {
return this;
}
+ /**
+ * @param localDictionaryThreshold is localDictionaryThreshold,default
is 1000
+ * @return
+ */
+ public CarbonWriterBuilder localDictionaryThreshold(int
localDictionaryThreshold) {
+ if (localDictionaryThreshold <= 0) {
+ throw new IllegalArgumentException("blockSize should be between
greater than 0");
--- End diff --
please change the error message accordingly. It is not a block size.
---