Skip to content

TableProvider

TableProvider is an abstraction of table providers (for DataSourceV2Utils utility when requested for a Table).

TableProvider is part of Connector API and serves as an indication to use newer code execution paths (e.g., ResolveSessionCatalog logical resolution rule).

Contract

Table

Table getTable(
  StructType schema,
  Transform[] partitioning,
  Map<String, String> properties)

Creates a Table for the given schema, partitioning (as Transforms) and properties.

Used when:

Inferring Partitioning

Transform[] inferPartitioning(
  CaseInsensitiveStringMap options)

Default: No partitions (as Transforms)

Used when:

Inferring Schema

StructType inferSchema(
  CaseInsensitiveStringMap options)

Used when:

supportsExternalMetadata

boolean supportsExternalMetadata()

Default: false

Used when:

Implementations