Skip to content

Commit f4cf7df

Browse files
robot-pigletKamil Khamitov
authored andcommitted
Intermediate changes
commit_hash:dbf7495ed55cb43d01c1e3ced535d1569d76cd2a
1 parent 07b4d69 commit f4cf7df

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

yt/yql/providers/yt/fmr/request_options/proto_helpers/yql_yt_request_proto_helpers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ TFmrTableRef FmrTableRefFromProto(const NProto::TFmrTableRef protoFmrTableRef) {
6464

6565
NProto::TTableRef TableRefToProto(const TTableRef& tableRef) {
6666
NProto::TTableRef protoTableRef;
67-
if (auto* ytTableRefPtr = std::get_if<TYtTableRef>(&tableRef.TableRef)) {
67+
if (auto* ytTableRefPtr = std::get_if<TYtTableRef>(&tableRef)) {
6868
NProto::TYtTableRef protoYtTableRef = YtTableRefToProto(*ytTableRefPtr);
6969
protoTableRef.MutableYtTableRef()->Swap(&protoYtTableRef);
7070
} else {
71-
auto* fmrTableRefPtr = std::get_if<TFmrTableRef>(&tableRef.TableRef);
71+
auto* fmrTableRefPtr = std::get_if<TFmrTableRef>(&tableRef);
7272
NProto::TFmrTableRef protoFmrTableRef = FmrTableRefToProto(*fmrTableRefPtr);
7373
protoTableRef.MutableFmrTableRef()->Swap(&protoFmrTableRef);
7474
}

yt/yql/providers/yt/fmr/request_options/yql_yt_request_options.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ struct TFmrError {
4646
TMaybe<TString> OperationId;
4747
};
4848

49+
struct TError {
50+
TString ErrorMessage;
51+
};
52+
4953
struct TStatistics {
5054
};
5155

@@ -59,9 +63,7 @@ struct TFmrTableRef {
5963
TString TableId;
6064
};
6165

62-
struct TTableRef {
63-
std::variant<TYtTableRef, TFmrTableRef> TableRef;
64-
};
66+
using TTableRef = std::variant<TYtTableRef, TFmrTableRef>;
6567

6668
struct TUploadTaskParams {
6769
TFmrTableRef Input;

0 commit comments

Comments
 (0)