Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lens unable to use any operator aside from "Unique count" on date fields in Lens Tables #120498

Closed
fssup opened this issue Dec 6, 2021 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@fssup
Copy link

fssup commented Dec 6, 2021

Kibana version: 7.15.2

Elasticsearch version: 7.15.2

Server OS version: Ubuntu 18.04.6 LTS

Browser version: Chrome Version 96.0.4664.45 (Official Build) (64-bit)

Browser OS version: Windows 10 Pro 21H1

Original install method (e.g. download page, yum, from source, etc.): Debian package through APT as described in the manuals here

Describe the bug:
Cannot use any operators aside from "Unique count" on date fields in Lens Tables, eg "Last value".

Steps to reproduce:

  1. Create Lens visualisatoin
  2. Select Table visualisation type
  3. Rows -> Add Top values of some identifyer (UUID of some server in our case)
  4. Metrics -> Attempt to add "Last value" of the @timestamp field (
  5. This throws an error in the UI stating This field does not work with the selected function.
    image

Expected behavior:
I expect to be able to display the "Last value" of a date field in a Table visualisation in Lens to show the timestamp of the latest document matching all filters, group, etc.

Screenshots (if relevant):
image

Errors in browser console (if relevant):
Not relevant as far as I'm aware.

Provide logs and/or server output (if relevant):
Not relevant as far as I'm aware.

Any additional context:
I'm attempting to display a table with a row for every keyword of a field (UUID of some server in our case) and then display the timestamp of the last document on that row.
It is possible to do this in a Visualisation, and I cannot find any documentation on why this should not be possible in Lens (except for that the UI won't let me). Maybe related to What operation can you do with what types of field? over at #81780?

@fssup fssup added the bug Fixes for quality problems that affect the customer experience label Dec 6, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 6, 2021
@nickpeihl nickpeihl added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Dec 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 9, 2021
@flash1293
Copy link
Contributor

Agreed, we should really support this, I will add it to the short term list. Duplicate of #104787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants