Class SparkView

java.lang.Object
org.apache.iceberg.spark.source.SparkView

public class SparkView extends Object
Converts Iceberg view metadata to Spark's View representation.

Keeps this conversion in Iceberg instead of relying on Spark's built-in view handling so reserved properties and Iceberg defaults are exposed consistently to Spark commands.

  • Field Details

  • Method Details

    • toView

      public static org.apache.spark.sql.connector.catalog.View toView(String catalogName, View icebergView)
    • applyOptionalFields

      public static org.apache.spark.sql.connector.catalog.View.Builder applyOptionalFields(org.apache.spark.sql.connector.catalog.View.Builder builder, String schemaMode, Map<String,String> sqlConfigs, org.apache.spark.sql.connector.catalog.DependencyList dependencies)
      Applies optional Spark view fields to a view builder when present.
    • internalProperties

      public static Map<String,String> internalProperties(org.apache.spark.sql.connector.catalog.View view)
      Returns reserved properties that preserve Spark view metadata not represented by Iceberg view metadata fields.
    • isReservedProperty

      public static boolean isReservedProperty(String property)