Skip to content

Commit

Permalink
[ci skip] Deployed fd08656 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 28, 2023
1 parent 7dd87e7 commit f0dd68d
Show file tree
Hide file tree
Showing 14 changed files with 1,396 additions and 1,751 deletions.
5 changes: 5 additions & 0 deletions mozdata/fenix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7292,6 +7292,11 @@ <h2 id="funnel_retention_week_4"><a href="#funnel_retention_week_4">funnel_reten
</td>
<td>String</td>
<td>Yes</td>
</tr><tr>
<td>install_source</td>
<td></td>
<td>String</td>
<td>Yes</td>
</tr><tr>
<td>new_profiles</td>
<td>Count of new_profiles for the given grouping.
Expand Down
140 changes: 70 additions & 70 deletions mozfun/bits28/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2900,11 +2900,11 @@
</li>

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

<nav class="md-nav" aria-label="retention (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="#to_string-udf" class="md-nav__link">
to_string (UDF)
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
</a>

<nav class="md-nav" aria-label="to_string (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="#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 @@ -2960,11 +2960,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 @@ -2980,11 +2980,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 Down Expand Up @@ -3642,11 +3642,11 @@
</li>

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

<nav class="md-nav" aria-label="retention (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="#to_string-udf" class="md-nav__link">
to_string (UDF)
<a href="#to_dates-udf" class="md-nav__link">
to_dates (UDF)
</a>

<nav class="md-nav" aria-label="to_string (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="#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 @@ -3702,11 +3702,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 @@ -3722,11 +3722,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 Down Expand Up @@ -3802,14 +3802,43 @@ <h3 id="parameters_1">Parameters</h3>
<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/from_string">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/from_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>
<h2 id="range-udf">range (UDF)</h2>
<p>Return an INT64 representing a range of bits from a source bit pattern.</p>
<p>The start_offset must be zero or a negative number indicating an offset from
the rightmost bit in the pattern.</p>
<p>n_bits is the number of bits to consider, counting right from the bit at
start_offset.</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="c1">-- Signature is bits28.range(offset_to_day_0, start_bit, number_of_bits)</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">range</span><span class="p">(</span><span class="n">days_seen_bits</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">13</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">week_0_bits</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">range</span><span class="p">(</span><span class="n">days_seen_bits</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">13</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">7</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">week_1_bits</span>
<span class="k">FROM</span>
<span class="w"> </span><span class="n">telemetry</span><span class="p">.</span><span class="n">clients_last_seen</span>
<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_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>
<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/range">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/range/metadata.yaml">Edit</a></p>
<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_3">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>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>ARRAY&lt;DATE&gt;
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/to_dates">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/to_dates/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>
Expand All @@ -3822,7 +3851,7 @@ <h2 id="to_string-udf">to_string (UDF)</h2>
<span class="c1">-- &#39;0000000000000000000000000010&#39;,</span>
<span class="c1">-- &#39;0000000000000000000000000011&#39;]</span>
</code></pre></div>
<h3 id="parameters_3">Parameters</h3>
<h3 id="parameters_4">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64
</code></pre></div>
Expand All @@ -3838,51 +3867,22 @@ <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_4">Parameters</h3>
<h3 id="parameters_5">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>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>BOOLEAN
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/active_in_range">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/active_in_range/metadata.yaml">Edit</a></p>
<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_5">Parameters</h3>
<p><strong>INPUTS</strong></p>
<div class="highlight"><pre><span></span><code>bits INT64, submission_date DATE
</code></pre></div>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>ARRAY&lt;DATE&gt;
</code></pre></div>
<p><a href="https://github.com/mozilla/bigquery-etl/blob/generated-sql/sql//mozfun/bits28/to_dates">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/to_dates/metadata.yaml">Edit</a></p>
<h2 id="range-udf">range (UDF)</h2>
<p>Return an INT64 representing a range of bits from a source bit pattern.</p>
<p>The start_offset must be zero or a negative number indicating an offset from
the rightmost bit in the pattern.</p>
<p>n_bits is the number of bits to consider, counting right from the bit at
start_offset.</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="c1">-- Signature is bits28.range(offset_to_day_0, start_bit, number_of_bits)</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">range</span><span class="p">(</span><span class="n">days_seen_bits</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">13</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">week_0_bits</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">range</span><span class="p">(</span><span class="n">days_seen_bits</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">13</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">7</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">week_1_bits</span>
<span class="k">FROM</span>
<span class="w"> </span><span class="n">telemetry</span><span class="p">.</span><span class="n">clients_last_seen</span>
<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>
<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, start_offset INT64, n_bits INT64
</code></pre></div>
<p><strong>OUTPUTS</strong></p>
<div class="highlight"><pre><span></span><code>INT64
<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/range">Source</a> | <a href="https://github.com/mozilla/bigquery-etl/edit/generated-sql/sql//mozfun/bits28/range/metadata.yaml">Edit</a></p>
<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 f0dd68d

Please sign in to comment.