Skip to content
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 v1 fixes #641

Merged
merged 15 commits into from
Jun 21, 2024
Merged

Cesql v1 fixes #641

merged 15 commits into from
Jun 21, 2024

Conversation

Cali0707
Copy link
Contributor

@Cali0707 Cali0707 commented Jun 19, 2024

Update the CESQL implementation to pass the v1 spec conformance tests.

The main change in this PR is that now the EvaluationResult type is used internally as well as for the final return value of the expressions, instead of using a thrower interface to collect errors over time. This allows for handling of specific exceptions that are encountered in subexpressions (for example, missing attributes). Outside of that, there are various small fixes to get the SDK to match the v1 spec.

I tried to organize my work by commit, but since I wanted to get everything to pass before I did that I only sort of managed to do that. So, the commits are generally organized by what changed in them, but there may be some extra stuff in each commit. Sorry about that!

cc @pierDipi @matzew
Fixes #618

@Cali0707 Cali0707 requested a review from pierDipi June 19, 2024 17:16
Cali0707 and others added 12 commits June 19, 2024 14:39
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
…hen there may be an error

Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
@Cali0707 Cali0707 requested a review from pierDipi June 20, 2024 15:43
@pierDipi
Copy link
Member

Error: [ERROR] error: Error fetching URL: https://qpid.apache.org/releases/qpid-proton-j-0.33.7/api/ (java.io.FileNotFoundException: https://qpid.apache.org/releases/qpid-proton-j-0.33.7/api/package-list)

Can you completely remove that link?

Signed-off-by: Calum Murray <cmurray@redhat.com>
@Cali0707
Copy link
Contributor Author

Done - can you recheck this @pierDipi

@pierDipi
Copy link
Member

Thanks @Cali0707

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pierDipi pierDipi merged commit 010627e into cloudevents:main Jun 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port tck tests once the CESQL spec stabilizes more
2 participants