Skip to content

Allow configuring session-wide vortex options in DF#7604

Open
AdamGS wants to merge 3 commits intodevelopfrom
adamg/sql-config-df
Open

Allow configuring session-wide vortex options in DF#7604
AdamGS wants to merge 3 commits intodevelopfrom
adamg/sql-config-df

Conversation

@AdamGS
Copy link
Copy Markdown
Contributor

@AdamGS AdamGS commented Apr 23, 2026

Summary

This PR shits the DF config to use the Extension API which seems like the right thing? It keeps all the other nice behaviors will allowing users to configure session wide things (either through SQL or directly).

Signed-off-by: Adam Gutglick <adam@spiraldb.com>
@AdamGS AdamGS requested review from a10y and joseph-isaacs April 23, 2026 11:39
@AdamGS AdamGS added changelog/feature A new feature ext/datafusion Relates to the DataFusion integration labels Apr 23, 2026
AdamGS added 2 commits April 23, 2026 13:11
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
format_options: &std::collections::HashMap<String, String>,
) -> DFResult<Arc<dyn FileFormat>> {
let mut opts = self.options.clone().unwrap_or_default();
let mut opts = state
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we delete the options field from the format factory if we always pull it out of the state now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you do, you have two code paths here.

  1. The one enabled by this PR - User sets a session-level config, which propagates down to new tables.
  2. User executes a DDL statement like CREATE EXTERNAL TABLE t ... OPTIONS (my_vortex_conf=7); which goes through the factory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature ext/datafusion Relates to the DataFusion integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants