|
| 1 | +td_partial_delete>: Delete range of Treasure Data table |
| 2 | +====================================================== |
| 3 | + |
| 4 | +**td_partial_delete>** operator deletes records from a Treasure Data table. |
| 5 | + |
| 6 | +.. warning:: |
| 7 | + |
| 8 | + This operator is deprecated. Use DELETE function in Trino/Presto by td operator instead. |
| 9 | + |
| 10 | +Please be aware that records imported using streaming import can't be deleted for several hours using td_partial_delete. Records imported by INSERT INTO, Data Connector, and bulk imports can be deleted immediately. |
| 11 | + |
| 12 | +Time range needs to be hourly. Setting non-zero values to minutes or seconds will be rejected. |
| 13 | + |
| 14 | +.. code-block:: yaml |
| 15 | +
|
| 16 | + +step1: |
| 17 | + td_partial_delete>: my_table |
| 18 | + database: mydb |
| 19 | + from: 2016-01-01T00:00:00+08:00 |
| 20 | + to: 2016-02-01T00:00:00+08:00 |
| 21 | +
|
| 22 | +Secrets |
| 23 | +------- |
| 24 | + |
| 25 | +When you set those parameters, use `digdag secrets command <https://docs.digdag.io/command_reference.html#secrets>`. |
| 26 | + |
| 27 | +- **td.apikey**: API_KEY |
| 28 | + The Treasure Data API key to use when running Treasure Data queries. |
| 29 | + |
| 30 | +Parameters |
| 31 | +---------- |
| 32 | + |
| 33 | +- **td_partial_delete>**: NAME |
| 34 | + |
| 35 | + Name of the table. |
| 36 | + |
| 37 | + Examples: |
| 38 | + |
| 39 | + .. code-block:: yaml |
| 40 | +
|
| 41 | + td_partial_delete>: my_table |
| 42 | +
|
| 43 | +- **database**: NAME |
| 44 | + |
| 45 | + Name of the database. |
| 46 | + |
| 47 | + Examples: |
| 48 | + |
| 49 | + .. code-block:: yaml |
| 50 | +
|
| 51 | + database: my_database |
| 52 | +
|
| 53 | +- **from**: yyyy-MM-ddTHH:mm:ss[Z] |
| 54 | + |
| 55 | + Delete records from this time (inclusive). Actual time range is ``[from, to)``. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format. |
| 56 | + |
| 57 | + Examples: |
| 58 | + |
| 59 | + .. code-block:: yaml |
| 60 | +
|
| 61 | + from: 2016-01-01T00:00:00+08:00 |
| 62 | +
|
| 63 | +- **to**: yyyy-MM-ddTHH:mm:ss[Z] |
| 64 | + |
| 65 | + Delete records to this time (exclusive). Actual time range is ``[from, to)``. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format. |
| 66 | + |
| 67 | + Examples: |
| 68 | + |
| 69 | + .. code-block:: yaml |
| 70 | +
|
| 71 | + to: 2016-02-01T00:00:00+08:00 |
| 72 | +
|
| 73 | +- **endpoint**: ADDRESS |
| 74 | + |
| 75 | + API endpoint (default: api.treasuredata.com) |
| 76 | + |
| 77 | +- **use_ssl**: BOOLEAN |
| 78 | + |
| 79 | + Enable SSL (https) to access to the endpoint (default: true) |
0 commit comments