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

Fixes miscellaneous test cases #126

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Fixes miscellaneous test cases #126

merged 2 commits into from
Aug 27, 2024

Conversation

johnedquinn
Copy link
Member

Description

Other small fixes that are relatively straightforward.

License

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

Copy link
Contributor

@jpschorr jpschorr left a comment

Choose a reason for hiding this comment

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

I agree with 3 of the 4 tests changed here.
I've marked them with checkmarks in individual comments on each.

Comment on lines 26 to +37
statement:"select x.someColumn from <<{'someColumn': MISSING}>> AS x",
assert:{
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:$bag::[{}]
}
assert: [
{
evalMode: EvalModeCoerce,
result: EvaluationSuccess,
output: $bag::[{}]
},
{
evalMode: EvalModeError,
result: EvaluationFail
}
]
Copy link
Contributor

Choose a reason for hiding this comment

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

  • This is equivalent to select x.someColumn from <<{}>> AS x, which should fail in type checking as per spec secion 4.1

Comment on lines 41 to 47
statement:"select * from <<{'someColumn': MISSING}>>",
assert:{
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:$bag::[
{
_1:{}
}
]
output:$bag::[ { } ]
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

  • This is equivalent to select * from <<{}>>

partiql-tests-data/eval/query/select/projection.ion Outdated Show resolved Hide resolved
Comment on lines +55 to +56
evalMode: EvalModeError,
result: EvaluationFail
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Fails because it attempts to create tuples like {0: 'Kumo'} and 0 is an invalid type for the key of a struct.

@johnedquinn johnedquinn merged commit 9ea5a46 into main Aug 27, 2024
4 checks passed
@johnedquinn johnedquinn deleted the main-fix-misc branch August 27, 2024 22:36
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.

2 participants