1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
use crate::prelude::*;
use polars_core::prelude::*;
use polars_io::csv::{CsvEncoding, NullValues};
use polars_io::RowCount;
#[derive(Clone, Debug)]
pub struct CsvParserOptions {
pub(crate) delimiter: u8,
pub(crate) comment_char: Option<u8>,
pub(crate) quote_char: Option<u8>,
pub(crate) has_header: bool,
pub(crate) skip_rows: usize,
pub(crate) n_rows: Option<usize>,
pub(crate) with_columns: Option<Vec<String>>,
pub(crate) low_memory: bool,
pub(crate) ignore_errors: bool,
pub(crate) cache: bool,
pub(crate) null_values: Option<NullValues>,
pub(crate) rechunk: bool,
pub(crate) encoding: CsvEncoding,
pub(crate) row_count: Option<RowCount>,
pub(crate) parse_dates: bool,
}
#[cfg(feature = "parquet")]
#[derive(Clone, Debug)]
pub struct ParquetOptions {
pub(crate) n_rows: Option<usize>,
pub(crate) with_columns: Option<Vec<String>>,
pub(crate) cache: bool,
pub(crate) parallel: bool,
pub(crate) row_count: Option<RowCount>,
}
#[derive(Clone, Debug)]
pub struct IpcScanOptions {
pub n_rows: Option<usize>,
pub with_columns: Option<Vec<String>>,
pub cache: bool,
pub row_count: Option<RowCount>,
}
#[derive(Clone, Debug, Copy, Default)]
pub struct UnionOptions {
pub(crate) slice: bool,
pub(crate) slice_offset: i64,
pub(crate) slice_len: u32,
}
#[derive(Clone, Debug)]
pub struct GroupbyOptions {
pub(crate) dynamic: Option<DynamicGroupOptions>,
pub(crate) rolling: Option<RollingGroupOptions>,
}
#[derive(Clone, Debug)]
pub struct DistinctOptions {
pub(crate) subset: Option<Arc<Vec<String>>>,
pub(crate) maintain_order: bool,
pub(crate) keep_strategy: UniqueKeepStrategy,
}
#[derive(Copy, Clone, Debug, PartialEq)]
pub enum ApplyOptions {
ApplyGroups,
ApplyList,
ApplyFlat,
}
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct WindowOptions {
pub(crate) explode: bool,
}
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct FunctionOptions {
pub(crate) collect_groups: ApplyOptions,
pub(crate) input_wildcard_expansion: bool,
pub(crate) auto_explode: bool,
pub(crate) fmt_str: &'static str,
}
#[derive(Clone, Copy, PartialEq, Debug)]
pub struct LogicalPlanUdfOptions {
pub(crate) predicate_pd: bool,
pub(crate) projection_pd: bool,
pub(crate) fmt_str: &'static str,
}
#[derive(Clone, PartialEq, Debug)]
pub struct SortArguments {
pub(crate) reverse: Vec<bool>,
pub(crate) nulls_last: bool,
}