MCPcopy Create free account
hub / github.com/apache/impala / _getHeader

Function _getHeader

be/src/catalog/workload-management-init.cc:86–93  ·  view source on GitHub ↗

Builds a catalog service request header that can be used in any catalog operation.

Source from the content-addressed store, hash-verified

84
85/// Builds a catalog service request header that can be used in any catalog operation.
86static TCatalogServiceRequestHeader _getHeader(const string& ip_addr) {
87 TCatalogServiceRequestHeader req_header;
88 req_header.__set_client_ip(ip_addr);
89 req_header.__set_requesting_user(FLAGS_workload_mgmt_maintenance_user);
90 req_header.__set_want_minimal_response(true);
91
92 return req_header;
93} // function _getHeader
94
95/// Equivalent to: DROP TABLE {{db}}.{{tbl_name}} IF NOT EXISTS PURGE.
96static Status _dropTable(CatalogServiceIf* svc, const string& ip_addr, const string& db,

Callers 5

_dropTableFunction · 0.85
_setupDbFunction · 0.85
_createTableFunction · 0.85
_upgradeTableFunction · 0.85
_getTableSchemaVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected