Skip to content

Commit 44563f9

Browse files
committed
Add documentation for TableFunctionArgs::settings
1 parent dc33462 commit 44563f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ast/query.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,16 @@ impl fmt::Display for ExprWithAlias {
899899
}
900900
}
901901

902+
/// Arguments to a table-valued function
902903
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
903904
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
904905
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
905906
pub struct TableFunctionArgs {
906907
pub args: Vec<FunctionArg>,
908+
/// ClickHouse-specific SETTINGS clause.
909+
/// For example,
910+
/// `SELECT * FROM executable('generate_random.py', TabSeparated, 'id UInt32, random String', SETTINGS send_chunk_header = false, pool_size = 16)`
911+
/// [`executable` table function](https://clickhouse.com/docs/en/engines/table-functions/executable)
907912
pub settings: Option<Vec<Setting>>,
908913
}
909914

0 commit comments

Comments
 (0)