You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be no method of defining a >, >=. <, <= constraint on a numeric attribute such as memory.totalbytes or cpu.numcores.
I naively created such a constraint and it didn't work as expected. The documentation does say that the comparison is done lexicographically.
Could a means be provided to do a numeric comparison for attributes? Something like a custom driver attribute, or a user metadata attribute could reasonably be defined as numeric and you might want to do a numeric comparison on it.
The text was updated successfully, but these errors were encountered:
This PR changes constraint comparisons to be numeric rather than
lexical if both operands are integers or floats.
Inspiration #4856Closes#4729Closes#14719
* cleanup: fixup linter warnings in schedular/feasible.go
* core: numeric operands comparisons in constraints
This PR changes constraint comparisons to be numeric rather than
lexical if both operands are integers or floats.
Inspiration #4856Closes#4729Closes#14719
* fix: always parse as int64
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
There appears to be no method of defining a >, >=. <, <= constraint on a numeric attribute such as memory.totalbytes or cpu.numcores.
I naively created such a constraint and it didn't work as expected. The documentation does say that the comparison is done lexicographically.
Could a means be provided to do a numeric comparison for attributes? Something like a custom driver attribute, or a user metadata attribute could reasonably be defined as numeric and you might want to do a numeric comparison on it.
The text was updated successfully, but these errors were encountered: