Closed carlineng closed 2 months ago
Updated PR to address feedback, PTAL
Trino test is failing because the function signature for APPROX_PERCENTILE is different between Presto and Trino.
Trino is approx_percentile(x, w, percentage)
, where "w" is a weight parameter that must be > 1
Presto is approx_percentile(x, percentage, accuracy)
, where accuracy is a parameter between 0 and 1
MotherDuck tests are failing for an unrelated reason... looks like count_approx
in the all/functions.spec.ts
is not returning the expected result. I'm going to merge this anyway since I didn't alter those functions in this PR, so I think that failure is unrelated to the changes here.
Adds the following functions, and associated tests:
I was having trouble with local tests on
date_parse
andto_unixtime
; I think something related to timezones and converting between Javascript datetime objects and Presto timestamps... any advice on how to resolve those would be appreciated.