Skip to content
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

Merged
merged 9 commits into from
Dec 25, 2023

Conversation

MrLolthe1st
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Dec 20, 2023

Note

This is an automated comment that will be appended during run.

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 821a825.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
59418 50239 0 14 9139 26

🔴 linux-x86_64-release-asan: some tests FAILED for commit 821a825.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15631 15480 0 23 98 30

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()) {
Copy link
Collaborator

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))
Copy link
Collaborator

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>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOriginal

@MrLolthe1st MrLolthe1st requested review from vitstn and nepal December 25, 2023 11:50
@@ -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>
Copy link
Collaborator

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>
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@MrLolthe1st MrLolthe1st requested a review from vitstn December 25, 2023 11:53
subTypeAnn.emplace_back(type->GetItemType());
}

if (State_->Types->ArrowResolver->AreTypesSupported(ctx.GetPosition(node.Pos()), subTypeAnn, ctx) != IArrowResolver::EStatus::OK) {
Copy link
Collaborator

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;
}

@MrLolthe1st MrLolthe1st merged commit eda727a into ydb-platform:main Dec 25, 2023
2 of 4 checks passed
@vitstn vitstn mentioned this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants