◆ ~ArrowArrayStreamWrapper()
| duckdb::ArrowArrayStreamWrapper::~ArrowArrayStreamWrapper |
( |
| ) |
|
|
virtual |
45707 {
45708 if (arrow_array_stream.release) {
45709 arrow_array_stream.release(&arrow_array_stream);
45710 D_ASSERT(!arrow_array_stream.release);
45711 }
45712}
◆ ArrowArrayStreamWrapper()
| duckdb::ArrowArrayStreamWrapper::ArrowArrayStreamWrapper |
( |
| ) |
|
|
inline |
11401 {
11402 arrow_array_stream.release = nullptr;
11403 }
◆ GetSchema()
45714 {
45715 D_ASSERT(arrow_array_stream.get_schema);
45716
45717 if (arrow_array_stream.get_schema(&arrow_array_stream, &schema.arrow_schema)) {
45718 throw InvalidInputException("arrow_scan: get_schema failed(): %s", string(GetError()));
45719 }
45720 if (!schema.arrow_schema.release) {
45721 throw InvalidInputException("arrow_scan: released schema passed");
45722 }
45723 if (schema.arrow_schema.n_children < 1) {
45724 throw InvalidInputException("arrow_scan: empty schema passed");
45725 }
45726
45727}
◆ GetNextChunk()
45729 {
45730 auto current_chunk = make_shared_ptr<ArrowArrayWrapper>();
45731 if (arrow_array_stream.get_next(&arrow_array_stream, ¤t_chunk->arrow_array)) {
45732 throw InvalidInputException("arrow_scan: get_next failed(): %s", string(GetError()));
45733 }
45734
45735 return current_chunk;
45736}
◆ GetError()
| const char * duckdb::ArrowArrayStreamWrapper::GetError |
( |
| ) |
|
45738 {
45739 return arrow_array_stream.get_last_error(&arrow_array_stream);
45740}
The documentation for this class was generated from the following files:
- external/duckdb/duckdb.hpp
- external/duckdb/duckdb.cpp