This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git
The following commit(s) were added to refs/heads/master by this push:
new 399dceed5 [tool] Fix the copied table schema missing check bug
399dceed5 is described below
commit 399dceed53b53f23d76b378910979cb26f242830
Author: Yingchun Lai <[email protected]>
AuthorDate: Thu Aug 15 23:51:02 2024 +0800
[tool] Fix the copied table schema missing check bug
Change-Id: I4621756c7e038994fb33261d3b979a7b3304dc49
Reviewed-on: http://gerrit.cloudera.org:8080/21676
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Yingchun Lai <[email protected]>
---
src/kudu/tools/table_scanner.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kudu/tools/table_scanner.cc b/src/kudu/tools/table_scanner.cc
index 415c64ed3..44529c93a 100644
--- a/src/kudu/tools/table_scanner.cc
+++ b/src/kudu/tools/table_scanner.cc
@@ -416,7 +416,7 @@ Status CreateDstTableIfNeeded(const
client::sp::shared_ptr<KuduTable>& src_table
const string& dst_table_name) {
client::sp::shared_ptr<KuduTable> dst_table;
Status s = dst_client->OpenTable(dst_table_name, &dst_table);
- if (!s.IsNotFound()) {
+ if (!s.IsNotFound() && !s.ok()) {
return s;
}