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

Throw an error when an invalid expression is used with aux iterators #6258

Merged
merged 1 commit into from
Apr 7, 2016

Conversation

jsternberg
Copy link
Contributor

The following query was fixed previously:

SELECT 'value' FROM cpu

This ended up hitting the buildExprIterator() code path and was
handled properly. But this query:

SELECT 'value', value FROM cpu

This took a different code path that would trigger a panic because it
triggered a panic instead of an error condition. This code path has now
been modified to trigger an error instead of a panic.

Fixes #6248.

@toddboom toddboom mentioned this pull request Apr 7, 2016
7 tasks
@jsternberg
Copy link
Contributor Author

Backport of #6255 to 0.12.

@toddboom
Copy link
Contributor

toddboom commented Apr 7, 2016

👍

The following query was fixed previously:

    SELECT 'value' FROM cpu

This ended up hitting the `buildExprIterator()` code path and was
handled properly. But this query:

    SELECT 'value', value FROM cpu

This took a different code path that would trigger a panic because it
triggered a panic instead of an error condition. This code path has now
been modified to trigger an error instead of a panic.

Fixes #6248.
@jsternberg jsternberg force-pushed the js-0.12-invalid-expression-panic branch from a654206 to 0ee0b3b Compare April 7, 2016 20:05
@jsternberg jsternberg merged commit e094138 into 0.12 Apr 7, 2016
@jsternberg jsternberg deleted the js-0.12-invalid-expression-panic branch April 7, 2016 20:25
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