-
Notifications
You must be signed in to change notification settings - Fork 156
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
fix: Add required fields to the signature of experimental/to #4901
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incidentally, I wrote the experimental.to
code. It just seems like the user would get a different error if _measurement
or _time
was missing? This seems totally fine to me.
If you are still cautious, you might try out this change in remocal and verify that the new behavior isn't any worse.
Yeah, in theory it would just be a compiletime error instead of a runtime one. But there may be some weirdness due to type inference changing or perhaps the current runtime error doesn't fire for a script as the execution never reaches that point |
570e0f3
to
7630059
Compare
I'm not sure what you mean here. Are you thinking of a particular case? It does seem that a query that sends no data to We developed |
The case of no data is one, another could be just a random statement that never gets executued.
which would now fail at compile time.
Where do I find these? |
The documentation implies that these fields are mandatory to call this function and looking at the implementation it will indeed error if they are missing. Changing this is still technically a breaking change so maybe we want some caution before merging this? (#4773 could perhaps be used to allow an incremental rollout, or I could run this through the query log analyzer I made for #4776)
7630059
to
fd4922a
Compare
This PR has had no recent activity and will be closed soon. |
The documentation implies that these fields are mandatory to call this function and looking at the implementation it will indeed error if they are missing. Changing this is still technically a breaking change so maybe we want some caution before merging this? (#4773 could perhaps be used to allow an incremental rollout, or I could run this through the query log analyzer I made for #4776)