
From: Wenkai Lin <linwenkai6@hisilicon.com> When key empty column is NULL, uadk should return error. Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com> Signed-off-by: Qi Tao <taoqi10@huawei.com> --- wd_join_gather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wd_join_gather.c b/wd_join_gather.c index 454e40e9..92a7c407 100644 --- a/wd_join_gather.c +++ b/wd_join_gather.c @@ -226,7 +226,7 @@ static int check_key_cols_info(struct wd_join_gather_sess_setup *setup) for (i = 0; i < table->build_key_cols_num; i++) { if (!build[i].has_empty) { WD_ERR("invalid: key col has no empty data! col: %u\n", i); - return ret; + return -WD_EINVAL; } ret = check_col_data_info(build[i].data_type, build[i].data_info); if (ret) { -- 2.33.0