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

Method parse_tuple

datafusion/sql/src/expr/mod.rs:717–734  ·  view source on GitHub ↗
(
        &self,
        schema: &DFSchema,
        planner_context: &mut PlannerContext,
        values: Vec<SQLExpr>,
    )

Source from the content-addressed store, hash-verified

715 }
716
717 fn parse_tuple(
718 &self,
719 schema: &DFSchema,
720 planner_context: &mut PlannerContext,
721 values: Vec<SQLExpr>,
722 ) -> Result<Expr> {
723 match values.first() {
724 Some(SQLExpr::Identifier(_))
725 | Some(SQLExpr::Value(_))
726 | Some(SQLExpr::CompoundIdentifier(_)) => {
727 self.parse_struct(schema, planner_context, values, &[])
728 }
729 None => not_impl_err!("Empty tuple not supported yet"),
730 _ => {
731 not_impl_err!("Only identifiers and literals are supported in tuples")
732 }
733 }
734 }
735
736 fn sql_position_to_expr(
737 &self,

Callers 1

Calls 2

parse_structMethod · 0.80
firstMethod · 0.45

Tested by

no test coverage detected