gravitino.api.schema.Schema

class gravitino.api.schema.Schema

Bases: Auditable

An interface representing a schema in the Catalog. A Schema is a basic container of relational objects, like tables, views, etc. A Schema can be self-nested, which means it can be schema1.schema2.table.

This defines the basic properties of a schema. A catalog implementation with SupportsSchemas should implement this interface.

__init__()

Methods

__init__()

audit_info()

comment()

Returns the comment of the Schema.

name()

Returns the name of the Schema.

properties()

Returns the properties of the Schema.

comment() str | None

Returns the comment of the Schema. None is returned if the comment is not set.

abstract name() str

Returns the name of the Schema.

properties() Dict[str, str]

Returns the properties of the Schema. An empty dictionary is returned if no properties are set.