Skip to content

Commit 00cea6f

Browse files
committed
review fixes: uppercase + forgotten return
1 parent 6d6ee94 commit 00cea6f

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

ydb/core/grpc_services/rpc_describe_external_data_source.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@ namespace {
1616
using TProperties = google::protobuf::Map<TProtoStringType, TProtoStringType>;
1717

1818
void Convert(const TServiceAccountAuth& in, TProperties& out) {
19-
out["service_account_id"] = in.GetId();
20-
out["service_account_secret_name"] = in.GetSecretName();
19+
out["SERVICE_ACCOUNT_ID"] = in.GetId();
20+
out["SERVICE_ACCOUNT_SECRET_NAME"] = in.GetSecretName();
2121
}
2222

2323
void Convert(const TBasic& in, TProperties& out) {
24-
out["login"] = in.GetLogin();
25-
out["password_secret_name"] = in.GetPasswordSecretName();
24+
out["LOGIN"] = in.GetLogin();
25+
out["PASSWORD_SECRET_NAME"] = in.GetPasswordSecretName();
2626
}
2727

2828
void Convert(const TMdbBasic& in, TProperties& out) {
29-
out["service_account_id"] = in.GetServiceAccountId();
30-
out["service_account_secret_name"] = in.GetServiceAccountSecretName();
31-
out["login"] = in.GetLogin();
32-
out["password_secret_name"] = in.GetPasswordSecretName();
29+
out["SERVICE_ACCOUNT_ID"] = in.GetServiceAccountId();
30+
out["SERVICE_ACCOUNT_SECRET_NAME"] = in.GetServiceAccountSecretName();
31+
out["LOGIN"] = in.GetLogin();
32+
out["PASSWORD_SECRET_NAME"] = in.GetPasswordSecretName();
3333
}
3434

3535
void Convert(const TAws& in, TProperties& out) {
36-
out["aws_access_key_id_secret_name"] = in.GetAwsAccessKeyIdSecretName();
37-
out["aws_secret_access_key_secret_name"] = in.GetAwsSecretAccessKeySecretName();
38-
out["aws_region"] = in.GetAwsRegion();
36+
out["AWS_ACCESS_KEY_ID_SECRET_NAME"] = in.GetAwsAccessKeyIdSecretName();
37+
out["AWS_SECRET_ACCESS_KEY_SECRET_NAME"] = in.GetAwsSecretAccessKeySecretName();
38+
out["AWS_REGION"] = in.GetAwsRegion();
3939
}
4040

4141
void Convert(const TToken& in, TProperties& out) {
42-
out["token_secret_name"] = in.GetTokenSecretName();
42+
out["TOKEN_SECRET_NAME"] = in.GetTokenSecretName();
4343
}
4444

4545
void Convert(const TAuth& in, TProperties& out) {

ydb/core/grpc_services/rpc_describe_external_table.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ bool ConvertContent(
5050
issues.AddIssue(TStringBuilder() << "Cannot unpack the content of an external table of type: " << sourceType
5151
<< ", error: " << CurrentExceptionMessage()
5252
);
53+
return false;
5354
}
5455
return true;
5556
}

0 commit comments

Comments
 (0)