Convert a string representing individual bits into an INT64.
+Return the position of the rightmost set bit in an INT64 bit pattern.
To determine this position, we take a bitwise AND of the bit pattern and
@@ -3681,7 +3694,7 @@
Convert a bit pattern into an array of the dates is represents.
+Convert an INT64 field into a 28-character string representing
the individual bits.
@@ -3701,7 +3726,7 @@ Convert a bit pattern into an array of the dates is represents.
+Return a boolean indicating if any bits are set in the specified range
+of a bit pattern. The start_offset
must be zero or a negative number
+indicating an offset from the rightmost bit in the pattern. n_bits is
+the number of bits to consider, counting right from the bit at
+start_offset
.
bits INT64, submission_date DATE
+bits INT64, start_offset INT64, n_bits INT64
OUTPUTS
-ARRAY<DATE>
+
-Source | Edit
+Source | Edit
+retention (UDF)
+Return a nested struct providing booleans indicating whether a given client
+was active various time periods based on the passed bit pattern.
+Parameters
+INPUTS
+bits INT64, submission_date DATE
+
+Source | Edit
range (UDF)
Return an INT64 representing a range of bits from a source bit pattern.
The start_offset must be zero or a negative number indicating an offset from
@@ -3738,7 +3775,7 @@
range (UDF)
WHERE
submission_date > '2020-01-01'
-Parameters
+Parameters
INPUTS
bits INT64, start_offset INT64, n_bits INT64
@@ -3746,43 +3783,6 @@ Parameters
Source | Edit
-from_string (UDF)
-Convert a string representing individual bits into an INT64.
-Implementation based on https://stackoverflow.com/a/51600210/1260237
-See detailed docs for the bits28 suite of functions:
-https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference
-Parameters
-INPUTS
-
-OUTPUTS
-
-Source | Edit
-active_in_range (UDF)
-Return a boolean indicating if any bits are set in the specified range
-of a bit pattern. The start_offset
must be zero or a negative number
-indicating an offset from the rightmost bit in the pattern. n_bits is
-the number of bits to consider, counting right from the bit at
-start_offset
.
-See detailed docs for the bits28 suite of functions:
-https://docs.telemetry.mozilla.org/cookbooks/clients_last_seen_bits.html#udf-reference
-Parameters
-INPUTS
-bits INT64, start_offset INT64, n_bits INT64
-
-OUTPUTS
-
-Source | Edit
-retention (UDF)
-Return a nested struct providing booleans indicating whether a given client
-was active various time periods based on the passed bit pattern.
-Parameters
-INPUTS
-bits INT64, submission_date DATE
-
-Source | Edit
diff --git a/mozfun/bytes/index.html b/mozfun/bytes/index.html
index 7c4b5a3024d..c56dafa3a76 100644
--- a/mozfun/bytes/index.html
+++ b/mozfun/bytes/index.html
@@ -2800,11 +2800,11 @@
-
-
- extract_bits (UDF)
+
+ bit_pos_to_byte_pos (UDF)
-