# Inconsistent results from Hive Query of ES table

**URL:** https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922
**Category:** Elasticsearch
**Tags:** es-hadoop
**Created:** [February 1, 2018, 2:20am UTC](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922 "2018-02-01T02:20:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sharon\_L](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sharon\_L](https://discuss.elastic.co/u/Sharon_L)
#### Post date: [February 1, 2018, 2:20am UTC](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922/1 "2018-02-01T02:20:34Z")

</div>

Hi,

I created an external table of an ES index in Hive and configured a query using es.query. The number of records returned through the hive query is less then that of a direct query using ES. How do we get the Hive query to return all results from the index?

Thank You.

Rgds  
SL

---

<div class="post-metadata">

### Author: ![Sharon\_L](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sharon\_L](https://discuss.elastic.co/u/Sharon_L)
#### Post date: [February 1, 2018, 2:38am UTC](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922/2 "2018-02-01T02:38:10Z")

</div>

Errors in fields mappings resulted in the inconsistency

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 1, 2018, 2:38am UTC](https://discuss.elastic.co/t/inconsistent-results-from-hive-query-of-es-table/117922/3 "2018-03-01T02:38:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
