-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify writer, schema evolution and generated columns
Signed-off-by: Ion Koutsouris <15728914+ion-elgreco@users.noreply.github.com> Signed-off-by: Liam Brannigan <liambrannigan@Liams-MacBook-Pro.local>
- Loading branch information
1 parent
e5c95b7
commit e0077ff
Showing
10 changed files
with
714 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// Configuration for the writer on how to collect stats | ||
#[derive(Clone)] | ||
pub struct WriterStatsConfig { | ||
/// Number of columns to collect stats for, idx based | ||
pub num_indexed_cols: i32, | ||
/// Optional list of columns which to collect stats for, takes precedende over num_index_cols | ||
pub stats_columns: Option<Vec<String>>, | ||
} | ||
|
||
impl WriterStatsConfig { | ||
/// Create new writer stats config | ||
pub fn new(num_indexed_cols: i32, stats_columns: Option<Vec<String>>) -> Self { | ||
Self { | ||
num_indexed_cols, | ||
stats_columns, | ||
} | ||
} | ||
} |
Oops, something went wrong.