-
Notifications
You must be signed in to change notification settings - Fork 224
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
CESQL #680
CESQL #680
Conversation
What is the code coverage look like on the new code? |
TCK covers around 80%, most non covered paths are the error paths (which just shortcircuit the computation) |
I wonder if nats changed something... or it needs more time... that is not related to your PR... |
I am assuming a readme will come in a followup, one nit is if you want that module to be released next push, please add the package path to the correct places in the LGTM |
There is an open issue #630
Both fixed, can you check it? This should be ready for the first release, i also made very explicit that the package APIs are subject to changes. |
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.
LGTM
you can follow the manual release process to produce a |
I landed the headers change, you can run the tool on the sql dir like: |
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Implemented literal and negate expression Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Coyright headers done.
No need to have a release now about it. We can wait 2.5, the spec is still in the works. |
import cesqlparser "github.com/cloudevents/sdk-go/sql/v2/parser" | ||
|
||
// Parse the expression | ||
expression, err := cesqlparser.Parse("subject = 'Hello world'") |
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.
mind adding a bit more of use cases, also more complex ones?
Sure: can be done in a follow up PR
I would favor landing what you have and continuing to make PRs on it. We can choose to release it or not when it is time for the LGTM |
This PR provides a new package that implements CESQL spec.
The package passes all the tests of the TCK. This implementation is not super efficient, but I think it's good as a first step.
Signed-off-by: Francesco Guardiani francescoguard@gmail.com