From fc680af5901bf22181534d2f73e8a18653a57877 Mon Sep 17 00:00:00 2001 From: tushar22199 Date: Sun, 15 Nov 2026 20:56:08 +0530 Subject: [PATCH] DOC: clarify RecordBatch schema validation --- cpp/src/arrow/record_batch.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cpp/src/arrow/record_batch.h b/cpp/src/arrow/record_batch.h index d7c6de1ed3d7..76e4224de9d2 100644 --- a/cpp/src/arrow/record_batch.h +++ b/cpp/src/arrow/record_batch.h @@ -42,6 +42,10 @@ class ARROW_EXPORT RecordBatch { public: virtual ~RecordBatch() = default; + /// The types of the provided columns are not validated against the schema + /// during construction. Call Validate() or ValidateFull() to check that + /// the column types match the schema. + /// /// \param[in] schema The record batch schema /// \param[in] num_rows length of fields in the record batch. Each array /// should have the same length as num_rows @@ -58,6 +62,10 @@ class ARROW_EXPORT RecordBatch { /// /// This class is intended for internal use, or advanced users. /// + /// The types of the provided columns are not validated against the schema + /// during construction. Call Validate() or ValidateFull() to check that + /// the column types match the schema. + /// /// \param schema the record batch schema /// \param num_rows the number of semantic rows in the record batch. This /// should be equal to the length of each field