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

Method UpdateTableUsage

be/src/exec/catalog-op-executor.cc:452–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452Status CatalogOpExecutor::UpdateTableUsage(const TUpdateTableUsageRequest& req,
453 TUpdateTableUsageResponse* resp) {
454 int attempt = 0; // Used for debug action only.
455 CatalogServiceConnection::RpcStatus rpc_status =
456 CatalogServiceConnection::DoRpcWithRetry(
457 // The operation doesn't require table lock in catalogd. It doesn't require
458 // the table being loaded neither. So we can use clients for lightweight
459 // requests.
460 env_->catalogd_lightweight_req_client_cache(),
461 *ExecEnv::GetInstance()->GetCatalogdAddress().get(),
462 &CatalogServiceClientWrapper::UpdateTableUsage, req,
463 FLAGS_catalog_client_connection_num_retries,
464 FLAGS_catalog_client_rpc_retry_interval_ms,
465 [&attempt]() { return CatalogRpcDebugFn(&attempt); }, resp);
466 RETURN_IF_ERROR(rpc_status.status);
467 return Status::OK();
468}
469
470Status CatalogOpExecutor::GetNullPartitionName(
471 const TGetNullPartitionNameRequest& req, TGetNullPartitionNameResponse* result) {

Callers

nothing calls this directly

Calls 5

CatalogRpcDebugFnFunction · 0.85
OKFunction · 0.85
GetCatalogdAddressMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected