Skip to content

NamedExpression -- Catalyst Expressions with Name, ID and Qualifier

NamedExpression is a <> of Expression.md[Catalyst expressions] that have a <>, <>, and optional <>.

[[contract]] [source, scala]


package org.apache.spark.sql.catalyst.expressions

trait NamedExpression extends Expression { // only required methods that have no implementation def exprId: ExprId def name: String def newInstance(): NamedExpression def qualifier: Option[String] def toAttribute: Attribute }


.NamedExpression Contract [cols="1,2",options="header",width="100%"] |=== | Method | Description

| exprId | [[exprId]] Used when...FIXME

| name | [[name]] Used when...FIXME

| qualifier | [[qualifier]] Used when...FIXME

| toAttribute | [[toAttribute]] |===

=== [[newExprId]] Creating ExprId -- newExprId Object Method

[source, scala]

newExprId: ExprId

newExprId...FIXME

NOTE: newExprId is used when...FIXME


Last update: 2020-10-21