-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YQL-9517: RPC Arrow reader YT column converters #599
Conversation
7574b64
to
65913fc
Compare
65913fc
to
62c4d4c
Compare
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 821a825.
🔴 linux-x86_64-release-asan: some tests FAILED for commit 821a825.
|
0583a09
to
648164a
Compare
648164a
to
3682034
Compare
arrow::Datum StringConverterImpl(NUdf::IArrayBuilder* builder, std::shared_ptr<arrow::ArrayData> block) { | ||
if constexpr (!IsDictionary) { | ||
typename ::arrow::TypeTraits<T>::ArrayType val(block); // checking for compatibility | ||
if (val.null_count()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему тут нельзя просто написать return block;
зачем надо ребилдить?
: State_(state) | ||
, ArrowResolver_(MakeSimpleArrowResolver(functionRegistry)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не надо создавать arrow resolver, он есть в TypeCtx (в State_)
@@ -396,12 +396,12 @@ std::unique_ptr<typename TTraits::TResult> MakeFixedSizeBlockReaderImpl(bool isO | |||
} | |||
} | |||
|
|||
template <typename TTraits, typename T> | |||
template <typename TTraits, typename T, NKikimr::NUdf::EDataSlot OriginalT> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TOriginal
@@ -3,6 +3,7 @@ | |||
#include "yql_yt_provider.h" | |||
|
|||
#include <ydb/library/yql/dq/integration/yql_dq_integration.h> | |||
#include <ydb/library/yql/minikql/mkql_function_registry.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
@@ -12,6 +12,7 @@ | |||
#include <ydb/library/yql/providers/common/dq/yql_dq_integration_impl.h> | |||
#include <ydb/library/yql/providers/common/codec/yql_codec_type_flags.h> | |||
#include <ydb/library/yql/providers/common/config/yql_dispatch.h> | |||
#include <ydb/library/yql/providers/common/arrow_resolve/yql_simple_arrow_resolver.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
@@ -73,6 +73,7 @@ PEERDIR( | |||
ydb/library/yql/providers/common/mkql | |||
ydb/library/yql/providers/common/proto | |||
ydb/library/yql/providers/common/activation | |||
ydb/library/yql/providers/common/arrow_resolve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
subTypeAnn.emplace_back(type->GetItemType()); | ||
} | ||
|
||
if (State_->Types->ArrowResolver->AreTypesSupported(ctx.GetPosition(node.Pos()), subTypeAnn, ctx) != IArrowResolver::EStatus::OK) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!State_->Types->ArrowResolver) {
return false;
}
e059534
to
821a825
Compare
No description provided.