File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ class TJoinHypergraph {
54
54
55
55
void RemoveAttributeAliases () {
56
56
for (auto & leftKey : LeftJoinKeys) {
57
- if (auto idx = leftKey.AttributeName .find_last_of (' .' ); idx != TString::npos) {
57
+ if (auto idx = leftKey.AttributeName .find (' .' ); idx != TString::npos) {
58
58
leftKey.AttributeName = leftKey.AttributeName .substr (idx + 1 );
59
59
}
60
60
}
61
61
62
62
for (auto & rightKey : RightJoinKeys) {
63
- if (auto idx = rightKey.AttributeName .find_last_of (' .' ); idx != TString::npos) {
63
+ if (auto idx = rightKey.AttributeName .find (' .' ); idx != TString::npos) {
64
64
rightKey.AttributeName = rightKey.AttributeName .substr (idx + 1 );
65
65
}
66
66
}
Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ namespace {
24
24
25
25
26
26
TString RemoveAliases (TString attributeName) {
27
- if (auto idx = attributeName.find_last_of (' .' ); idx != TString::npos) {
27
+ if (auto idx = attributeName.find (' .' ); idx != TString::npos) {
28
28
return attributeName.substr (idx+1 );
29
29
}
30
30
return attributeName;
31
31
}
32
32
33
33
TString ExtractAlias (TString attributeName) {
34
- if (auto idx = attributeName.find_last_of (' .' ); idx != TString::npos) {
34
+ if (auto idx = attributeName.find (' .' ); idx != TString::npos) {
35
35
auto substr = attributeName.substr (0 , idx);
36
- if (auto idx2 = substr.find_last_of (' .' ); idx != TString::npos) {
36
+ if (auto idx2 = substr.find (' .' ); idx != TString::npos) {
37
37
substr = substr.substr (idx2+1 );
38
38
}
39
39
return substr;
You can’t perform that action at this time.
0 commit comments