⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 2 of about 2 for ArrowVTab (0.001 sec.)
Handle Results 11228
Overview Beyond reading a result set row by row , the Rust client can hand a query result to Apache Arrow as a stream of record batches, register an Arrow batch as a queryable table, and return results as Polars data frames. Each of these c ... gram can be registered as a DuckDB table function and queried in SQL. Enable the vtab-arrow feature, register the built-in ArrowVTab table function on the connection, and pass the batch as a query parameter with arrow_recordbatch_to_query_params() . The f ... : use duckdb::{Connection, arrow::record_batch::RecordBatch}; use duckdb::vtab::arrow::{arrow_recordbatch_to_query_params, ArrowVTab}; let conn = Connection::open_in_memory()?; conn.register_table_function::<ArrowVTab>("arrow")?; let params = arrow_record ... his page reads, and reading them row by row. Write User Defined Functions — writing table functions, of which the built-in ArrowVTab is one. Import Data — appending Arrow record batches into a table with the appender-arrow feature. ...
https://man.mtool.work/duckdb/2.0/clients/rust/result_handling.html
Write User Defined Functions 7485
Overview The Rust client can register user-defined functions written in Rust: scalar functions with the vscalar feature and table functions with the vtab feature. Both operate on DuckDB's columnar data chunks, so a single call processes a b ... ble functions as closely as possible. This feature requires features = ["vtab"] ; the vtab-arrow feature adds the built-in ArrowVTab , covered in Handle Results . Building a Loadable Extension The functions above are registered on a Connection inside a cl ... e make debug produces a .duckdb_extension that loads with duckdb -unsigned . Further Reading Handle Results — the built-in ArrowVTab table function and the Arrow vector API shared with user-defined functions. C API — the table function interface that the ...
https://man.mtool.work/duckdb/2.0/clients/rust/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work