@@ -354,7 +354,7 @@ arrow::Result<duckdb::unique_ptr<duckdb::QueryResult>> WebDB::Connection::Execut
354354 return arrow::Status{arrow::StatusCode::KeyError, " No prepared statement found with ID" };
355355
356356 rapidjson::Document args_doc;
357- rapidjson::ParseResult ok = args_doc.Parse (args_json.begin (), args_json.size ());
357+ rapidjson::ParseResult ok = args_doc.Parse (args_json.data (), args_json.size ());
358358 if (!ok) return arrow::Status{arrow::StatusCode::Invalid, rapidjson::GetParseError_En (ok.Code ())};
359359 if (!args_doc.IsArray ()) return arrow::Status{arrow::StatusCode::Invalid, " Arguments must be given as array" };
360360
@@ -409,7 +409,7 @@ arrow::Status WebDB::Connection::ClosePreparedStatement(size_t statement_id) {
409409arrow::Status WebDB::Connection::CreateScalarFunction (std::string_view def_json) {
410410 // Read the function definiton
411411 rapidjson::Document def_doc;
412- def_doc.Parse (def_json.begin (), def_json.size ());
412+ def_doc.Parse (def_json.data (), def_json.size ());
413413 auto def = duckdb::make_shared_ptr<UDFFunctionDeclaration>();
414414 ARROW_RETURN_NOT_OK (def->ReadFrom (def_doc));
415415
@@ -550,7 +550,7 @@ arrow::Status WebDB::Connection::InsertArrowFromIPCStream(nonstd::span<const uin
550550 // / We deliberately do this BEFORE creating the ipc stream.
551551 // / This ensures that we always have valid options.
552552 rapidjson::Document options_doc;
553- options_doc.Parse (options_json.begin (), options_json.size ());
553+ options_doc.Parse (options_json.data (), options_json.size ());
554554 ArrowInsertOptions options;
555555 ARROW_RETURN_NOT_OK (options.ReadFrom (options_doc));
556556 arrow_insert_options_ = options;
@@ -596,7 +596,7 @@ arrow::Status WebDB::Connection::InsertCSVFromPath(std::string_view path, std::s
596596 try {
597597 // / Read table options
598598 rapidjson::Document options_doc;
599- options_doc.Parse (options_json.begin (), options_json.size ());
599+ options_doc.Parse (options_json.data (), options_json.size ());
600600 csv::CSVInsertOptions options;
601601 ARROW_RETURN_NOT_OK (options.ReadFrom (options_doc));
602602
@@ -664,7 +664,7 @@ arrow::Status WebDB::Connection::InsertJSONFromPath(std::string_view path, std::
664664 try {
665665 // / Read table options
666666 rapidjson::Document options_doc;
667- options_doc.Parse (options_json.begin (), options_json.size ());
667+ options_doc.Parse (options_json.data (), options_json.size ());
668668 json::JSONInsertOptions options;
669669 ARROW_RETURN_NOT_OK (options.ReadFrom (options_doc));
670670
0 commit comments