aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.com>2024-12-11 11:24:45 +0300
committerVitaly Isaev <vitalyisaev@ydb.tech>2024-12-12 10:12:05 +0000
commit32d3316b041c1d66d356a924f55f3c585809aee2 (patch)
treef7495a95c0f8dfc0d2b7406e06b115ff758bf235
parent5f3f208b67cda68a92bdaecffab3d293ab6b2656 (diff)
downloadydb-32d3316b041c1d66d356a924f55f3c585809aee2.tar.gz
YQL-16621 fixed YtPath handling in the plan formatter
commit_hash:c167c23c64fa35f5b86bf09e8f258bce26158299
-rw-r--r--yt/yql/providers/yt/provider/yql_yt_datasource.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt/yql/providers/yt/provider/yql_yt_datasource.cpp b/yt/yql/providers/yt/provider/yql_yt_datasource.cpp
index 7e1ea43a21..21ff1f9385 100644
--- a/yt/yql/providers/yt/provider/yql_yt_datasource.cpp
+++ b/yt/yql/providers/yt/provider/yql_yt_datasource.cpp
@@ -476,8 +476,9 @@ public:
writer.OnKeyedItem("Table");
if (auto table = TMaybeNode<TYtTable>(&node)) {
writer.OnStringScalar(table.Cast().Name().Value());
- }
- else {
+ } else if (auto table = TMaybeNode<TYtPath>(&node).Table().Maybe<TYtTable>()) {
+ writer.OnStringScalar(table.Cast().Name().Value());
+ } else {
writer.OnStringScalar("(tmp)");
}
}