[ut](meta) added unit test for frontend service impl (#28455)

This commit is contained in:
Nitin-Kashyap
2024-01-12 15:27:15 +05:30
committed by yiguolei
parent 91e546cfe3
commit c92648cb27
2 changed files with 65 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class MetadataGenerator {
private static final Logger LOG = LogManager.getLogger(MetadataGenerator.class);
public static TFetchSchemaTableDataResult getMetadataTable(TFetchSchemaTableDataRequest request) throws TException {
if (!request.isSetMetadaTableParams()) {
if (!request.isSetMetadaTableParams() || !request.getMetadaTableParams().isSetMetadataType()) {
return errorResult("Metadata table params is not set. ");
}
TFetchSchemaTableDataResult result;