fn other_function(&self, info: &FunctionExprInfo, args: &[Expression]) -> Result<Expression> {
        let query_context = self.context.clone();
        let context_args = ContextFunction::build_args_from_ctx(query_context, &info.name)?;

        match context_args.is_empty() {
            true => {
                let op = info.name.clone();
                let arguments = args.to_owned();
                Ok(Expression::ScalarFunction {
                    op,
                    args: arguments,
                })
            }
            false => {
                let op = info.name.clone();
                Ok(Expression::ScalarFunction {
                    op,
                    args: context_args,
                })
            }
        }
    }
/// Function to process when args's size is more than 2.
Function to process when args's size is more than 2.
Function to process when args ' s size is more than 2 .
fn other_function(&self, info: &FunctionExprInfo, args: &[Expression]) -> Result<Expression> {
        let query_context = self.context.clone();
        let context_args = ContextFunction::build_args_from_ctx(query_context, &info.name)?;
        match context_args.is_empty() {
            true => {
                let op = info.name.clone();
                let arguments = args.to_owned();
                Ok(Expression::ScalarFunction {
                    op,
                    args: arguments,
                })
            }
            false => {
                let op = info.name.clone();
                Ok(Expression::ScalarFunction {
                    op,
                    args: context_args,
                })
            }
        }
    }
fn other_function ( & self , info : & FunctionExprInfo , args : & [ Expression ] ) -> Result < Expression > { let query_context = self . context . clone ( ) ; let context_args = ContextFunction :: build_args_from_ctx ( query_context , & info . name ) ? ; match context_args . is_empty ( ) { true => { let op = info . name . clone ( ) ; let arguments = args . to_owned ( ) ; Ok ( Expression :: ScalarFunction { op , args : arguments , } ) } false => { let op = info . name . clone ( ) ; Ok ( Expression :: ScalarFunction { op , args : context_args , } ) } } }
Function to process when args's size is more than 2.
Function to process when args ' s size is more than 2 .
&self
info
&FunctionExprInfo
args
&[Expression]