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

Broken table with specific query in 3.0.0 #533

Closed
danipozo opened this issue Apr 4, 2024 · 6 comments
Closed

Broken table with specific query in 3.0.0 #533

danipozo opened this issue Apr 4, 2024 · 6 comments

Comments

@danipozo
Copy link

danipozo commented Apr 4, 2024

The following query:

SELECT
  level,
  ngramSimHash(message_format_string) as format_hash,
  arrayJoin(groupArraySample(${nsamples})(message)) as message
FROM merge(system, 'text_log*') 
WHERE ( 
  event_time >= $from 
    AND 
  event_time <= $to )
GROUP BY level, message_format_string LIMIT 1000

renders a broken table:
image
I cannot get rid of the "Time" column even if I set "Format as" to "Table" (and also I have other tables working fine without that setting). I haven't been able to reproduce this in any other way or find out what about this query is breaking the frontend. Feel free to ask for logs or anything that may be useful to debug.

Another failure mode. This query:

SELECT
  event_time,
  level,
  ngramSimHash(message_format_string) as format_hash,
  arrayJoin(groupArraySample(${nsamples})(message)) as message
FROM merge(system, 'text_log*') tl
WHERE ( 
  event_time >= $from 
    AND 
  event_time <= $to )
GROUP BY 1, level, message_format_string LIMIT 1000

renders as:
image

@Slach
Copy link
Collaborator

Slach commented Apr 4, 2024

Could you try the same queries in latest 2.x plugin version and share screenshots?

@danipozo
Copy link
Author

danipozo commented Apr 4, 2024

It works correctly in 2.5.4 setting "Format as" to table:
image

@Slach
Copy link
Collaborator

Slach commented Apr 5, 2024

could be duplicated with #515
will try to reproduce with master branch locally

@danipozo
Copy link
Author

danipozo commented Apr 8, 2024

could be duplicated with #515 will try to reproduce with master branch locally

It seems to be working in master in my own local tests. Just to know, when is a minor release expected?

@Slach
Copy link
Collaborator

Slach commented Apr 9, 2024

It seems to be working in master in my own local tests. Just to know, when is a minor release expected?

soon as possible

@danipozo
Copy link
Author

soon as possible

Thanks! Closing this issue since it is fixed in the pre-releases.

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

No branches or pull requests

2 participants