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

Method getTransforms

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

Source from the content-addressed store, hash-verified

3948 };
3949 }
3950 getTransforms(aggregation, groupby) {
3951 const trans = {
3952 type: "joinaggregate",
3953 groupby: groupby.map((0, _expr.safeFieldName)),
3954 ops: [
3955 aggregation
3956 ]
3957 };
3958 if (aggregation === "sum") trans.fields = [
3959 this.props.sumBy.name
3960 ].map((0, _expr.safeFieldName));
3961 return trans;
3962 }
3963 getAggregation() {
3964 const { props } = this;
3965 let s;

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected