-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add exclude physical plan compiler impl #1280
Conversation
Conformance comparison report
Number passing in both: 5384 Number failing in both: 434 Number passing in Base (ff60c72) but now fail: 0 Number failing in Base (ff60c72) but now pass: 0 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## partiql-eval #1280 +/- ##
===============================================
Coverage ? 49.43%
Complexity ? 1047
===============================================
Files ? 166
Lines ? 13395
Branches ? 2502
===============================================
Hits ? 6622
Misses ? 6109
Partials ? 664
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
partiql-eval/src/test/kotlin/org/partiql/lang/eval/EvaluatingCompilerExcludeTests.kt
Outdated
Show resolved
Hide resolved
partiql-eval/src/test/kotlin/org/partiql/lang/eval/EvaluatingCompilerExcludeTests.kt
Outdated
Show resolved
Hide resolved
partiql-eval/src/main/kotlin/org/partiql/lang/eval/internal/builtins/ScalarBuiltinsExt.kt
Show resolved
Hide resolved
ec4a767
to
0f053b6
Compare
subsumption tests (to be added back in #1280)
7a1b73f
to
c911b86
Compare
0f053b6
to
ec4a767
Compare
- comment out subsumption tests (to be added in #1280)
ec4a767
to
4ac1b3d
Compare
665ba54
to
0b46b02
Compare
- comment out subsumption tests (to be added in #1280)
bba80b4
to
c526f37
Compare
@@ -117,33 +111,6 @@ class EvaluatingCompilerExcludeTests : EvaluatorTestBase() { | |||
} | |||
>>""" | |||
), | |||
EvaluatorTestCase( // EXCLUDE select star with FROM source list |
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.
Test was same as above.
tc, | ||
EvaluationSession.standard() | ||
) | ||
// TODO: subsumption tests to be added back in https://github.com/partiql/partiql-lang-kotlin/pull/1280 |
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.
Subsumption tests moved to partiql-eval/src/test/kotlin/org/partiql/lang/eval/internal/exclude/CompiledExcludeExprTest.kt
* If possible, prefer the use of the other methods instead because they might return [ExprValue] instances | ||
* that are better optimized for their specific data type (depending on implementation). | ||
*/ | ||
internal fun ionValueToExprValue(value: IonValue): ExprValue { |
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.
Ported from ExprValue.kt
and renamed from ExprValue.of(value)
to ionValueToExprValue(value)
import org.partiql.lang.eval.OrdinalBindings | ||
import org.partiql.lang.eval.internal.ext.namedValue | ||
|
||
internal class ListExprValue(val values: Sequence<ExprValue>) : BaseExprValue() { |
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.
These sequence ExprValue
s were ported from ExprValue.kt
. They were internal to partiql-lang
. Needed to case on the concrete Java class name in ExcludeRelationalOperatorFactory
, so ported to this file in partiql-eval
.
- comment out subsumption tests (to be added in #1280)
- Port over List/Bag/Sexp ExprValue to partiql-eval - Port over IonValue to ExprValue conversion to partiql-eval - Change PhysicalPlanCompilerImpl (and other partiql-eval) to use internal partiql-eval apis
c526f37
to
c2ea303
Compare
Will close this PR in favor of adding |
Relevant Issues
EXCLUDE
SELECT * EXCEPT/EXCLUDE partiql-lang#27Description
Adds implementation of
EXCLUDE
to the plan compiler (different from #1249, which addsEXCLUDE
to theEvaluatingCompiler
). This PR also migrates more of thepartiql-lang
APIs topartiql-eval
'sinternal
package.Other Information
Updated Unreleased Section in CHANGELOG: [YES]
Any backward-incompatible changes? [NO]
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.