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
Describe the bug
The getMilliseconds behavior matches user expectations but does not match cel-spec. Eventually this function will be deprecated and the spec revised in favor of a function that matches user expectations.
To Reproduce
Check which components this affects:
parser
checker
interpreter
Sample expression and input that reproduces the issue:
// Returns 23ms rather than converting the value to 1023.
duration("1s23ms").getMilliseconds()
Test setup:
See google/cel-spec#206 for more context on how to test this functionality.
Expected behavior
The function returns the milliseconds component of the duration.
The text was updated successfully, but these errors were encountered:
@kunaltawatia The existing behavior should be moved to a new function, but we have yet to finalize the name of the function. I'll follow up here once the new function name is identified and if you're still interested, you are welcome to work on it.
Describe the bug
The
getMilliseconds
behavior matches user expectations but does not match cel-spec. Eventually this function will be deprecated and the spec revised in favor of a function that matches user expectations.To Reproduce
Check which components this affects:
Sample expression and input that reproduces the issue:
Test setup:
See google/cel-spec#206 for more context on how to test this functionality.
Expected behavior
The function returns the milliseconds component of the duration.
The text was updated successfully, but these errors were encountered: