gravitino.dto.rel.view_dto.ViewDTO

class gravitino.dto.rel.view_dto.ViewDTO(_name: str, _columns: list[gravitino.dto.rel.column_dto.ColumnDTO] | None = None, _representations: list[gravitino.dto.rel.representation_dto.RepresentationDTO] | None = None, _audit: AuditDTO | None = None, _comment: str | None = None, _default_catalog: str | None = None, _default_schema: str | None = None, _properties: dict[str, str] | None = None)

Bases: View, DataClassJsonMixin

Represents a View DTO.

__init__(_name: str, _columns: list[gravitino.dto.rel.column_dto.ColumnDTO] | None = None, _representations: list[gravitino.dto.rel.representation_dto.RepresentationDTO] | None = None, _audit: AuditDTO | None = None, _comment: str | None = None, _default_catalog: str | None = None, _default_schema: str | None = None, _properties: dict[str, str] | None = None) → None

Methods

__init__(_name[, _columns, ...])

audit_info()

columns()

Returns the output columns of the view.

comment()

Returns the view comment.

default_catalog()

Returns the default catalog used to resolve unqualified identifiers.

default_schema()

Returns the default schema used to resolve unqualified identifiers.

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

name()

Returns the view name.

properties()

Returns the view properties.

representations()

Returns the representations of the view.

schema(*[, infer_missing, only, exclude, ...])

sql_for(dialect)

Returns the SQL representation for the given dialect.

supports_tags()

Return tag operations if the view supports tags.

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

dataclass_json_config

columns() → list[gravitino.api.rel.column.Column]

Returns the output columns of the view.

comment() → str | None

Returns the view comment.

default_catalog() → str | None

Returns the default catalog used to resolve unqualified identifiers.

default_schema() → str | None

Returns the default schema used to resolve unqualified identifiers.

name() → str

Returns the view name.

properties() → dict[str, str]

Returns the view properties.

representations() → list[gravitino.api.rel.representation.Representation]

Returns the representations of the view.

sql_for(dialect: str | None) → SQLRepresentation | None

Returns the SQL representation for the given dialect.

supports_tags() → SupportsTags

Return tag operations if the view supports tags.

Raises:

UnsupportedOperationException: If the view does not support tag operations.

Returns:

SupportsTags: The tag operations supported by the view.