@malloydata/malloy 0.0.206-dev241030173920 → 0.0.206-dev241031153949
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,6 +197,11 @@ const to_unixtime = {
|
|
|
197
197
|
returns: 'number',
|
|
198
198
|
impl: { function: 'TO_UNIXTIME' },
|
|
199
199
|
};
|
|
200
|
+
const percent_rank = {
|
|
201
|
+
takes: {},
|
|
202
|
+
returns: { calculation: 'number' },
|
|
203
|
+
impl: { function: 'PERCENT_RANK', needsWindowOrderBy: true },
|
|
204
|
+
};
|
|
200
205
|
exports.TRINO_DIALECT_FUNCTIONS = {
|
|
201
206
|
// aggregate functions
|
|
202
207
|
approx_percentile,
|
|
@@ -223,5 +228,7 @@ exports.TRINO_DIALECT_FUNCTIONS = {
|
|
|
223
228
|
regexp_like,
|
|
224
229
|
regexp_replace,
|
|
225
230
|
to_unixtime,
|
|
231
|
+
// window functions
|
|
232
|
+
percent_rank,
|
|
226
233
|
};
|
|
227
234
|
//# sourceMappingURL=dialect_functions.js.map
|