From 51ad321b84cf211efd63415a1052e2f72a3415c5 Mon Sep 17 00:00:00 2001 From: zclllhhjj Date: Thu, 28 Nov 2024 18:24:16 +0800 Subject: [PATCH] [Enhancement](function) Print exact column name when execute non_nullable failed (#44679) ### What problem does this PR solve? Before it print the column type. now more precisely print the column name --- be/src/vec/functions/function_nullables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/vec/functions/function_nullables.cpp b/be/src/vec/functions/function_nullables.cpp index 88bb2b38fab65c..91bce24f48fc8b 100644 --- a/be/src/vec/functions/function_nullables.cpp +++ b/be/src/vec/functions/function_nullables.cpp @@ -96,7 +96,7 @@ class FunctionNonNullable : public IFunction { if (col_null->has_null()) [[unlikely]] { return Status::InvalidArgument( "There's NULL value in column {} which is illegal for non_nullable", - data.column->get_name()); + data.name); } const ColumnPtr& nest_col = col_null->get_nested_column_ptr(); block.replace_by_position(result, nest_col->clone_resized(nest_col->size()));