Class Extract
Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
org.apache.spark.sql.connector.expressions.Extract
- All Implemented Interfaces:
- Serializable,- Expression
@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:
-  SECONDSince 3.4.0
-  MINUTESince 3.4.0
-  HOURSince 3.4.0
-  MONTHSince 3.4.0
-  QUARTERSince 3.4.0
-  YEARSince 3.4.0
-  DAY_OF_WEEKSince 3.4.0
-  DAYSince 3.4.0
-  DAY_OF_YEARSince 3.4.0
-  WEEKSince 3.4.0
-  YEAR_OF_WEEKSince 3.4.0
- Since:
- 3.4.0
- See Also:
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.expressions.ExpressionEMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.spark.sql.internal.connector.ExpressionWithToStringdescribe, references, toString
- 
Constructor Details- 
Extract
 
- 
- 
Method Details- 
field
- 
source
- 
childrenDescription copied from interface:ExpressionReturns an array of the children of this node. Children should not change.
 
-