Kathy Sun has uploaded a new patch set (#19). Change subject: IMPALA-4024: Add "system" database and expose Impala metrics as a table ......................................................................
IMPALA-4024: Add "system" database and expose Impala metrics as a table This is to expose metadata (current status of impala, e.g impala-metrics) into system table, so that users could query them via sql. Currently, only metrics table is included. We could add other table later, e.g. queries table You can run impala-shell.sh and type query like: select * from system.metrics; select name, value, description from system.metrics; Change-Id: I7adbeb45220c468e43b424d70c30b952f6cec2cd --- M be/src/exec/CMakeLists.txt M be/src/exec/exec-node.cc A be/src/exec/system-table-scan-node.cc A be/src/exec/system-table-scan-node.h A be/src/exec/system-table-scanner.cc A be/src/exec/system-table-scanner.h M be/src/runtime/coordinator.cc M be/src/runtime/descriptors.cc M be/src/runtime/descriptors.h M be/src/scheduling/simple-scheduler.cc M be/src/scheduling/simple-scheduler.h M be/src/service/fe-support.cc M be/src/util/metrics.h M common/thrift/CatalogObjects.thrift M common/thrift/Descriptors.thrift M common/thrift/PlanNodes.thrift M common/thrift/StatestoreService.thrift M fe/src/main/java/com/cloudera/impala/analysis/AnalysisContext.java M fe/src/main/java/com/cloudera/impala/analysis/Analyzer.java M fe/src/main/java/com/cloudera/impala/analysis/DescriptorTable.java M fe/src/main/java/com/cloudera/impala/analysis/TupleDescriptor.java M fe/src/main/java/com/cloudera/impala/catalog/Catalog.java M fe/src/main/java/com/cloudera/impala/catalog/Db.java A fe/src/main/java/com/cloudera/impala/catalog/SystemDb.java A fe/src/main/java/com/cloudera/impala/catalog/SystemTable.java M fe/src/main/java/com/cloudera/impala/catalog/TableId.java M fe/src/main/java/com/cloudera/impala/planner/SingleNodePlanner.java A fe/src/main/java/com/cloudera/impala/planner/SystemTableScanNode.java M fe/src/main/java/com/cloudera/impala/service/FeSupport.java M fe/src/main/java/com/cloudera/impala/service/Frontend.java M fe/src/test/java/com/cloudera/impala/analysis/AnalyzeStmtsTest.java M fe/src/test/java/com/cloudera/impala/analysis/AuthorizationTest.java M fe/src/test/java/com/cloudera/impala/planner/PlannerTest.java M fe/src/test/resources/authz-policy.ini.template A testdata/workloads/functional-planner/queries/PlannerTest/system-db.test A testdata/workloads/functional-query/queries/QueryTest/system-database.test M tests/query_test/test_scanners.py 37 files changed, 1,106 insertions(+), 22 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/63/3863/19 -- To view, visit http://gerrit.cloudera.org:8080/3863 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I7adbeb45220c468e43b424d70c30b952f6cec2cd Gerrit-PatchSet: 19 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Kathy Sun <kathy....@cloudera.com> Gerrit-Reviewer: Kathy Sun <kathy....@cloudera.com> Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>