GitHub user jianqiao opened a pull request:
https://github.com/apache/incubator-quickstep/pull/201
Fix a bug with SelectOperator
This PR fixes a bug that `SELECT ... LIMIT n;` may output more than `n`
rows.
The cause is that `SortMergeRunOperator` creates two relations, where one
relation is the output relation to a `SelectOperator` and the other is a
_temporary_ relation. However, the generated blocks of the temporary relation
are also fed into the `SelectOperator` via a _DataPipelineMessage_ -- thus we
need to check that the input block to a `SelectOperator` is actually from its
input relation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/incubator-quickstep fix-select
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-quickstep/pull/201.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #201
----
commit e896b61d1932d4593cb18033fe4da23a5e238f77
Author: jianqiao <[email protected]>
Date: 2017-03-01T19:16:47Z
Fix a bug with SelectOperator
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---