-
Notifications
You must be signed in to change notification settings - Fork 63
Add opt-in for sprout-generated interfaces #1406
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
Conversation
Conformance comparison report
Number passing in both: 5384 Number failing in both: 434 Number passing in Base (92cc57a) but now fail: 0 Number failing in Base (92cc57a) but now pass: 0 |
d69153d
to
f3e30d8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1406 +/- ##
=========================================
Coverage 73.14% 73.14%
Complexity 2393 2393
=========================================
Files 247 247
Lines 17623 17623
Branches 3176 3176
=========================================
Hits 12890 12890
Misses 3856 3856
Partials 877 877
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dc1aee9
to
0010609
Compare
0010609
to
fa26dc7
Compare
@@ -52,6 +52,7 @@ val generate = tasks.register<Exec>("generate") { | |||
"--poems", "builder", | |||
"--poems", "util", | |||
"--opt-in", "org.partiql.value.PartiQLValueExperimental", | |||
"--restrict-interface-impl", |
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.
Currently, restricting interface implementation using the annotation is only used for the partiql-plan
@@ -56,10 +63,17 @@ class KotlinCommand : Callable<Int> { | |||
val input = BufferedReader(FileInputStream(file).reader()).readText() | |||
val parser = SproutParser.default() | |||
val universe = parser.parse(id, input) | |||
if (restrictInterfaceImpl) { | |||
// If interface implementations are restricted, add annotation to opt-in for generated sources. | |||
// Currently only applies for the visitor interface. |
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.
Currently, just apply the interface implementation restriction for the visitor interface
Closing this PR. Will reopen still targeting |
Relevant Issues
@OptIn
option for sprout-generated interfaces #1405Description
DoNotImplementInterface
option for sprout-generated interfacesPlanVisitor
Other Information
Updated Unreleased Section in CHANGELOG: [NO]
Any backward-incompatible changes? [YES/NO]
Still TBD. Adding the opt-in annotation could be a breaking change.
Any new external dependencies? [NO]
Do your changes comply with the Contributing Guidelines
and Code Style Guidelines? [YES]
License Information
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.