We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f41fc3 commit b9f24acCopy full SHA for b9f24ac
1 file changed
benchmarks/random-access-bench/src/main.rs
@@ -152,14 +152,22 @@ impl DatasetArg {
152
}
153
154
155
+const fn default_formats() -> &'static [&'static str] {
156
+ if cfg!(feature = "lance") {
157
+ &["parquet", "vortex", "lance"]
158
+ } else {
159
+ &["parquet", "vortex"]
160
+ }
161
+}
162
+
163
#[derive(Parser, Debug)]
164
#[command(version, about, long_about = None)]
165
struct Args {
166
#[arg(
167
long,
168
value_delimiter = ',',
169
value_parser = Format::parse_allowed,
- default_values = ["parquet", "vortex", "lance"]
170
+ default_values = default_formats()
171
)]
172
formats: Vec<Format>,
173
/// Time limit in seconds for each benchmark target (e.g., 10 for 10 seconds).
0 commit comments