Skip to content

Commit

Permalink
[ci skip] Deployed c5b1896 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 23, 2023
1 parent 9f94a8f commit 2645ac8
Show file tree
Hide file tree
Showing 13 changed files with 1,508 additions and 1,458 deletions.
10 changes: 10 additions & 0 deletions mozdata/monitoring/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5115,6 +5115,16 @@ <h2 id="airflow_trigger"><a href="#airflow_trigger">airflow_trigger</a></h2>
<td></td>
<td>Integer</td>
<td>Yes</td>
</tr><tr>
<td>trigger_id</td>
<td></td>
<td>Integer</td>
<td>Yes</td>
</tr><tr>
<td>created_at</td>
<td></td>
<td>Timestamp</td>
<td>Yes</td>
</tr>
</table>

Expand Down
150 changes: 75 additions & 75 deletions mozfun/bits28/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2840,11 +2840,11 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#active_in_range-udf" class="md-nav__link">
active_in_range (UDF)
<a href="#to_string-udf" class="md-nav__link">
to_string (UDF)
</a>

<nav class="md-nav" aria-label="active_in_range (UDF)">
<nav class="md-nav" aria-label="to_string (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2860,11 +2860,11 @@
</li>

<li class="md-nav__item">
<a href="#range-udf" class="md-nav__link">
range (UDF)
<a href="#retention-udf" class="md-nav__link">
retention (UDF)
</a>

<nav class="md-nav" aria-label="range (UDF)">
<nav class="md-nav" aria-label="retention (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2880,11 +2880,11 @@
</li>

<li class="md-nav__item">
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
<a href="#active_in_range-udf" class="md-nav__link">
active_in_range (UDF)
</a>

<nav class="md-nav" aria-label="to_dates (UDF)">
<nav class="md-nav" aria-label="active_in_range (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2900,11 +2900,11 @@
</li>

<li class="md-nav__item">
<a href="#from_string-udf" class="md-nav__link">
from_string (UDF)
<a href="#range-udf" class="md-nav__link">
range (UDF)
</a>

<nav class="md-nav" aria-label="from_string (UDF)">
<nav class="md-nav" aria-label="range (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2920,11 +2920,11 @@
</li>

<li class="md-nav__item">
<a href="#days_since_seen-udf" class="md-nav__link">
days_since_seen (UDF)
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
</a>

<nav class="md-nav" aria-label="days_since_seen (UDF)">
<nav class="md-nav" aria-label="to_dates (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2940,11 +2940,11 @@
</li>

<li class="md-nav__item">
<a href="#to_string-udf" class="md-nav__link">
to_string (UDF)
<a href="#from_string-udf" class="md-nav__link">
from_string (UDF)
</a>

<nav class="md-nav" aria-label="to_string (UDF)">
<nav class="md-nav" aria-label="from_string (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -2960,11 +2960,11 @@
</li>

<li class="md-nav__item">
<a href="#retention-udf" class="md-nav__link">
retention (UDF)
<a href="#days_since_seen-udf" class="md-nav__link">
days_since_seen (UDF)
</a>

<nav class="md-nav" aria-label="retention (UDF)">
<nav class="md-nav" aria-label="days_since_seen (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand Down Expand Up @@ -3582,11 +3582,11 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>

<li class="md-nav__item">
<a href="#active_in_range-udf" class="md-nav__link">
active_in_range (UDF)
<a href="#to_string-udf" class="md-nav__link">
to_string (UDF)
</a>

<nav class="md-nav" aria-label="active_in_range (UDF)">
<nav class="md-nav" aria-label="to_string (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3602,11 +3602,11 @@
</li>

<li class="md-nav__item">
<a href="#range-udf" class="md-nav__link">
range (UDF)
<a href="#retention-udf" class="md-nav__link">
retention (UDF)
</a>

<nav class="md-nav" aria-label="range (UDF)">
<nav class="md-nav" aria-label="retention (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3622,11 +3622,11 @@
</li>

<li class="md-nav__item">
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
<a href="#active_in_range-udf" class="md-nav__link">
active_in_range (UDF)
</a>

<nav class="md-nav" aria-label="to_dates (UDF)">
<nav class="md-nav" aria-label="active_in_range (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3642,11 +3642,11 @@
</li>

<li class="md-nav__item">
<a href="#from_string-udf" class="md-nav__link">
from_string (UDF)
<a href="#range-udf" class="md-nav__link">
range (UDF)
</a>

<nav class="md-nav" aria-label="from_string (UDF)">
<nav class="md-nav" aria-label="range (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3662,11 +3662,11 @@
</li>

<li class="md-nav__item">
<a href="#days_since_seen-udf" class="md-nav__link">
days_since_seen (UDF)
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
</a>

<nav class="md-nav" aria-label="days_since_seen (UDF)">
<nav class="md-nav" aria-label="to_dates (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3682,11 +3682,11 @@
</li>

<li class="md-nav__item">
<a href="#to_string-udf" class="md-nav__link">
to_string (UDF)
<a href="#from_string-udf" class="md-nav__link">
from_string (UDF)
</a>

<nav class="md-nav" aria-label="to_string (UDF)">
<nav class="md-nav" aria-label="from_string (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand All @@ -3702,11 +3702,11 @@
</li>

<li class="md-nav__item">
<a href="#retention-udf" class="md-nav__link">
retention (UDF)
<a href="#days_since_seen-udf" class="md-nav__link">
days_since_seen (UDF)
</a>

<nav class="md-nav" aria-label="retention (UDF)">
<nav class="md-nav" aria-label="days_since_seen (UDF)">
<ul class="md-nav__list">

<li class="md-nav__item">
Expand Down Expand Up @@ -3750,6 +3750,34 @@ <h1 id="bits28">bits28</h1>
type of the field is a BigQuery INT64, but logically the integer
represents an array of bits, with each 1 indicating a day where the given clients
was active and each 0 indicating a day where the client was inactive.</p>
<h2 id="to_string-udf">to_string (UDF)</h2>
<p>Convert an INT64 field into a 28-character string representing
the individual bits.</p>
<p>Implementation based on <a href="https://stackoverflow.com/a/51600210/1260237">https://stackoverflow.com/a/51600210/1260237</a></p>
<p>See detailed docs for the bits28 suite of functions:
<a href="https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference">https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference</a></p>
<div class="highlight"><pre><span></span><code><span class="k">SELECT</span>
<span class="w"> </span><span class="p">[</span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">1</span><span class="p">),</span><span class="w"> </span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">2</span><span class="p">),</span><span class="w"> </span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">3</span><span class="p">)]</span>
<span class="c1">-- &gt;&gt;&gt; [&#39;0000000000000000000000000001&#39;,</span>
<span class="c1">-- &#39;0000000000000000000000000010&#39;,</span>
<span class="c1">-- &#39;0000000000000000000000000011&#39;]</span>
</code></pre></div>
<h3 id="parameters">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64
</code></pre></div>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>STRING
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/to_string">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/to_string/metadata.yaml">Edit</a></p>
<h2 id="retention-udf">retention (UDF)</h2>
<p>Return a nested struct providing booleans indicating whether a given client
was active various time periods based on the passed bit pattern.</p>
<h3 id="parameters_1">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, submission_date DATE
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/retention">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/retention/metadata.yaml">Edit</a></p>
<h2 id="active_in_range-udf">active_in_range (UDF)</h2>
<p>Return a boolean indicating if any bits are set in the specified range
of a bit pattern. The <code>start_offset</code> must be zero or a negative number
Expand All @@ -3758,7 +3786,7 @@ <h2 id="active_in_range-udf">active_in_range (UDF)</h2>
<code>start_offset</code>.</p>
<p>See detailed docs for the bits28 suite of functions:
<a href="https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference">https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference</a></p>
<h3 id="parameters">Parameters</h3>
<h3 id="parameters_2">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, start_offset INT64, n_bits INT64
</code></pre></div>
Expand All @@ -3783,7 +3811,7 @@ <h2 id="range-udf">range (UDF)</h2>
<span class="k">WHERE</span>
<span class="w"> </span><span class="n">submission_date</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="s1">&#39;2020-01-01&#39;</span>
</code></pre></div>
<h3 id="parameters_1">Parameters</h3>
<h3 id="parameters_3">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, start_offset INT64, n_bits INT64
</code></pre></div>
Expand All @@ -3795,7 +3823,7 @@ <h2 id="to_dates-udf">to_dates (UDF)</h2>
<p>Convert a bit pattern into an array of the dates is represents.</p>
<p>See detailed docs for the bits28 suite of functions:
<a href="https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference">https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference</a></p>
<h3 id="parameters_2">Parameters</h3>
<h3 id="parameters_4">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, submission_date DATE
</code></pre></div>
Expand All @@ -3808,7 +3836,7 @@ <h2 id="from_string-udf">from_string (UDF)</h2>
<p>Implementation based on <a href="https://stackoverflow.com/a/51600210/1260237">https://stackoverflow.com/a/51600210/1260237</a></p>
<p>See detailed docs for the bits28 suite of functions:
<a href="https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference">https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference</a></p>
<h3 id="parameters_3">Parameters</h3>
<h3 id="parameters_5">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>s STRING
</code></pre></div>
Expand All @@ -3827,42 +3855,14 @@ <h2 id="days_since_seen-udf">days_since_seen (UDF)</h2>
<span class="w"> </span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">days_since_seen</span><span class="p">(</span><span class="mi">18</span><span class="p">)</span>
<span class="c1">-- &gt;&gt; 1</span>
</code></pre></div>
<h3 id="parameters_4">Parameters</h3>
<h3 id="parameters_6">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64
</code></pre></div>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>INT64
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/days_since_seen">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/days_since_seen/metadata.yaml">Edit</a></p>
<h2 id="to_string-udf">to_string (UDF)</h2>
<p>Convert an INT64 field into a 28-character string representing
the individual bits.</p>
<p>Implementation based on <a href="https://stackoverflow.com/a/51600210/1260237">https://stackoverflow.com/a/51600210/1260237</a></p>
<p>See detailed docs for the bits28 suite of functions:
<a href="https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference">https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference</a></p>
<div class="highlight"><pre><span></span><code><span class="k">SELECT</span>
<span class="w"> </span><span class="p">[</span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">1</span><span class="p">),</span><span class="w"> </span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">2</span><span class="p">),</span><span class="w"> </span><span class="n">mozfun</span><span class="p">.</span><span class="n">bits28</span><span class="p">.</span><span class="n">to_string</span><span class="p">(</span><span class="mi">3</span><span class="p">)]</span>
<span class="c1">-- &gt;&gt;&gt; [&#39;0000000000000000000000000001&#39;,</span>
<span class="c1">-- &#39;0000000000000000000000000010&#39;,</span>
<span class="c1">-- &#39;0000000000000000000000000011&#39;]</span>
</code></pre></div>
<h3 id="parameters_5">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64
</code></pre></div>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>STRING
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/to_string">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/to_string/metadata.yaml">Edit</a></p>
<h2 id="retention-udf">retention (UDF)</h2>
<p>Return a nested struct providing booleans indicating whether a given client
was active various time periods based on the passed bit pattern.</p>
<h3 id="parameters_6">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, submission_date DATE
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/retention">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/retention/metadata.yaml">Edit</a></p>



Expand Down
Loading

0 comments on commit 2645ac8

Please sign in to comment.