Drop Table
Synopsis
Removes the named virtual table from the entry. If it was the entry's current output table, output reverts to the untyped Map.
Schema
- drop_table:
name: <string>
description: <text>
if: <script>
tag: <string>
disabled: <boolean>
ignore_failure: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
name | Y | Table to remove. Must be one of the 12 registered tables (see Create Table), matched case-insensitively. Supports templating, e.g. name: "{{table}}". | |
description | N | Explanatory note. | |
if | N | Condition that must be true for the processor to run. | |
tag | N | Identifier for this processor instance. | |
disabled | N | false | When true, the processor is skipped. |
ignore_failure | N | false | Continue pipeline processing if the processor fails. |
on_failure | N | See Handling Failures. | |
on_success | N | See Handling Success. |
Details
What Gets Removed
drop_table deallocates the named table's backing struct from the entry entirely — not just its contents, the member itself. A subsequent $<table>.Field write on that table fails as if the table had never been created, until another create_table runs.
If the dropped table was the entry's current output table (selected by Use Table), output reverts to the untyped Map automatically — the same effect as use_table with name: "map". Dropping a table that is allocated but was never selected as output has no effect on what the entry marshals; it only removes that table.
Failure Mode
Dropping a table that was never create_table-d on this entry is a no-op — the member is already absent. Dropping a name that is not one of the 12 registered tables fails the processor with unknown virtual table: "<name>", same as create_table and truncate_table. Add ignore_failure: true to treat that as a soft skip.
Examples
Dropping the Current Output Table Reverts to Map
Selecting | |
Output automatically reverts to | |
Dropping a Table That Isn't the Output Leaves Output Unaffected
Two tables are allocated; only | |
...has no effect on the marshal source — | |
No-Op on a Table That Was Never Created
Dropping | |
No error is raised — the member is already absent, and the event passes through unmodified... | |
Failing on an Unknown Table Name
Naming a table that isn't one of the 12 registered schemas... | |
| |