From e44ce5db503e1cd4b386c556717e1310e4cd37ab Mon Sep 17 00:00:00 2001 From: Mark Raasveldt Date: Tue, 15 Oct 2024 18:39:52 +0200 Subject: [PATCH] Arrow list buffer - add suggestion to error message --- src/include/duckdb/common/arrow/appender/list_data.hpp | 3 ++- src/include/duckdb/common/arrow/appender/list_view_data.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/duckdb/common/arrow/appender/list_data.hpp b/src/include/duckdb/common/arrow/appender/list_data.hpp index 0c2a1de6cafc..bd7e8b6f7fc8 100644 --- a/src/include/duckdb/common/arrow/appender/list_data.hpp +++ b/src/include/duckdb/common/arrow/appender/list_data.hpp @@ -74,7 +74,8 @@ struct ArrowListData { (uint64_t)last_offset + list_length > NumericLimits::Maximum()) { throw InvalidInputException( "Arrow Appender: The maximum combined list offset for regular list buffers is " - "%u but the offset of %lu exceeds this.", + "%u but the offset of %lu exceeds this.\n* SET arrow_large_buffer_size=true to use large list " + "buffers", NumericLimits::Maximum(), last_offset); } last_offset += list_length; diff --git a/src/include/duckdb/common/arrow/appender/list_view_data.hpp b/src/include/duckdb/common/arrow/appender/list_view_data.hpp index 889e2614f16f..f75c5c3ed74e 100644 --- a/src/include/duckdb/common/arrow/appender/list_view_data.hpp +++ b/src/include/duckdb/common/arrow/appender/list_view_data.hpp @@ -75,7 +75,8 @@ struct ArrowListViewData { (uint64_t)last_offset + list_length > NumericLimits::Maximum()) { throw InvalidInputException( "Arrow Appender: The maximum combined list offset for regular list buffers is " - "%u but the offset of %lu exceeds this.", + "%u but the offset of %lu exceeds this.\n* SET arrow_large_buffer_size=true to use large list " + "buffers", NumericLimits::Maximum(), last_offset); } offset_data[offset_idx] = last_offset;