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

Wrong data shown if computed column with col() is before the referenced column #243

Closed
hayo0o0o0 opened this issue Jan 7, 2022 · 3 comments
Labels

Comments

@hayo0o0o0
Copy link

Versions:
Kibana: 1.15.2
enhanced table: 12.2.2

Steps to reproduce:
To reproduce:
In dev tools:

PUT /testmetric
{
 "mappings": {

   "properties": {
    "a": {"type": "keyword"},
    "b": {"type": "keyword"}
   }

 }
}

POST testmetric/_bulk
{ "index":{} }
{ "a":"john doe","b":null }
{ "index":{} }
{ "a":"mary smith","b":"abcd" }
{ "index":{} }
{ "a":"mary smith","b":"efgh" }

enhanced table setup:
image
image

Result:
image

When i move the position to 2 or leave it empty the correct data is filled

@hayo0o0o0 hayo0o0o0 mentioned this issue Jan 7, 2022
hayo0o0o0 added a commit to hayo0o0o0/kibana-enhanced-table that referenced this issue Jan 7, 2022
- Handle col() before referenced data
@hayo0o0o0 hayo0o0o0 mentioned this issue Jan 7, 2022
@fbaligand fbaligand added the bug label Jan 7, 2022
@fbaligand
Copy link
Owner

I just reproduced the issue with col('test') formula.
That said, with col1 or col(1) or col['test'] syntax, it works fine.

@hayo0o0o0
Copy link
Author

Thanks, unfortunately, col['test'] does not work for me as per issue #238, but indeed based on the index it works ok.

@fbaligand
Copy link
Owner

Great news: Enhanced Table v1.13.0 is out with this issue fixed!
Numerous other enhancements are also available.

Check it there:
https://github.com/fbaligand/kibana-enhanced-table/releases/tag/v1.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants