Skip to content

Commit

Permalink
Updated document e32347010bf87f9cb6344c35c0d86a517bb7fc99
Browse files Browse the repository at this point in the history
  • Loading branch information
Circle CI committed Aug 27, 2024
1 parent eb8c3fb commit 93b3609
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 88 deletions.
71 changes: 0 additions & 71 deletions _sources/operators/td_partial_delete.md.txt

This file was deleted.

79 changes: 79 additions & 0 deletions _sources/operators/td_partial_delete.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
td_partial_delete>: Delete range of Treasure Data table
======================================================

**td_partial_delete>** operator deletes records from a Treasure Data table.

.. warning::

This operator is deprecated. Use DELETE function in Trino/Presto by td operator instead.

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.

Time range needs to be hourly. Setting non-zero values to minutes or seconds will be rejected.

.. code-block:: yaml
+step1:
td_partial_delete>: my_table
database: mydb
from: 2016-01-01T00:00:00+08:00
to: 2016-02-01T00:00:00+08:00
Secrets
-------

When you set those parameters, use `digdag secrets command <https://docs.digdag.io/command_reference.html#secrets>`.

- **td.apikey**: API_KEY
The Treasure Data API key to use when running Treasure Data queries.

Parameters
----------

- **td_partial_delete>**: NAME

Name of the table.

Examples:

.. code-block:: yaml
td_partial_delete>: my_table
- **database**: NAME

Name of the database.

Examples:

.. code-block:: yaml
database: my_database
- **from**: yyyy-MM-ddTHH:mm:ss[Z]

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.

Examples:

.. code-block:: yaml
from: 2016-01-01T00:00:00+08:00
- **to**: yyyy-MM-ddTHH:mm:ss[Z]

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.

Examples:

.. code-block:: yaml
to: 2016-02-01T00:00:00+08:00
- **endpoint**: ADDRESS

API endpoint (default: api.treasuredata.com)

- **use_ssl**: BOOLEAN

Enable SSL (https) to access to the endpoint (default: true)
2 changes: 1 addition & 1 deletion _sources/operators/treasure_data.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Treasure Data operators
td_for_each.md
td_wait.md
td_wait_table.md
td_partial_delete.md
td_partial_delete.rst
td_table_export.md
td_result_export.md

34 changes: 19 additions & 15 deletions operators/td_partial_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
<li class="wy-breadcrumbs-aside">


<a href="../_sources/operators/td_partial_delete.md.txt" rel="nofollow"> View page source</a>
<a href="../_sources/operators/td_partial_delete.rst.txt" rel="nofollow"> View page source</a>


</li>
Expand All @@ -199,18 +199,22 @@
<div class="section" id="td-partial-delete-delete-range-of-treasure-data-table">
<h1>td_partial_delete&gt;: Delete range of Treasure Data table<a class="headerlink" href="#td-partial-delete-delete-range-of-treasure-data-table" title="Permalink to this headline"></a></h1>
<p><strong>td_partial_delete&gt;</strong> operator deletes records from a Treasure Data table.</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>This operator is deprecated. Use DELETE function in Trino/Presto by td operator instead.</p>
</div>
<p>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.</p>
<p>Time range needs to be hourly. Setting non-zero values to minutes or seconds will be rejected.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">+</span><span class="n">step1</span><span class="p">:</span>
<span class="n">td_partial_delete</span><span class="o">&gt;</span><span class="p">:</span> <span class="n">my_table</span>
<span class="n">database</span><span class="p">:</span> <span class="n">mydb</span>
<span class="n">from</span><span class="p">:</span> <span class="mi">2016</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span>
<span class="n">to</span><span class="p">:</span> <span class="mi">2016</span><span class="o">-</span><span class="mi">02</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">+step1</span><span class="p">:</span>
<span class="nt">td_partial_delete&gt;</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">my_table</span>
<span class="nt">database</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">mydb</span>
<span class="nt">from</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">2016-01-01T00:00:00+08:00</span>
<span class="nt">to</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">2016-02-01T00:00:00+08:00</span>
</pre></div>
</div>
<div class="section" id="secrets">
<h2>Secrets<a class="headerlink" href="#secrets" title="Permalink to this headline"></a></h2>
<p>When you set those parameters, use <a class="reference external" href="https://docs.digdag.io/command_reference.html#secrets">digdag secrets command</a>.</p>
<p>When you set those parameters, use <cite>digdag secrets command &lt;https://docs.digdag.io/command_reference.html#secrets&gt;</cite>.</p>
<ul class="simple">
<li><p><strong>td.apikey</strong>: API_KEY
The Treasure Data API key to use when running Treasure Data queries.</p></li>
Expand All @@ -222,36 +226,36 @@ <h2>Parameters<a class="headerlink" href="#parameters" title="Permalink to this
<li><p><strong>td_partial_delete&gt;</strong>: NAME</p>
<p>Name of the table.</p>
<p>Examples:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">td_partial_delete</span><span class="o">&gt;</span><span class="p">:</span> <span class="n">my_table</span>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">td_partial_delete&gt;</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">my_table</span>
</pre></div>
</div>
</li>
<li><p><strong>database</strong>: NAME</p>
<p>Name of the database.</p>
<p>Examples:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">database</span><span class="p">:</span> <span class="n">my_database</span>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">database</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">my_database</span>
</pre></div>
</div>
</li>
<li><p><strong>from</strong>: yyyy-MM-ddTHH:mm:ss[Z]</p>
<p>Delete records from this time (inclusive). Actual time range is :command:<code class="docutils literal notranslate"><span class="pre">[from,</span> <span class="pre">to)</span></code>. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format.</p>
<p>Delete records from this time (inclusive). Actual time range is <code class="docutils literal notranslate"><span class="pre">[from,</span> <span class="pre">to)</span></code>. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format.</p>
<p>Examples:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">from</span><span class="p">:</span> <span class="mi">2016</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">from</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">2016-01-01T00:00:00+08:00</span>
</pre></div>
</div>
</li>
<li><p><strong>to</strong>: yyyy-MM-ddTHH:mm:ss[Z]</p>
<p>Delete records to this time (exclusive). Actual time range is :command:<code class="docutils literal notranslate"><span class="pre">[from,</span> <span class="pre">to)</span></code>. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format.</p>
<p>Delete records to this time (exclusive). Actual time range is <code class="docutils literal notranslate"><span class="pre">[from,</span> <span class="pre">to)</span></code>. Value should be a UNIX timestamp integer (seconds) or string in ISO-8601 (yyyy-MM-ddTHH:mm:ss[Z]) format.</p>
<p>Examples:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">to</span><span class="p">:</span> <span class="mi">2016</span><span class="o">-</span><span class="mi">02</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">to</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">2016-02-01T00:00:00+08:00</span>
</pre></div>
</div>
</li>
<li><p><strong>endpoint</strong>: ADDRESS</p>
<p>API endpoint (default: api.treasuredata.com).</p>
<p>API endpoint (default: api.treasuredata.com)</p>
</li>
<li><p><strong>use_ssl</strong>: BOOLEAN</p>
<p>Enable SSL (https) to access to the endpoint (default: true).</p>
<p>Enable SSL (https) to access to the endpoint (default: true)</p>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 93b3609

Please sign in to comment.