You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by qi...@apache.org on 2019/01/04 10:15:55 UTC
carbondata git commit: [CARBONDATA-3216] Fix enableLocalDictionary
with false issue in CSDK
Repository: carbondata
Updated Branches:
refs/heads/master 81bf02f54 -> 9fa045d40
[CARBONDATA-3216] Fix enableLocalDictionary with false issue in CSDK
This closes #3035
Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/9fa045d4
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/9fa045d4
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/9fa045d4
Branch: refs/heads/master
Commit: 9fa045d407aab57584a27ed0fd2c9bb529d89b2f
Parents: 81bf02f
Author: xubo245 <xu...@huawei.com>
Authored: Sat Dec 29 11:34:41 2018 +0800
Committer: QiangCai <qi...@qq.com>
Committed: Fri Jan 4 18:11:49 2019 +0800
----------------------------------------------------------------------
store/CSDK/src/CarbonWriter.cpp | 3 ---
store/CSDK/test/main.cpp | 4 +++-
2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/carbondata/blob/9fa045d4/store/CSDK/src/CarbonWriter.cpp
----------------------------------------------------------------------
diff --git a/store/CSDK/src/CarbonWriter.cpp b/store/CSDK/src/CarbonWriter.cpp
index 6ce5d7d..243e533 100644
--- a/store/CSDK/src/CarbonWriter.cpp
+++ b/store/CSDK/src/CarbonWriter.cpp
@@ -291,9 +291,6 @@ void CarbonWriter::localDictionaryThreshold(int localDictionaryThreshold) {
}
void CarbonWriter::enableLocalDictionary(bool enableLocalDictionary) {
- if (enableLocalDictionary == NULL) {
- throw std::runtime_error("enableLocalDictionary parameter can't be NULL.");
- }
checkBuilder();
jclass carbonWriterBuilderClass = jniEnv->GetObjectClass(carbonWriterBuilderObject);
jmethodID methodID = jniEnv->GetMethodID(carbonWriterBuilderClass, "enableLocalDictionary",
http://git-wip-us.apache.org/repos/asf/carbondata/blob/9fa045d4/store/CSDK/test/main.cpp
----------------------------------------------------------------------
diff --git a/store/CSDK/test/main.cpp b/store/CSDK/test/main.cpp
index 76c0e35..10a6599 100644
--- a/store/CSDK/test/main.cpp
+++ b/store/CSDK/test/main.cpp
@@ -546,7 +546,7 @@ bool testWriteData(JNIEnv *env, char *path, int argc, char *argv[]) {
writer.withCsvInput(jsonSchema);
writer.withLoadOption("complex_delimiter_level_1", "#");
writer.writtenBy("CSDK");
- writer.taskNo(185);
+ writer.taskNo(15541554.81);
writer.withThreadSafe(1);
writer.uniqueIdentifier(1549911814000000);
writer.withBlockSize(1);
@@ -709,6 +709,7 @@ bool testWithTableProperty(JNIEnv *env, char *path, int argc, char **argv) {
writer.outputPath(path);
writer.withCsvInput(jsonSchema);
writer.withTableProperty("sort_columns", "shortField");
+ writer.enableLocalDictionary(false);
writer.writtenBy("CSDK");
if (argc > 3) {
writer.withHadoopConf("fs.s3a.access.key", argv[1]);
@@ -764,6 +765,7 @@ bool testSortBy(JNIEnv *env, char *path, int argc, char **argv) {
writer.outputPath(path);
writer.withCsvInput(jsonSchema);
writer.sortBy(1, sort);
+ writer.enableLocalDictionary(NULL);
writer.writtenBy("CSDK");
if (argc > 3) {
writer.withHadoopConf("fs.s3a.access.key", argv[1]);