MCPcopy Create free account
hub / github.com/apache/datafusion / table_with_decimal

Function table_with_decimal

datafusion/core/src/test/mod.rs:247–252  ·  view source on GitHub ↗

Return a new table which provide this decimal column

()

Source from the content-addressed store, hash-verified

245
246/// Return a new table which provide this decimal column
247pub fn table_with_decimal() -> Arc<dyn TableProvider> {
248 let batch_decimal = make_decimal();
249 let schema = batch_decimal.schema();
250 let partitions = vec![vec![batch_decimal]];
251 Arc::new(MemTable::try_new(schema, partitions).unwrap())
252}
253
254fn make_decimal() -> RecordBatch {
255 let mut decimal_builder = Decimal128Builder::with_capacity(20);

Callers

nothing calls this directly

Calls 3

make_decimalFunction · 0.85
newFunction · 0.85
schemaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…