Yingchun Lai has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/20229 )

Change subject: KUDU-1945 Backup/restore for tables with auto incrementing 
columns
......................................................................

KUDU-1945 Backup/restore for tables with auto incrementing columns

This patch adds the ability to backup and restore tables containing
auto-incrementing columns. A simple test case is also added to test
the functionaility.

Without this patch any attempt to
Backup a table with auto-incrementing column will fail with an error
message "auto_incrementing_id is a reserved column name" from
schema.cc.
Restoring a table with auto-incrementing column will result in the
same behavior as with the backup.

Change-Id: I929d54d22c1c938ee67fdda9f4c2bb68c028b4ec
Reviewed-on: http://gerrit.cloudera.org:8080/20084
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Kudu Jenkins
(cherry picked from commit 1bdb0105b1ae64c167f32b67ee9da03825605d9c)
Reviewed-on: http://gerrit.cloudera.org:8080/20229
Reviewed-by: Marton Greber <[email protected]>
Reviewed-by: Yifan Zhang <[email protected]>
Tested-by: Yingchun Lai <[email protected]>
---
M java/kudu-backup-common/src/main/protobuf/backup.proto
M 
java/kudu-backup-common/src/main/scala/org/apache/kudu/backup/TableMetadata.scala
M java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala
M java/kudu-spark/src/test/scala/org/apache/kudu/spark/kudu/KuduTestSuite.scala
M src/kudu/common/schema.cc
5 files changed, 113 insertions(+), 28 deletions(-)

Approvals:
  Marton Greber: Looks good to me, but someone else must approve
  Yifan Zhang: Looks good to me, approved
  Yingchun Lai: Verified

--
To view, visit http://gerrit.cloudera.org:8080/20229
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.17.x
Gerrit-MessageType: merged
Gerrit-Change-Id: I929d54d22c1c938ee67fdda9f4c2bb68c028b4ec
Gerrit-Change-Number: 20229
Gerrit-PatchSet: 3
Gerrit-Owner: Yingchun Lai <[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-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>

Reply via email to