@Evolving
public class Extract
extends org.apache.spark.sql.internal.connector.ExpressionWithToString
The currently supported fields names following the ISO standard:
SECOND
Since 3.4.0 MINUTE
Since 3.4.0 HOUR
Since 3.4.0 MONTH
Since 3.4.0 QUARTER
Since 3.4.0 YEAR
Since 3.4.0 DAY_OF_WEEK
Since 3.4.0 DAY
Since 3.4.0 DAY_OF_YEAR
Since 3.4.0 WEEK
Since 3.4.0 YEAR_OF_WEEK
Since 3.4.0 EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
Constructor and Description |
---|
Extract(String field,
Expression source) |
Modifier and Type | Method and Description |
---|---|
Expression[] |
children()
Returns an array of the children of this node.
|
String |
field() |
Expression |
source() |
public Extract(String field, Expression source)
public String field()
public Expression source()
public Expression[] children()
Expression