Skip to content

Commit

Permalink
Minor: fix SQLOptions::with_allow_ddl comments (#11166)
Browse files Browse the repository at this point in the history
* Minor: fix SQLOptions::with_allow_ddl comments

* fix

* Update datafusion/core/src/execution/context/mod.rs

Co-authored-by: Jonah Gao <[email protected]>

---------

Co-authored-by: Jonah Gao <[email protected]>
  • Loading branch information
alamb and jonahgao committed Jun 30, 2024
1 parent d19487c commit 78055fe
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 78055fe

Please sign in to comment.