client.tables.post_scan

A method of the Tables endpoint.

post_scan(database_id: int, schema: str, table_name: str, *, stats_priority: str = None) Response

Creates and enqueues a single table scanner job on a new table

API URL: POST /tables/scan

import civis
client = civis.APIClient()
response = client.tables.post_scan(...)
Parameters:
database_idint

The ID of the database.

schemastr

The name of the schema containing the table.

table_namestr

The name of the table.

stats_prioritystr, optional

When to sync table statistics. Valid Options are the following. Option: ‘flag’ means to flag stats for the next scheduled run of a full table scan on the database. Option: ‘block’ means to block this job on stats syncing. Option: ‘queue’ means to queue a separate job for syncing stats and do not block this job on the queued job. Defaults to ‘flag’

Returns:
civis.Response
  • job_idint

    The ID of the job created.

  • run_idint

    The ID of the run created.