diff --git a/java/src/main/native/src/TableJni.cpp b/java/src/main/native/src/TableJni.cpp index 85fbe3cf4bc..43616ea413d 100644 --- a/java/src/main/native/src/TableJni.cpp +++ b/java/src/main/native/src/TableJni.cpp @@ -263,8 +263,7 @@ class native_arrow_ipc_writer_handle final { columns_meta.push_back(build_one_column_meta(*itr, idx)); } if (idx < column_names.size()) { - throw cudf::jni::jni_exception( - "The number of column names is bigger than the columns number in the table."); + throw cudf::jni::jni_exception("Too many column names are provided."); } } return columns_meta;