Results of 1 - 6 of about 6 for validity (0.004 sec.)
- Vectors 12740
- Vectors represent a horizontal slice of a column. They hold a number of values of a specific type, similar to an array. Vectors are the core data representation used in DuckDB. Vectors are typically stored within data chunks . The vector an
...a value is NULL , the values contained within the primary array at that index is undefined (and can be uninitialized). The validity mask is a bitmask consisting of uint64_t elements. For every 64 values in the vector, one uint64_t element exists (rounded...up). The validity mask has its bit set to 1 if the value is valid, or set to 0 if the value is invalid (i.e., NULL ). The bits of the bitmas...k can be read directly, or the slower helper method duckdb_validity_row_is_valid can be used to check whether or not a value is NULL . The duckdb_vector_get_validity returns a pointer to the... - https://man.mtool.work/duckdb/2.0/clients/c/vector.html
- Complete API 10163
- This page contains the reference for DuckDB's C API. The reference contains several deprecation notices. These concern methods whose long-term availability is not guaranteed as they may be removed in the future. That said, DuckDB's develope
...column_type ( duckdb_vector vector ); void * duckdb_vector_get_data ( duckdb_vector vector ); uint64_t * duckdb_vector_get_validity ( duckdb_vector vector ); void duckdb_vector_ensure_validity_writable ( duckdb_vector vector ); void duckdb_vector_assign_...ector , duckdb_value value ); void duckdb_vector_reference_vector ( duckdb_vector to_vector , duckdb_vector from_vector ); Validity Mask Functions bool duckdb_validity_row_is_valid ( uint64_t * validity , idx_t row ); void duckdb_validity_set_row_validit...y ( uint64_t * validity , idx_t row , bool valid ); void duckdb_validity_set_row_invalid ( uint64_t * validity , idx_t row ); void duckdb_validity... - https://man.mtool.work/duckdb/2.0/clients/c/api.html
- Query 8536
- The duckdb_query method allows SQL queries to be run in DuckDB from C. This method takes two parameters, a (null-terminated) SQL query string and a duckdb_result result pointer. The result pointer may be NULL if the application is not inter
...1 = duckdb_data_chunk_get_vector(result, 0); int32_t *col1_data = (int32_t *) duckdb_vector_get_data(col1); uint64_t *col1_validity = duckdb_vector_get_validity(col1); // get the second column duckdb_vector col2 = duckdb_data_chunk_get_vector(result, 1);...int32_t *col2_data = (int32_t *) duckdb_vector_get_data(col2); uint64_t *col2_validity = duckdb_vector_get_validity(col2); // iterate over the rows for (idx_t row = 0; row < row_count; row++) { if (duckdb_vali...dity_row_is_valid(col1_validity, row)) { printf("%d", col1_data[row]); } else { printf("NULL"); } printf(","); if (duckdb_validity_row_is_valid(col2_valid... - https://man.mtool.work/duckdb/2.0/clients/c/query.html
- Data Chunks 8097
- Data chunks represent a horizontal slice of a table. They hold a number of vectors , that can each hold up to the VECTOR_SIZE rows. The vector size can be obtained through the duckdb_vector_size function and is configurable, but is usually
...a_chunk * chunk ); Parameters chunk : The data chunk to destroy. duckdb_data_chunk_reset Resets a data chunk, clearing the validity masks and setting the cardinality of the data chunk to 0. After calling this method, you must call duckdb_vector_get_valid...ity and duckdb_vector_get_data to obtain current data and validity pointers Syntax void duckdb_data_chunk_reset ( duckdb_data_chunk chunk ); Parameters chunk : The data chunk to reset. duck... - https://man.mtool.work/duckdb/2.0/clients/c/data_chunk.html
- Geometry Data Type 7640
- Name Description GEOMETRY Geospatial entity The GEOMETRY data type is used to store and manipulate geometric objects, such as points, lines, and polygons. The GEOMETRY type was part of the spatial extension but became a built-in data type i
...gma_storage_info('geometry_db.points'); ---- ┌──────────────┐ │ segment_type │ │ varchar │ ├──────────────┤ │ GEOMETRY │ │ VALIDITY │ └──────────────┘ -- While the geometry column in `shredded_db` is decomposed into primitive DOUBLE segments, -- which ca...ype) FROM pragma_storage_info('shredded_db.points'); ---- ┌──────────────┐ │ segment_type │ │ varchar │ ├──────────────┤ │ VALIDITY │ │ DOUBLE │ └──────────────┘ Geometry Statistics GEOMETRY columns contain geometry-specific statistics that track the bou... - https://man.mtool.work/duckdb/2.0/sql/data_types/geometry.html
- Write User Defined Functions 7604
- 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
...ds its input as a typed slice for brevity and assumes non-null input; a production function should also check each value's validity. This feature requires features = ["vscalar"] . Table Functions A table function is a type that implements the VTab trait,... - https://man.mtool.work/duckdb/2.0/clients/rust/functions.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work