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

Method getTransforms

docs/app/js/sanddance-app.js:4086–4098  ·  view source on GitHub ↗
(aggregation, groupby)

Source from the content-addressed store, hash-verified

4084 };
4085 }
4086 getTransforms(aggregation, groupby) {
4087 const trans = {
4088 type: "joinaggregate",
4089 groupby: groupby.map((0, _expr.safeFieldName)),
4090 ops: [
4091 aggregation
4092 ]
4093 };
4094 if (aggregation === "sum") trans.fields = [
4095 this.props.sumBy.name
4096 ].map((0, _expr.safeFieldName));
4097 return trans;
4098 }
4099}
4100
4101},{"./layout":"jm7Ki","../expr":"f5d82","../scope":"91ogX","../selection":"c6vR2","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"evXg8":[function(require,module,exports) {

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected