@Evolving
public class ColumnDefaultValue
extends Object
CURRENT_DATE()
. The literal value is used to back-fill existing data if
new columns with default value are added. Note: the back-fill can be lazy. The data sources can
remember the column default value and let the reader fill the column value when reading existing
data that do not have these new columns.Constructor and Description |
---|
ColumnDefaultValue(String sql,
Literal<?> value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getSql()
Returns the SQL string (Spark SQL dialect) of the default value expression.
|
Literal<?> |
getValue()
Returns the default value literal.
|
int |
hashCode() |
String |
toString() |
public ColumnDefaultValue(String sql, Literal<?> value)
@Nonnull public String getSql()
@Nonnull public Literal<?> getValue()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object