Skip to content

TableRepository

Persist Table Metadata

TableInfo createTable(
  CreateTable createTable)

createTable creates a TableInfo with randomly-generated UUID as the table ID and the other metadata.

createTable prints out the following DEBUG message to the logs:

Creating table: [fullName]

MANAGED tables are not supported yet

createTable asserts that storage_location is specified for an EXTERNAL table.

createTable persists the table's properties (to uc_properties table using PropertyDAO).

In the end, createTable persists the table metadata.


createTable is used when:

List Tables

ListTablesResponse listTables(
  String catalogName,
  String schemaName,
  Optional<Integer> maxResults,
  Optional<String> pageToken,
  Boolean omitProperties,
  Boolean omitColumns)  // (1)!
ListTablesResponse listTables(
  Session session,
  UUID schemaId,
  String catalogName,
  String schemaName,
  Optional<Integer> maxResults,
  Optional<String> pageToken,
  Boolean omitProperties,
  Boolean omitColumns)
  1. Opens a new session using the system-wide SessionFactory and starts a new transaction

listTables requests the PagedListingHelper to listEntity.

listTables...FIXME


listTables is used when: