azof 0.2.1

Lakehouse format with event time travel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashSet;

#[derive(Eq, Debug, PartialEq, Clone)]
pub enum Projection {
    All,
    Columns(HashSet<String>),
}

impl Projection {
    pub fn contains(&self, column: &str) -> bool {
        if let Projection::Columns(columns) = self {
            columns.contains(column)
        } else {
            true
        }
    }
}