Class MonthsFunction
java.lang.Object
org.apache.iceberg.spark.functions.MonthsFunction
- All Implemented Interfaces:
Serializable
,org.apache.spark.sql.connector.catalog.functions.Function
,org.apache.spark.sql.connector.catalog.functions.UnboundFunction
A Spark function implementation for the Iceberg month transform.
Example usage: SELECT system.months('source_col')
.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MonthsFunction
public MonthsFunction()
-
-
Method Details
-
doBind
protected org.apache.spark.sql.connector.catalog.functions.BoundFunction doBind(org.apache.spark.sql.types.DataType valueType) -
description
-
name
-
bind
public org.apache.spark.sql.connector.catalog.functions.BoundFunction bind(org.apache.spark.sql.types.StructType inputType) - Specified by:
bind
in interfaceorg.apache.spark.sql.connector.catalog.functions.UnboundFunction
-