Skip to content

Commit dddfe05

Browse files
author
Hendrik Muhs
committed
checkstyle fixes
1 parent eb457bc commit dddfe05

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot

1 file changed

+2
-1
lines changed

x-pack/plugin/transform/src/test/java/org/elasticsearch/xpack/transform/transforms/pivot/PivotTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ private AggregationConfig getAggregationConfig(String agg) throws IOException {
215215
"{\"pivot_scripted_metric\": {\n"
216216
+ "\"scripted_metric\": {\n"
217217
+ " \"init_script\" : \"state.transactions = []\",\n"
218-
+ " \"map_script\" : \"state.transactions.add(doc.type.value == 'sale' ? doc.amount.value : -1 * doc.amount.value)\", \n"
218+
+ " \"map_script\" : "
219+
+ " \"state.transactions.add(doc.type.value == 'sale' ? doc.amount.value : -1 * doc.amount.value)\", \n"
219220
+ " \"combine_script\" : \"double profit = 0; for (t in state.transactions) { profit += t } return profit\",\n"
220221
+ " \"reduce_script\" : \"double profit = 0; for (a in states) { profit += a } return profit\"\n"
221222
+ " }\n"

0 commit comments

Comments
 (0)