Skip to main content

REFRESH TABLE

Commands › Tables · Admins only, through sercha_define or a tenant file

Rebuilds clean.<source>.<table> and its _map from the landed table, with the rule NORMALISE declared. Run it after new rows land.

Syntax​

REFRESH TABLE clean.<source>.<table>

Parameters​

ParameterDescription
clean.<source>.<table>A cleaned table. Only a clean-layer table is built by Sercha; any other name is refused when the statement runs.

Usage notes​

  • Only the group and map rows that changed are written: a refresh that changes nothing writes nothing.
  • The result is property and value rows: table, map, rows_read, groups, rows_written, rows_removed.

Examples​

REFRESH TABLE clean.crm.account
propertyvalue
tableclean.crm.account
mapclean.crm.account_map
rows_read1251
groups1019
rows_written18
rows_removed0

Not supported​

RefusedWrite instead
A source with no tableclean.<source>.<table>
-- Refused by the engine
REFRESH TABLE clean.crm

See also​

ALTER TABLE ... NORMALISE · ALTER TABLE ... RENAME TO · SHOW MODEL