-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove QueryRunner.run(Query, responseContext) and related legacy methods #4482
Conversation
@@ -197,7 +199,8 @@ public void tearDown() throws Exception | |||
@OutputTimeUnit(TimeUnit.MILLISECONDS) | |||
public void queryNative(Blackhole blackhole) throws Exception | |||
{ | |||
final Sequence<Row> resultSequence = groupByQuery.run(walker, Maps.<String, Object>newHashMap()); | |||
HashMap<String, Object> context = Maps.newHashMap(); |
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.
Could we remove this local var?
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.
Removed
Iterable<Row> results = Sequences.toList(mergedRunner.run(allGranQuery, context), Lists.<Row>newArrayList()); | ||
Iterable<Row> results = Sequences.toList( | ||
mergedRunner.run(QueryPlus.wrap(allGranQuery), context), | ||
new ArrayList<Row>() |
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.
Could we leave Lists.<Row>newArrayList() ?
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.
There is no official preference. I suggested to standardize on new ArrayList<>()
form before, but it was not supported: #3676 (comment)
@jihoonson thanks |
Fixes #4324. Adds
Query.getRunner(walker, responseContext)
method.