Skip to content

Commit 44da46a

Browse files
Deprecate td_partial_delete operator
1 parent eae89b0 commit 44da46a

File tree

3 files changed

+80
-72
lines changed

3 files changed

+80
-72
lines changed

digdag-docs/src/operators/td_partial_delete.md

-71
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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)

digdag-docs/src/operators/treasure_data.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Treasure Data operators
1111
td_for_each.md
1212
td_wait.md
1313
td_wait_table.md
14-
td_partial_delete.md
14+
td_partial_delete.rst
1515
td_table_export.md
1616
td_result_export.md
1717

0 commit comments

Comments
 (0)