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

limitation of WHERE clause #3

Open
Jayko001 opened this issue Dec 15, 2023 · 0 comments
Open

limitation of WHERE clause #3

Jayko001 opened this issue Dec 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Jayko001
Copy link
Contributor

(not really a bug): does not handle expressions (is this normal for FDW? how would we handle this? can it do better error message?)

-- e.g. this would not work:
SELECT
  *
FROM metrics
WHERE
  metric_name = 'container_cpu_usage_seconds_total'
  AND metric_time > EXTRACT(EPOCH FROM NOW() - INTERVAL '500 seconds')
  AND metric_time < EXTRACT(EPOCH FROM NOW());

-- this would work
SELECT
  *
FROM metrics
WHERE
  metric_name='container_cpu_usage_seconds_total'
  AND metric_time > 1702060087 AND metric_time < 1702062087;
@Jayko001 Jayko001 added the enhancement New feature or request label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant