MCPcopy Create free account
hub / github.com/apache/datafusion / reset_statement_to_plan

Method reset_statement_to_plan

datafusion/sql/src/statement.rs:2171–2189  ·  view source on GitHub ↗
(&self, statement: ResetStatement)

Source from the content-addressed store, hash-verified

2169 }
2170
2171 fn reset_statement_to_plan(&self, statement: ResetStatement) -> Result<LogicalPlan> {
2172 match statement {
2173 ResetStatement::Variable(variable) => {
2174 let variable = object_name_to_string(&variable);
2175 let mut variable_lower = variable.to_lowercase();
2176
2177 // Map PostgreSQL "timezone" and MySQL "time.zone" aliases to DataFusion's canonical name
2178 if variable_lower == "timezone" || variable_lower == "time.zone" {
2179 variable_lower = "datafusion.execution.time_zone".to_string();
2180 }
2181
2182 Ok(LogicalPlan::Statement(PlanStatement::ResetVariable(
2183 ResetVariable {
2184 variable: variable_lower,
2185 },
2186 )))
2187 }
2188 }
2189 }
2190
2191 fn delete_to_plan(
2192 &self,

Callers 1

statement_to_planMethod · 0.80

Calls 4

object_name_to_stringFunction · 0.85
ResetVariableClass · 0.85
StatementEnum · 0.70
to_stringMethod · 0.45

Tested by

no test coverage detected