You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFramePivotRestIT.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -87,11 +87,11 @@ public void testHistogramPivot() throws Exception {
87
87
88
88
89
89
config += " \"pivot\": {"
90
-
+ " \"group_by\": [ {"
90
+
+ " \"group_by\": {"
91
91
+ " \"every_2\": {"
92
92
+ " \"histogram\": {"
93
93
+ " \"interval\": 2,\"field\":\"stars\""
94
-
+ " } } } ],"
94
+
+ " } } },"
95
95
+ " \"aggregations\": {"
96
96
+ " \"avg_rating\": {"
97
97
+ " \"avg\": {"
@@ -125,11 +125,11 @@ public void testBiggerPivot() throws Exception {
125
125
126
126
127
127
config += " \"pivot\": {"
128
-
+ " \"group_by\": [ {"
128
+
+ " \"group_by\": {"
129
129
+ " \"reviewer\": {"
130
130
+ " \"terms\": {"
131
131
+ " \"field\": \"user_id\""
132
-
+ " } } } ],"
132
+
+ " } } },"
133
133
+ " \"aggregations\": {"
134
134
+ " \"avg_rating\": {"
135
135
+ " \"avg\": {"
@@ -199,11 +199,11 @@ public void testDateHistogramPivot() throws Exception {
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/qa/single-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFrameRestTestCase.java
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/transforms/pivot/AggregationConfig.java
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/transforms/pivot/AggregationResultUtils.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,22 +27,22 @@ final class AggregationResultUtils {
27
27
* Extracts aggregation results from a composite aggregation and puts it into a map.
28
28
*
29
29
* @param agg The aggregation result
30
-
* @param sources The original sources used for querying
30
+
* @param groups The original groupings used for querying
31
31
* @param aggregationBuilders the aggregation used for querying
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/transforms/pivot/DateHistogramGroupSource.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,11 @@ public static DateHistogramGroupSource fromXContent(final XContentParser parser,
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/transforms/pivot/GroupConfig.java
0 commit comments