Skip to content

Commit 1130be0

Browse files
authored
Another workaround for exported read table API (#7726)
1 parent 5bf9299 commit 1130be0

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

ydb/library/yql/parser/pg_wrapper/read_table.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,13 @@ extern "C" void yql_iterator_close(struct yql_table_iterator** iterator) {
115115
pfree(*iterator);
116116
*iterator = nullptr;
117117
}
118+
119+
extern "C" ui64 TouchReadTableApi() {
120+
return
121+
(ui64)&yql_read_table +
122+
(ui64)&yql_iterator_error +
123+
(ui64)&yql_iterator_has_data +
124+
(ui64)&yql_iterator_value +
125+
(ui64)&yql_iterator_move +
126+
(ui64)&yql_iterator_close;
127+
}

ydb/library/yql/parser/pg_wrapper/utils.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,13 @@ class TExtensionsRegistry::TImpl {
105105
TVector<std::unique_ptr<TExtension>> Extensions;
106106
};
107107

108+
extern "C" ui64 TouchReadTableApi();
109+
108110
TExtensionsRegistry::TExtensionsRegistry()
109111
: Impl_(std::make_unique<TImpl>())
110-
{}
112+
{
113+
Y_UNUSED(TouchReadTableApi());
114+
}
111115

112116
TExtensionsRegistry& TExtensionsRegistry::Instance() {
113117
return *Singleton<TExtensionsRegistry>();

ydb/library/yql/parser/pg_wrapper/ya.make

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SRCS(
3333
comp_factory.cpp
3434
type_cache.cpp
3535
pg_aggs.cpp
36-
GLOBAL read_table.cpp
36+
read_table.cpp
3737
recovery.cpp
3838
superuser.cpp
3939
config.cpp

0 commit comments

Comments
 (0)