Skip to content

Commit

Permalink
Merge 77d4675 into df0fa56
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-Avery authored Feb 28, 2024
2 parents df0fa56 + 77d4675 commit c231cd1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ydb/public/lib/ydb_cli/common/format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,13 @@ void TQueryPlanPrinter::PrintPrettyTableImpl(const NJson::TJsonValue& plan, TStr
} else if (key == "E-Rows") {
eRows = formatPrettyTableDouble(value.GetDouble());
} else if (key != "Name") {
info.emplace_back(TStringBuilder() << colors.LightYellow() << key << colors.Default() << ": " << replaceAll(replaceAll(JsonToString(value), "item.", ""), "state.", ""));
if (key == "Predicate" || key == "Condition" || key == "SortBy") {
info.emplace_back(TStringBuilder() << replaceAll(replaceAll(JsonToString(value), "item.", ""), "state.", ""));
} else if (key == "Table") {
info.insert(info.begin(), TStringBuilder() << colors.LightYellow() << key << colors.Default() << ":" << colors.LightGreen() << " " << replaceAll(replaceAll(JsonToString(value), "item.", ""), "state.", "") << colors.Default());
} else {
info.emplace_back(TStringBuilder() << colors.LightYellow() << key << colors.Default() << ": " << replaceAll(replaceAll(JsonToString(value), "item.", ""), "state.", ""));
}
}
}

Expand Down

0 comments on commit c231cd1

Please sign in to comment.