MCPcopy Create free account
hub / github.com/apache/arrow / Validate

Method Validate

cpp/src/arrow/record_batch.cc:193–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 Status Validate() const override {
194 if (static_cast<int>(columns_.size()) != schema_->num_fields()) {
195 return Status::Invalid("Number of columns did not match schema");
196 }
197 return RecordBatch::Validate();
198 }
199
200 const std::shared_ptr<Device::SyncEvent>& GetSyncEvent() const override {
201 return sync_event_;

Callers

nothing calls this directly

Calls 4

ValidateFunction · 0.85
InvalidFunction · 0.70
sizeMethod · 0.45
num_fieldsMethod · 0.45

Tested by

no test coverage detected