sql/moz-fx-data-shared-prod/udf/histogram_to_threshold_count/udf.sql (3 lines of code) (raw):
-- Legacy wrapper around a function moved to mozfun.
CREATE OR REPLACE FUNCTION udf.histogram_to_threshold_count(histogram STRING, threshold INT64) AS (
mozfun.hist.threshold_count(histogram, threshold)
);