Class DefaultValue
Object
org.apache.spark.sql.connector.catalog.DefaultValue
A class that represents default values.
Connectors can define default values using either a SQL string (Spark SQL dialect) or an
expression if the default value can be expressed as a supported connector
expression. 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.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultValue(String sql) DefaultValue(String sql, Expression expr) DefaultValue(Expression expr) -
Method Summary
-
Constructor Details
-
DefaultValue
-
DefaultValue
-
DefaultValue
-
-
Method Details
-
getSql
Returns the SQL representation of the default value (Spark SQL dialect), if provided. -
getExpression
Returns the expression representing the default value, if provided. -
equals
-
hashCode
public int hashCode() -
toString
-