Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: fix SQLOptions::with_allow_ddl comments #11166

Merged
merged 3 commits into from
Jun 30, 2024
Merged
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
4 changes: 2 additions & 2 deletions datafusion/core/src/execution/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1490,13 +1490,13 @@ impl SQLOptions {
Default::default()
}

/// Should DML data modification commands (e.g. `INSERT and COPY`) be run? Defaults to `true`.
/// Should DDL data definition commands (e.g. `CREATE TABLE`) be run? Defaults to `true`.
pub fn with_allow_ddl(mut self, allow: bool) -> Self {
self.allow_ddl = allow;
self
}

/// Should DML data modification commands (e.g. `INSERT and COPY`) be run? Defaults to `true`
/// Should DML data modification commands (e.g. `INSERT` and `COPY`) be run? Defaults to `true`
pub fn with_allow_dml(mut self, allow: bool) -> Self {
self.allow_dml = allow;
self
Expand Down