Skip to content

Commit 741a7e5

Browse files
committed
External Data Sources: RPC implementation for the describe methods + ydb scheme describe support (#14509)
1 parent 2b267c4 commit 741a7e5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/ydb-cpp-sdk/client/proto/accessor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class TProtoAccessor {
4343
static ::google::protobuf::Map<TStringType, Ydb::TypedValue>* GetProtoMapPtr(TParams& params);
4444
static const Ydb::TableStats::QueryStats& GetProto(const NTable::TQueryStats& queryStats);
4545
static const Ydb::Table::DescribeTableResult& GetProto(const NTable::TTableDescription& tableDescription);
46+
static const Ydb::Table::DescribeExternalDataSourceResult& GetProto(const NTable::TExternalDataSourceDescription&);
47+
static const Ydb::Table::DescribeExternalTableResult& GetProto(const NTable::TExternalTableDescription&);
4648
static const Ydb::Topic::DescribeTopicResult& GetProto(const NYdb::NTopic::TTopicDescription& topicDescription);
4749
static const Ydb::Topic::DescribeConsumerResult& GetProto(const NYdb::NTopic::TConsumerDescription& consumerDescription);
4850
static const Ydb::Monitoring::SelfCheckResult& GetProto(const NYdb::NMonitoring::TSelfCheckResult& selfCheckResult);

src/client/table/proto_accessor.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ const Ydb::Table::DescribeTableResult& TProtoAccessor::GetProto(const NTable::TT
1212
return tableDescription.GetProto();
1313
}
1414

15+
const Ydb::Table::DescribeExternalDataSourceResult& TProtoAccessor::GetProto(const NTable::TExternalDataSourceDescription& description) {
16+
return description.GetProto();
17+
}
18+
19+
const Ydb::Table::DescribeExternalTableResult& TProtoAccessor::GetProto(const NTable::TExternalTableDescription& description) {
20+
return description.GetProto();
21+
}
22+
1523
NTable::TQueryStats TProtoAccessor::FromProto(const Ydb::TableStats::QueryStats& queryStats) {
1624
return NTable::TQueryStats(queryStats);
1725
}

0 commit comments

Comments
 (0)