Class IcebergVersionFunction

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

public class IcebergVersionFunction extends Object implements org.apache.spark.sql.connector.catalog.functions.UnboundFunction
A function for use in SQL that returns the current Iceberg version, e.g. SELECT system.iceberg_version() will return a String such as "0.14.0" or "0.15.0-SNAPSHOT"
See Also:
  • Constructor Details

    • IcebergVersionFunction

      public IcebergVersionFunction()
  • Method Details

    • 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
    • description

      public String description()
      Specified by:
      description in interface org.apache.spark.sql.connector.catalog.functions.UnboundFunction
    • name

      public String name()
      Specified by:
      name in interface org.apache.spark.sql.connector.catalog.functions.Function