wuyunfeng edited a comment on issue #1529: [CALCITE-3442] In ElasticSearch adapter, set `stored_fields = _none_` to prohibit FetchPhase get involved URL: https://github.com/apache/calcite/pull/1529#issuecomment-546847713 @danny0405 Elasticsearch X-Pack SQL translate API also can prove this: ``` POST /_sql/translate { "query": "SELECT k1,count(*) FROM test GROUP BY k1,k2", "fetch_size": 100 } ``` the result: ``` { "size": 0, "_source": false, "stored_fields": "_none_", "aggregations": { "groupby": { "composite": { "size": 100, "sources": [ { "612": { "terms": { "field": "k1", "missing_bucket": true, "order": "asc" } } }, { "613": { "terms": { "field": "k2", "missing_bucket": true, "order": "asc" } } } ] } } } } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
