Class Extract
Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
org.apache.spark.sql.connector.expressions.Extract
- All Implemented Interfaces:
Serializable
,Expression
,scala.Serializable
@Evolving
public class Extract
extends org.apache.spark.sql.internal.connector.ExpressionWithToString
Represent an extract function, which extracts and returns the value of a
specified datetime field from a datetime or interval value expression.
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
- Since:
- 3.4.0
- See Also:
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.spark.sql.internal.connector.ExpressionWithToString
describe, references, toString
-
Constructor Details
-
Extract
-
-
Method Details
-
field
-
source
-
children
Description copied from interface:Expression
Returns an array of the children of this node. Children should not change.
-