Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions bench-vortex/src/clickbench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ pub async fn register_vortex_files(

let table_url = ListingTableUrl::parse(vortex_path)?;

let config =
ListingTableConfig::new(table_url).with_listing_options(ListingOptions::new(format));
let config = ListingTableConfig::new(table_url).with_listing_options(
ListingOptions::new(format).with_session_config_options(session.state().config()),
);

let config = if let Some(schema) = schema {
config.with_schema(schema.into())
Expand Down Expand Up @@ -248,7 +249,9 @@ pub fn register_parquet_files(
let table_url = ListingTableUrl::parse(table_path)?;

let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(format))
.with_listing_options(
ListingOptions::new(format).with_session_config_options(session.state().config()),
)
.with_schema(schema.clone().into());

let listing_table = Arc::new(ListingTable::try_new(config)?);
Expand Down
10 changes: 6 additions & 4 deletions bench-vortex/src/datasets/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ pub async fn register_parquet_files(
info!("Registering table from {}", &parquet_path);
let table_url = ListingTableUrl::parse(parquet_path)?;

let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(format));
let config = ListingTableConfig::new(table_url).with_listing_options(
ListingOptions::new(format).with_session_config_options(session.state().config()),
);

let config = if let Some(schema) = schema {
config.with_schema(schema.into())
Expand Down Expand Up @@ -97,8 +98,9 @@ pub async fn register_vortex_files(
// Register the Vortex file
let format = Arc::new(VortexFormat::default());
let table_url = ListingTableUrl::parse(file_url.as_str())?;
let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(format));
let config = ListingTableConfig::new(table_url).with_listing_options(
ListingOptions::new(format).with_session_config_options(session.state().config()),
);

let config = if let Some(schema) = schema {
config.with_schema(schema.into())
Expand Down
5 changes: 4 additions & 1 deletion bench-vortex/src/public_bi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ impl PBIData {
let path = self.get_file_path(&table.name, file_type);
let table_url = ListingTableUrl::parse(path.to_str().expect("unicode"))?;
let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(df_format))
.with_listing_options(
ListingOptions::new(df_format)
.with_session_config_options(session.state().config()),
)
.with_schema(schema.into());

let listing_table = Arc::new(ListingTable::try_new(config)?);
Expand Down
4 changes: 3 additions & 1 deletion vortex-datafusion/examples/vortex_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ async fn main() -> anyhow::Result<()> {
.ok_or_else(|| vortex_err!("Path is not valid UTF-8"))?,
)?;
let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(format))
.with_listing_options(
ListingOptions::new(format).with_session_config_options(ctx.state().config()),
)
.infer_schema(&ctx.state())
.await?;

Expand Down
4 changes: 3 additions & 1 deletion vortex-datafusion/src/persistent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ mod tests {
assert!(table_url.is_collection());

let config = ListingTableConfig::new(table_url)
.with_listing_options(ListingOptions::new(format))
.with_listing_options(
ListingOptions::new(format).with_session_config_options(ctx.state().config()),
)
.infer_schema(&ctx.state())
.await?;

Expand Down
Loading