pub struct ArrowOptions {
pub unsupported_as_binary: bool,
pub low_cardinality_as_dictionary: bool,
pub string_as_string: bool,
}Expand description
How the engine maps ClickHouse types to Arrow types on export.
Distinct from InsertOptions, which tunes the insert path — this is the
read side, and it wraps a different C struct (chdb_arrow_options).
Default reproduces the engine’s own defaults, so
ArrowOptions::default() behaves exactly like passing no options at all.
Fields§
§unsupported_as_binary: boolEmit types with no faithful Arrow mapping — JSON/Object, Dynamic,
AggregateFunction — as Binary instead of failing. Default false,
meaning the engine throws UNKNOWN_TYPE for such columns; true
degrades them to Binary.
low_cardinality_as_dictionary: boolEmit LowCardinality(T) as an Arrow dictionary array instead of
materializing it to T. Default false.
The consumer must be able to handle dictionaries whose values are stable across batches.
string_as_string: boolEmit String as Arrow Utf8. Default true; false emits Binary.
Trait Implementations§
Source§impl Clone for ArrowOptions
impl Clone for ArrowOptions
impl Copy for ArrowOptions
Source§impl Debug for ArrowOptions
impl Debug for ArrowOptions
Source§impl Default for ArrowOptions
impl Default for ArrowOptions
impl Eq for ArrowOptions
Source§impl PartialEq for ArrowOptions
impl PartialEq for ArrowOptions
impl StructuralPartialEq for ArrowOptions
Auto Trait Implementations§
impl Forget for ArrowOptions
impl Freeze for ArrowOptions
impl Move for ArrowOptions
impl RefUnwindSafe for ArrowOptions
impl Send for ArrowOptions
impl Sync for ArrowOptions
impl Unpin for ArrowOptions
impl UnsafeUnpin for ArrowOptions
impl UnwindSafe for ArrowOptions
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.