Class GenerationExpression
Object
org.apache.spark.sql.connector.catalog.GenerationExpression
A class that represents generated column expressions.
Connectors can define generated columns using either a SQL string (Spark SQL dialect) or a more
portable connector expression, whose semantics follow the ANSI SQL standard.
If both the SQL string and the expression are provided, Spark first attempts to convert the given expression to its internal representation. If the expression cannot be converted, and a SQL string is provided, Spark will fall back to parsing the SQL string.
- Since:
- 4.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal ExpressionReturns the connector expression, if provided.final StringgetSql()Returns the SQL representation, if provided.inthashCode()toString()
-
Constructor Details
-
GenerationExpression
-
GenerationExpression
-
GenerationExpression
-
-
Method Details