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
Ordering two Timestamp fields in a (buf.validate.message).cel rule doesn't transpile. The plugin emits an unconditional __cel_runtime_error__, so validate() returns Err for every input.
Cause: emit/cel.rs::field_to_schema_entry maps every FieldKind::Message to CelType::Dyn, so this.start_timestamp types as MessageRef("google.protobuf.Timestamp") and never reaches the (CelType::Timestamp, CelType::Timestamp) comparison arm in emit/cel_compile.rs. has() compiles fine; only the comparison falls back. scalar_this_for_with, in the same file, already does the WKT → CelType::Timestamp mapping for the field-level this binding.
Ask: map Timestamp and Duration message fields to CelType::Timestamp / CelType::Duration in the message-level schema path, leaving has() on presence semantics.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Ordering two Timestamp fields in a
(buf.validate.message).celrule doesn't transpile. The plugin emits an unconditional__cel_runtime_error__, sovalidate()returnsErrfor every input.Cause:
emit/cel.rs::field_to_schema_entrymaps everyFieldKind::MessagetoCelType::Dyn, sothis.start_timestamptypes asMessageRef("google.protobuf.Timestamp")and never reaches the(CelType::Timestamp, CelType::Timestamp)comparison arm in emit/cel_compile.rs.has()compiles fine; only the comparison falls back.scalar_this_for_with, in the same file, already does the WKT →CelType::Timestampmapping for the field-level this binding.Ask: map Timestamp and Duration message fields to
CelType::Timestamp/CelType::Durationin the message-level schema path, leavinghas()on presence semantics.Reproduced on v0.7.0.
All reactions