Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/20083 )
Change subject: [client] KUDU-1945 Add UPSERT support ...................................................................... Patch Set 13: (1 comment) http://gerrit.cloudera.org:8080/#/c/20083/13/src/kudu/client/session-internal.cc File src/kudu/client/session-internal.cc: http://gerrit.cloudera.org:8080/#/c/20083/13/src/kudu/client/session-internal.cc@408 PS13, Line 408: case KuduWriteOperation::INSERT: : case KuduWriteOperation::INSERT_IGNORE: : RETURN_NOT_OK_ADD_ERROR(CheckAutoIncrementingColumnForInsert, op, error_collector_); : RETURN_NOT_OK_ADD_ERROR(CheckForNonNullableColumns, op, error_collector_); : break; : case KuduWriteOperation::UPSERT: : RETURN_NOT_OK_ADD_ERROR(CheckForNonNullableColumns, op, error_collector_); : case KuduWriteOperation::UPSERT_IGNORE: : case KuduWriteOperation::UPDATE: : case KuduWriteOperation::UPDATE_IGNORE: : RETURN_NOT_OK_ADD_ERROR(CheckAutoIncrementingColumnForNonInsert, op, error_collector_); : break; > Maybe I'm missing something here, but according to my current understanding Yes, that is the logic above except we do CheckForNonNullableColumns() for INSERT, INSERT_IGNORE and UPSERT operations. -- To view, visit http://gerrit.cloudera.org:8080/20083 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I27a95e3a6b1d1b584cad849978313b3c8222cd3d Gerrit-Change-Number: 20083 Gerrit-PatchSet: 13 Gerrit-Owner: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Marton Greber <[email protected]> Gerrit-Comment-Date: Mon, 26 Jun 2023 19:36:40 +0000 Gerrit-HasComments: Yes
