Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix label on scripted field date histograms
Now that we support Painless scripted fields users can create scripted date fields, and thus scripted date histograms. The label making method for the date histogram agg was getting the field name in a way that was incompatible with scripted fields, so I've added some fallback code for that scenario. I looked through the rest of the makeLabel methods on all the other aggs and they all correctly access the field displayName already so this should only need fixed for date histograms. Fixes elastic#8632
- Loading branch information