diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/dataframe/action/PreviewDataFrameTransformAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/dataframe/action/PreviewDataFrameTransformAction.java index 3269d5415f1..18860661801 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/dataframe/action/PreviewDataFrameTransformAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/dataframe/action/PreviewDataFrameTransformAction.java @@ -65,7 +65,7 @@ public class PreviewDataFrameTransformAction extends Action + { + "source": "airline-data", + "pivot": { + "group_by": {"airline": {"terms": {"not_a_terms_param": "airline"}}}, + "aggs": {"avg_response": {"avg": {"field": "responsetime"}}} + } + }