laddu-data 0.23.0

Amplitude analysis tools for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    Name,
    schema::{PhysicalSchemaPlan, Schema, SchemaWriteOptions, WriteWeightColumn},
};

pub(super) fn root_output_columns(
    schema: &Schema,
    write_weight: WriteWeightColumn,
    options: &SchemaWriteOptions,
) -> Vec<Name> {
    PhysicalSchemaPlan::for_write(schema, options, write_weight)
        .columns()
        .iter()
        .map(|column| column.name().clone())
        .collect()
}