GitHub user morokosi opened a pull request: https://github.com/apache/storm/pull/2295
STORM-2712: accept arbitrary number of rows per tuple in storm-cassandra Current implementation in `TridentResultSetValuesMapper::map` restricts a SELECT query to return one row. In `StateQueryProcessor::finishBatch`, it checks the equality between the result size of `batchRetrieve` and input tuple size. When the number of result rows is less than 1 or greater than 1, it breaks the condition and an exception is thrown. We should accept arbitrary number of rows by adjusting List dimensions. You can merge this pull request into a Git repository by running: $ git pull https://github.com/morokosi/storm cassandra-resultset-mapper Alternatively you can review and apply these changes as the patch at: https://github.com/apache/storm/pull/2295.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 #2295 ---- commit 58bd51ec88c8eff02d35904e106edd68ea45e6a4 Author: morokosi <moromorokosi+git...@gmail.com> Date: 2017-08-28T13:59:14Z STORM-2712: accept arbitrary number of rows per tuple in storm-cassandra ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---