Skip to content

Commit

Permalink
[ci skip] Deployed c21cca6 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 20, 2023
1 parent 192ddd3 commit 6644fae
Show file tree
Hide file tree
Showing 11 changed files with 1,013 additions and 893 deletions.
50 changes: 25 additions & 25 deletions mozfun/bits28/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2860,11 +2860,11 @@
</li>

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

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

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

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

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

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

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

<li class="md-nav__item">
Expand Down Expand Up @@ -3766,6 +3766,18 @@ <h3 id="parameters">Parameters</h3>
<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_1">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
Expand All @@ -3783,26 +3795,14 @@ <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_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_2">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="from_string-udf">from_string (UDF)</h2>
<p>Convert a string representing individual bits into an INT64.</p>
<p>Implementation based on <a href="https://stackoverflow.com/a/51600210/1260237">https://stackoverflow.com/a/51600210/1260237</a></p>
Expand Down
Loading

0 comments on commit 6644fae

Please sign in to comment.