Wenzhe Zhou has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17396


Change subject: IMPALA-10197: Add KUDU_REPLICA_SELECTION query option
......................................................................

IMPALA-10197: Add KUDU_REPLICA_SELECTION query option

Sometimes it is useful to target queries at the leader only replica
instead of the default closest replica.
This patch added new query option KUDU_REPLICA_SELECTION with which to
choose replicas for Kudu amongst multiple Kudu replicas.
Removed variable FLAGS_pick_only_leaders_for_tests since its usage can
be replaced by the new query option.
Added new planner and end-to-end tests for the new query option.

Testings:
  - Passed exhaustive tests.

Change-Id: I613e6d9be8680c05880f7cf962a31aa38931f3d9
---
M be/src/exec/kudu-scanner.cc
M be/src/service/query-options-test.cc
M be/src/service/query-options.cc
M be/src/service/query-options.h
M be/src/util/debug-util.cc
M be/src/util/debug-util.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
M fe/src/main/java/org/apache/impala/planner/KuduScanNode.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A 
testdata/workloads/functional-planner/queries/PlannerTest/kudu-replica-selection-closest-replica.test
A 
testdata/workloads/functional-planner/queries/PlannerTest/kudu-replica-selection-leader-only.test
M tests/query_test/test_kudu.py
13 files changed, 359 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/96/17396/1
--
To view, visit http://gerrit.cloudera.org:8080/17396
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I613e6d9be8680c05880f7cf962a31aa38931f3d9
Gerrit-Change-Number: 17396
Gerrit-PatchSet: 1
Gerrit-Owner: Wenzhe Zhou <wz...@cloudera.com>
Gerrit-Reviewer: Grant Henke <granthe...@apache.org>

Reply via email to