(datum, ex)
| 6297 | } |
| 6298 | } |
| 6299 | runExpression(datum, ex) { |
| 6300 | if (ex.name == null) { |
| 6301 | //run on all columns |
| 6302 | const group = { |
| 6303 | expressions: this.columns.map((column, i)=>{ |
| 6304 | const ex2 = Object.assign(Object.assign({}, ex), { |
| 6305 | column, |
| 6306 | name: column.name |
| 6307 | }); |
| 6308 | if (i) ex2.clause = "||"; |
| 6309 | return ex2; |
| 6310 | }) |
| 6311 | }; |
| 6312 | return this.runGroup(datum, group); |
| 6313 | } else return this.runExpressionOnColumn(datum, ex); |
| 6314 | } |
| 6315 | runGroup(datum, group) { |
| 6316 | let accumulator = this.runExpression(datum, group.expressions[0]); |
| 6317 | for(let i = 1; i < group.expressions.length; i++){ |
no test coverage detected