ClassCastException with histogram in Kibana

I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?

ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.

Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?

-Zach

On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:

I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?

ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.

Dave

On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:

Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.

Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?

-Zach

On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:

I'm getting the following error when trying to add a histogram panel to a
Kibana dashboard. Could someone help me interpret what the problem might be?

ClassCastException[org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Awesome, glad you sorted out the problem =)

-Zach

On Sat, Sep 21, 2013 at 2:51 PM, David Kincaid kincaid.dave@gmail.comwrote:

Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.

Dave

On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:

Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.

Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?

-Zach

On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:

I'm getting the following error when trying to add a histogram panel to
a Kibana dashboard. Could someone help me interpret what the problem might
be?

ClassCastException[org.**elasticsearch.index.fielddata.**plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.
IndexNumericFieldData

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/Ow_9yVdihmg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

can you provide us with some more information (or even issue a bug report),
when this happens (providing mapping and your query should be sufficient).
It makes more sense to return a valid error value (like "Dont use a string
field, numeric needed") to the user instead of some weird class cast
exception :slight_smile:

Thanks!

--Alex

On Sat, Sep 21, 2013 at 8:51 PM, David Kincaid kincaid.dave@gmail.comwrote:

Thanks for the info. As soon as I looked at the mapping to send it to the
list I saw the problem. The field that I was trying to create the histogram
on is supposed to be a date, but it is actually a string. Thanks for
pointing me in the right direction.

Dave

On Saturday, September 21, 2013 12:49:50 PM UTC-4, Zachary Tong wrote:

Well, at a high level, PagedBytesIndexFieldData is a data structure that
holds strings in memory, while IndexNumericFieldData is for numeric values.
So it appears that something is trying to use string field data for a
numeric operation.

Can you provide the mapping of your index, and the histogram that you are
trying to create (on what fields)? What version of Elasticsearch are you
using?

-Zach

On Friday, September 20, 2013 11:06:09 AM UTC-4, David Kincaid wrote:

I'm getting the following error when trying to add a histogram panel to
a Kibana dashboard. Could someone help me interpret what the problem might
be?

ClassCastException[org.**elasticsearch.index.fielddata.**plain.PagedBytesIndexFieldData
cannot be cast to org.elasticsearch.index.fielddata.
IndexNumericFieldData

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.