Skip to content
Merged
Prev Previous commit
Next Next commit
Bug fix for missing array_expressions cfg feature.
  • Loading branch information
Omega359 committed Jul 12, 2024
commit 8a579cf05d1696c932afd5e8bfc601d95a1097f0
3 changes: 2 additions & 1 deletion datafusion/core/src/execution/session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ impl SessionStateBuilder {
}
}

/// Set defaults for table_factories, file formats, expr_planners and builtin
/// Set defaults for table_factories, file formats, expr_planners and builtin
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is great for this PR

As part of the larger catalog refactor, I think we'll ned to figure out how to get SessioNStateDefaults` out of this file -- but I have some ideas (specifically we can make the defaults a trait that could be passed to the builder).

Not for this PR

/// scalar and aggregate functions.
pub fn with_default_features(mut self) -> Self {
self.table_factories = Some(SessionStateDefaults::default_table_factories());
Expand Down Expand Up @@ -1478,6 +1478,7 @@ impl SessionStateDefaults {
/// returns a map of default [`ScalarUDF']'s keyed by name
pub fn default_scalar_functions() -> Vec<Arc<ScalarUDF>> {
let mut functions: Vec<Arc<ScalarUDF>> = functions::all_default_functions();
#[cfg(feature = "array_expressions")]
functions.append(&mut functions_array::all_default_array_functions());

functions
Expand Down