MCPcopy Create free account
hub / github.com/microsoft/SandDance / windowTransform

Function windowTransform

docs/tests/v2/es6/js/sanddance.js:151001–151017  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

150999}
151000
151001function windowTransform(columns) {
151002 const t = {
151003 type: 'window',
151004 groupby: [columns.x.quantitative ? _constants.FieldNames.DensityXBin0 : columns.x.name, columns.y.quantitative ? _constants.FieldNames.DensityYBin0 : columns.y.name],
151005 ops: ['row_number'],
151006 as: [_constants.FieldNames.DensityRow]
151007 };
151008
151009 if (columns.sort) {
151010 t.sort = {
151011 field: [columns.sort.name],
151012 order: ['descending']
151013 };
151014 }
151015
151016 return t;
151017}
151018},{"../../array":"FvDz","../constants":"RaLA","../top":"z3Hg"}],"H71d":[function(require,module,exports) {
151019"use strict";
151020

Callers 1

_defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected