Skip to content

Commit

Permalink
[debug](thrift rpc) debug thrift rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed May 14, 2024
1 parent fc5cde4 commit 1f7dab7
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2156,13 +2156,20 @@ public TFetchSchemaTableDataResult fetchSchemaTableData(TFetchSchemaTableDataReq
if (!request.isSetSchemaTableName()) {
return MetadataGenerator.errorResult("Fetch schema table name is not set");
}

TFetchSchemaTableDataResult result;
long startTime = System.currentTimeMillis()
// tvf queries
if (request.getSchemaTableName() == TSchemaTableName.METADATA_TABLE) {
return MetadataGenerator.getMetadataTable(request);
result = MetadataGenerator.getMetadataTable(request);
} else {
// database information_schema's tables
return MetadataGenerator.getSchemaTableData(request);
result = MetadataGenerator.getSchemaTableData(request);
}

LOG.info("fetch schema table data cost: {}ms", System.currentTimeMillis() - startTime);

return result;
}

private TNetworkAddress getClientAddr() {
Expand Down

0 comments on commit 1f7dab7

Please sign in to comment.