Class YearsFunction

java.lang.Object
org.apache.iceberg.spark.functions.YearsFunction
All Implemented Interfaces:
Serializable, org.apache.spark.sql.connector.catalog.functions.Function, org.apache.spark.sql.connector.catalog.functions.UnboundFunction

public class YearsFunction extends Object
A Spark function implementation for the Iceberg year transform.

Example usage: SELECT system.years('source_col').

See Also:
  • Constructor Details

    • YearsFunction

      public YearsFunction()
  • Method Details

    • doBind

      protected org.apache.spark.sql.connector.catalog.functions.BoundFunction doBind(org.apache.spark.sql.types.DataType valueType)
    • description

      public String description()
    • name

      public String name()
    • bind

      public org.apache.spark.sql.connector.catalog.functions.BoundFunction bind(org.apache.spark.sql.types.StructType inputType)
      Specified by:
      bind in interface org.apache.spark.sql.connector.catalog.functions.UnboundFunction