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

Check in meets_constraint #8

Open
bgiebl opened this issue Jul 20, 2023 · 0 comments
Open

Check in meets_constraint #8

bgiebl opened this issue Jul 20, 2023 · 0 comments

Comments

@bgiebl
Copy link

bgiebl commented Jul 20, 2023

Why is in the meets_constraint() function the constraint only checked if it starts with the value of data_path and not for equality?

https://github.com/MeteoSwiss/opendap-protocol/blob/5d8b1261847c969cfa2eedc2a42b31c84b48035e/opendap_protocol/protocol.py#L551

This leads to a problem for example for a dataset with a dimension with the name 'time' and with a variable with the name 't'
(commonly used for temperature).
If there is now a DODS request with the constraint string 'time' then meets_constraint will also be true for the variable 't'.
So the values of 't' will also appear in the response.
Is there a reason why it is not checked for equality in this line?
And is there a way to fix this behaviour?

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

1 participant