Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
LanceColumnAlteration Struct Reference

#include <lance/lance.h>

Public Attributes

const char * path
 
const char * rename
 
int32_t nullable_mode
 
const struct ArrowSchema * data_type
 

Detailed Description

A single alteration applied to one column. Every non-path field is optional via a sentinel:

  • rename = NULL keeps the current name.
  • nullable_mode = LANCE_COLUMN_NULLABLE_UNCHANGED keeps current nullability.
  • data_type = NULL keeps the current data type.

At least one of rename, nullable_mode, or data_type must request a change; an alteration that touches nothing is rejected at the FFI boundary.

data_type, when non-NULL, borrows an Arrow C Data Interface ArrowSchema describing the target type. The struct is read by shared reference for the duration of the call; its release callback is never invoked.

Definition at line 2874 of file lance.h.

Member Data Documentation

◆ data_type

const struct ArrowSchema* LanceColumnAlteration::data_type

Definition at line 2882 of file lance.h.

◆ nullable_mode

int32_t LanceColumnAlteration::nullable_mode

Definition at line 2880 of file lance.h.

◆ path

const char* LanceColumnAlteration::path

Definition at line 2876 of file lance.h.

◆ rename

const char* LanceColumnAlteration::rename

Definition at line 2878 of file lance.h.


The documentation for this struct was generated from the following file: