Packages

case class CatalogTable(identifier: TableIdentifier, tableType: CatalogTableType, storage: CatalogStorageFormat, schema: StructType, provider: Option[String] = None, partitionColumnNames: Seq[String] = Seq.empty, bucketSpec: Option[BucketSpec] = None, owner: String = CurrentUserContext.getCurrentUserOrEmpty, createTime: Long = System.currentTimeMillis, lastAccessTime: Long = -1, createVersion: String = "", properties: Map[String, String] = Map.empty, stats: Option[CatalogStatistics] = None, viewText: Option[String] = None, comment: Option[String] = None, collation: Option[String] = None, unsupportedFeatures: Seq[String] = Seq.empty, tracksPartitionsInCatalog: Boolean = false, schemaPreservesCase: Boolean = true, ignoredProperties: Map[String, String] = Map.empty, viewOriginalText: Option[String] = None) extends MetadataMapSupport with Product with Serializable

A table defined in the catalog.

Note that Hive's metastore also tracks skewed columns. We should consider adding that in the future once we have a better understanding of how we want to handle skewed columns.

provider

the name of the data source provider for this table, e.g. parquet, json, etc. Can be None if this table is a View, should be "hive" for hive serde tables.

createVersion

records the version of Spark that created this table metadata. The default is an empty string. We expect it will be read from the catalog or filled by ExternalCatalog.createTable. For temporary views, the value will be empty.

unsupportedFeatures

is a list of string descriptions of features that are used by the underlying table but not supported by Spark SQL yet.

tracksPartitionsInCatalog

whether this table's partition metadata is stored in the catalog. If false, it is inferred automatically based on file structure.

schemaPreservesCase

Whether or not the schema resolved for this table is case-sensitive. When using a Hive Metastore, this flag is set to false if a case- sensitive schema was unable to be read from the table properties. Used to trigger case-sensitive schema inference at query time, when configured.

ignoredProperties

is a list of table properties that are used by the underlying table but ignored by Spark SQL yet.

Linear Supertypes
Serializable, Product, Equals, MetadataMapSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CatalogTable
  2. Serializable
  3. Product
  4. Equals
  5. MetadataMapSupport
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CatalogTable(identifier: TableIdentifier, tableType: CatalogTableType, storage: CatalogStorageFormat, schema: StructType, provider: Option[String] = None, partitionColumnNames: Seq[String] = Seq.empty, bucketSpec: Option[BucketSpec] = None, owner: String = CurrentUserContext.getCurrentUserOrEmpty, createTime: Long = System.currentTimeMillis, lastAccessTime: Long = -1, createVersion: String = "", properties: Map[String, String] = Map.empty, stats: Option[CatalogStatistics] = None, viewText: Option[String] = None, comment: Option[String] = None, collation: Option[String] = None, unsupportedFeatures: Seq[String] = Seq.empty, tracksPartitionsInCatalog: Boolean = false, schemaPreservesCase: Boolean = true, ignoredProperties: Map[String, String] = Map.empty, viewOriginalText: Option[String] = None)

    provider

    the name of the data source provider for this table, e.g. parquet, json, etc. Can be None if this table is a View, should be "hive" for hive serde tables.

    createVersion

    records the version of Spark that created this table metadata. The default is an empty string. We expect it will be read from the catalog or filled by ExternalCatalog.createTable. For temporary views, the value will be empty.

    unsupportedFeatures

    is a list of string descriptions of features that are used by the underlying table but not supported by Spark SQL yet.

    tracksPartitionsInCatalog

    whether this table's partition metadata is stored in the catalog. If false, it is inferred automatically based on file structure.

    schemaPreservesCase

    Whether or not the schema resolved for this table is case-sensitive. When using a Hive Metastore, this flag is set to false if a case- sensitive schema was unable to be read from the table properties. Used to trigger case-sensitive schema inference at query time, when configured.

    ignoredProperties

    is a list of table properties that are used by the underlying table but ignored by Spark SQL yet.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val bucketSpec: Option[BucketSpec]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. lazy val clusterBySpec: Option[ClusterBySpec]
  8. val collation: Option[String]
  9. val comment: Option[String]
  10. val createTime: Long
  11. val createVersion: String
  12. def dataSchema: StructType

    schema of this table's data columns

  13. def database: String

    Return the database this table was specified to belong to, assuming it exists.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. val identifier: TableIdentifier
  17. val ignoredProperties: Map[String, String]
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def jsonToString(jsonMap: LinkedHashMap[String, JValue]): LinkedHashMap[String, String]
    Attributes
    protected
    Definition Classes
    MetadataMapSupport
  20. val lastAccessTime: Long
  21. def location: URI

    Return the table location, assuming it is specified.

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. val owner: String
  26. val partitionColumnNames: Seq[String]
  27. def partitionSchema: StructType

    schema of this table's partition columns

  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val properties: Map[String, String]
  30. val provider: Option[String]
  31. def qualifiedName: String

    Return the fully qualified name of this table, assuming the database was specified.

  32. val schema: StructType
  33. val schemaPreservesCase: Boolean
  34. def simpleString: String

    Readable string representation for the CatalogTable.

  35. val stats: Option[CatalogStatistics]
  36. val storage: CatalogStorageFormat
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. val tableType: CatalogTableType
  39. def toJsonLinkedHashMap: LinkedHashMap[String, JValue]
    Definition Classes
    CatalogTableMetadataMapSupport
  40. def toLinkedHashMap: LinkedHashMap[String, String]
    Definition Classes
    MetadataMapSupport
  41. def toString(): String
    Definition Classes
    CatalogTable → AnyRef → Any
  42. val tracksPartitionsInCatalog: Boolean
  43. val unsupportedFeatures: Seq[String]
  44. def viewCatalogAndNamespace: Seq[String]

    Return the current catalog and namespace (concatenated as a Seq[String]) of when the view was created.

  45. val viewOriginalText: Option[String]
  46. def viewQueryColumnNames: Seq[String]

    Return the output column names of the query that creates a view, the column names are used to resolve a view, should be empty if the CatalogTable is not a View or created by older versions of Spark(before 2.2.0).

  47. def viewReferredTempFunctionNames: Seq[String]

    Return temporary function names the current view was referred.

    Return temporary function names the current view was referred. should be empty if the CatalogTable is not a Temporary View or created by older versions of Spark(before 3.1.0).

  48. def viewReferredTempVariableNames: Seq[Seq[String]]

    Return temporary variable names the current view was referred.

    Return temporary variable names the current view was referred. should be empty if the CatalogTable is not a Temporary View or created by older versions of Spark(before 3.4.0).

  49. def viewReferredTempViewNames: Seq[Seq[String]]

    Return temporary view names the current view was referred.

    Return temporary view names the current view was referred. should be empty if the CatalogTable is not a Temporary View or created by older versions of Spark(before 3.1.0).

  50. def viewSQLConfigs: Map[String, String]

    Return the SQL configs of when the view was created, the configs are applied when parsing and analyzing the view, should be empty if the CatalogTable is not a View or created by older versions of Spark(before 3.1.0).

  51. def viewSchemaMode: ViewSchemaMode

    Return the schema binding mode.

    Return the schema binding mode. Defaults to SchemaBinding if not a view or an older version, unless the viewSchemaBindingMode config is set to false

  52. val viewText: Option[String]
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. def withNewStorage(locationUri: Option[URI] = storage.locationUri, inputFormat: Option[String] = storage.inputFormat, outputFormat: Option[String] = storage.outputFormat, compressed: Boolean = false, serde: Option[String] = storage.serde, properties: Map[String, String] = storage.properties): CatalogTable

    Syntactic sugar to update a field in storage.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MetadataMapSupport

Inherited from AnyRef

Inherited from Any

Ungrouped