Skip to content

Updates partiql-eval public API and internal classes #1287

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

Merged
merged 22 commits into from
Dec 8, 2023

Conversation

rchowell
Copy link
Contributor

@rchowell rchowell commented Dec 8, 2023

Updates partiql-eval interfaces

License Information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rchowell rchowell requested a review from johnedquinn December 8, 2023 00:35
Copy link

github-actions bot commented Dec 8, 2023

Conformance comparison report

Base (941a760) 62d258f +/-
% Passing 92.33% 92.54% 0.21%
✅ Passing 5372 5384 12
❌ Failing 446 434 -12
🔶 Ignored 0 0 0
Total Tests 5818 5818 0

Number passing in both: 5372

Number failing in both: 434

Number passing in Base (941a760) but now fail: 0

Number failing in Base (941a760) but now pass: 12

The following test(s) were previously failing but now pass. Before merging, confirm they are intended to pass:

Click here to see
  • equiv attribute value pair unpivot non-missing, compileOption: LEGACY
  • equiv attribute value pair unpivot missing, compileOption: LEGACY
  • notInPredicateSingleExpr, compileOption: LEGACY
  • tuple navigation with array notation without explicit CAST to string, compileOption: LEGACY
  • path on string, compileOption: LEGACY
  • tuple navigation missing attribute dot notation, compileOption: LEGACY
  • tuple navigation missing attribute array notation, compileOption: LEGACY
  • single source FROM with bag and AT clause, compileOption: LEGACY
  • single source FROM with scalar and AT clause, compileOption: LEGACY
  • single source FROM with tuple and AT clause, compileOption: LEGACY
  • single source FROM with absent value null and AT clause, compileOption: LEGACY
  • single source FROM with absent value missing and AT clause, compileOption: LEGACY

@rchowell rchowell changed the title Partiql eval interfaces Updates partiql-eval public API and internal classes Dec 8, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (partiql-eval@941a760). Click here to learn what that means.

Additional details and impacted files
@@               Coverage Diff               @@
##             partiql-eval    #1287   +/-   ##
===============================================
  Coverage                ?   49.23%           
  Complexity              ?     1045           
===============================================
  Files                   ?      166           
  Lines                   ?    13392           
  Branches                ?     2500           
===============================================
  Hits                    ?     6593           
  Misses                  ?     6144           
  Partials                ?      655           
Flag Coverage Δ
CLI 11.87% <0.00%> (?)
EXAMPLES 80.28% <0.00%> (?)
LANG 54.65% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -45,7 +45,7 @@ val elements: List<AnyElement> = loadAllElements("type::{ name: foo }")
val parsedSchemaModel: IonSchemaModel.Model = parseSchema(elements)
```

Alternatively, users can parse `ion-schema-kotlin` [Schema](https://github.com/amzn/ion-schema-kotlin/blob/master/src/com/amazon/ionschema/Schema.kt#L36)
Alternatively, users can parse `ion-schema-kotlin` [Schema](https://github.com/amzn/ion-schema-kotlin/blob/master/src/com/amazon/ionschema/Namespace.kt#L36)
Copy link
Member

Choose a reason for hiding this comment

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

This URL doesn't work. Not blocking though, since the old URL didn't work as well.

Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking, this was left behind.

Comment on lines 68 to 80
@OptIn(PartiQLValueExperimental::class)
public class MyInt32Plus : PartiQLFunction.Scalar {

override val signature: FunctionSignature.Scalar = TODO("Not yet implemented")

override fun invoke(args: Array<PartiQLValue>): PartiQLValue {
val arg0 = args[0].check<Int32Value>().value
val arg1 = args[1].check<Int32Value>().value
if (arg0 == null || arg1 == null) {
return int32Value(null)
}
return int32Value(arg0 + arg1)
}
Copy link
Member

Choose a reason for hiding this comment

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

Left behind.

@rchowell rchowell force-pushed the partiql-eval-interfaces branch from 7c0af6e to 46b98c0 Compare December 8, 2023 19:38
@rchowell rchowell merged commit 35223d4 into partiql-eval Dec 8, 2023
@rchowell rchowell deleted the partiql-eval-interfaces branch December 8, 2023 20:06
alancai98 added a commit that referenced this pull request Dec 12, 2023
---------

Co-authored-by: John Ed Quinn <[email protected]>
Co-authored-by: Yingtao Liu <[email protected]>
Co-authored-by: yliuuuu <[email protected]>
Co-authored-by: John Ed Quinn <[email protected]>
Co-authored-by: Alan Cai <[email protected]>
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.

5 participants