Skip to main content

Tables

The Tables class provides CRUD operations for database table metadata, plus table-specific helpers for tagging, column descriptions, custom metrics, and sample data. FQN format: service_name.database_name.schema_name.table_name

Import

Create

Tip: create() is idempotent — it calls createOrUpdate under the hood. If a table with the same FQN already exists, it is updated.

Retrieve

By ID

By fully-qualified name

With specific fields

Available fields include: columns, tags, owners, followers, domain, description, sampleData, tableConstraints, customMetrics.

List

Single page

All tables (auto-paginated)

With filters

filters are sent to the Tables list endpoint as query parameters. The endpoint accepts only the following filters:
  • service
  • database
  • databaseSchema
  • databaseSchemaRegex
  • tableRegex
  • include
  • includeEmptyTestSuite
  • regexFilterByFqn
  • regexMode
Filtering by tag isn’t supported. To find tables by tag, see Filter by Tag.

Update

update() computes a JSON Patch diff between the fetched entity and your modified version.

Delete

Tables.search() matches only the table name or fully qualified name. It doesn’t search tags or other fields.

Filter by Tag

To find tables with a specific tag or glossary term, use the Search API with a tags.tagFQN filter against the table search index. The following example collects every table tagged PII.Sensitive and pages through the results with from_ and size:
The search returns JSON documents, not Table objects. Each _source holds the table’s indexed fields. To search other asset types, use the matching search index, such as dashboard_search_index.

Table-Specific Operations

Add a tag

Attach a classification or glossary tag by its FQN:

Update a column description

Add a custom metric

Add sample data

Get sample data

CSV Export / Import

Version History

Restore