-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
I agree with 3 of the 4 tests changed here.
I've marked them with checkmarks in individual comments on each.
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 | ||
} | ||
] |
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.
- This is equivalent to
select x.someColumn from <<{}>> AS x
, which should fail in type checking as per spec secion4.1
statement:"select * from <<{'someColumn': MISSING}>>", | ||
assert:{ | ||
evalMode:[EvalModeCoerce, EvalModeError], | ||
result:EvaluationSuccess, | ||
output:$bag::[ | ||
{ | ||
_1:{} | ||
} | ||
] | ||
output:$bag::[ { } ] | ||
} | ||
} |
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.
- This is equivalent to
select * from <<{}>>
evalMode: EvalModeError, | ||
result: EvaluationFail |
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.
- Fails because it attempts to create tuples like
{0: 'Kumo'}
and0
is an invalid type for the key of a struct.
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.