Return a new table which provide this decimal column
()
| 245 | |
| 246 | /// Return a new table which provide this decimal column |
| 247 | pub 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 | |
| 254 | fn make_decimal() -> RecordBatch { |
| 255 | let mut decimal_builder = Decimal128Builder::with_capacity(20); |
nothing calls this directly
no test coverage detected
searching dependent graphs…