Fengling Wang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/9834


Change subject: KUDU-2303: Add ignoreNull option to upsertRows
......................................................................

KUDU-2303: Add ignoreNull option to upsertRows

This patch adds the ignoreNull option to upsertRows so that users can upsert 
only non-Null
columns and leave the rest of columns unchanged.

This feature is useful when users use Spark streaming to process JSON and 
upsert to Kudu,
where missing column values from JSON are set to NULL, resulting in some 
existing row
values being upserted to Null, which is not desired.

Change-Id: Ide908ea29f572849eca0ba850ee197c1b22a07c8
---
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/KuduContext.scala
M java/kudu-spark/src/main/scala/org/apache/kudu/spark/kudu/OperationType.scala
M 
java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduContextTest.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/TestContext.scala
4 files changed, 44 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/34/9834/1
--
To view, visit http://gerrit.cloudera.org:8080/9834
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ide908ea29f572849eca0ba850ee197c1b22a07c8
Gerrit-Change-Number: 9834
Gerrit-PatchSet: 1
Gerrit-Owner: Fengling Wang <[email protected]>

Reply via email to