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

RANGE QUERY cannot support COUNT(*) #3460

Closed
tisonkun opened this issue Mar 7, 2024 · 0 comments · Fixed by #3448
Closed

RANGE QUERY cannot support COUNT(*) #3460

tisonkun opened this issue Mar 7, 2024 · 0 comments · Fixed by #3448
Labels
C-bug Category Bugs

Comments

@tisonkun
Copy link
Collaborator

tisonkun commented Mar 7, 2024

What type of bug is this?

Incorrect result

What subsystems are affected?

Query Engine

Minimal reproduce step

This query is not supported:

SELECT
    ts,
    COUNT(*) RANGE '1h' as times
FROM keyboard_monitor ALIGN '1h'
ORDER BY ts DESC
LIMIT 10;

Change COUNT(*) to COUNT(1) can work; COUNT(*) in normal query like SELECT COUNT(*) FROM keyboard_monitor; can work.

What did you expect to see?

Query succeeds.

What did you see instead?

DataFusion error: This feature is not implemented: Physical plan does not support logical expression Wildcard

What operating system did you use?

Greptime Cloud

What version of GreptimeDB did you use?

Greptime Cloud

Relevant log output and stack trace

You can get a complete reproduction following: https://github.com/GreptimeTeam/demo-scene/tree/main/keyboard-monitor.

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

Successfully merging a pull request may close this issue.

1 participant