Skip to content

Commit

Permalink
fix: adapt query_bulk_load_response is_bulk_loading filed optional (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong committed Jan 28, 2022
1 parent 49ddc67 commit 08fbfb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shell/commands/bulk_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ bool query_bulk_load_status(command_executor *e, shell_context *sc, arguments ar
tp_summary.add_row_name_and_data("partition_bulk_load_status",
get_short_status(resp.partitions_status[pidx]));
}
tp_summary.add_row_name_and_data("is_bulk_loading", resp.is_bulk_loading ? "YES" : "NO");
bool is_bulk_loading = resp.__isset.is_bulk_loading ? resp.is_bulk_loading : false;
tp_summary.add_row_name_and_data("is_bulk_loading", is_bulk_loading ? "YES" : "NO");
tp_summary.add_row_name_and_data("app_bulk_load_status", get_short_status(resp.app_status));
if (bulk_load_status::BLS_FAILED == resp.app_status) {
tp_summary.add_row_name_and_data("bulk_load_err", resp.err.to_string());
Expand Down

0 comments on commit 08fbfb3

Please sign in to comment.