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

Method with_standard_argument

datafusion/doc/src/lib.rs:288–298  ·  view source on GitHub ↗

Add a standard "expression" argument to the documentation The argument is rendered like below if Some() is passed through: ```text : expression to operate on. Can be a constant, column, or function, and any combination of operators. ``` The argument is rendered like below if None is passed through: ```text : The expression to operate on. Can be a constant,

(
        self,
        arg_name: impl Into<String>,
        expression_type: Option<&str>,
    )

Source from the content-addressed store, hash-verified

286 /// The expression to operate on. Can be a constant, column, or function, and any combination of operators.
287 /// ```
288 pub fn with_standard_argument(
289 self,
290 arg_name: impl Into<String>,
291 expression_type: Option<&str>,
292 ) -> Self {
293 let description = format!(
294 "{} expression to operate on. Can be a constant, column, or function, and any combination of operators.",
295 expression_type.unwrap_or("The")
296 );
297 self.with_argument(arg_name, description)
298 }
299
300 pub fn with_alternative_syntax(mut self, syntax_name: impl Into<String>) -> Self {
301 let mut alternative_syntax_array = self.alternative_syntax.unwrap_or_default();

Callers 3

monotonicity.rsFile · 0.80
regr.rsFile · 0.80
bit_and_or_xor.rsFile · 0.80

Calls 1

with_argumentMethod · 0.80

Tested by

no test coverage detected