Skip to content

Commit 8533d2d

Browse files
authored
Merge f18dcd5 into d0fa983
2 parents d0fa983 + f18dcd5 commit 8533d2d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ydb/library/yql/minikql/comp_nodes/mkql_blocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ using TBaseComputation = TStatefulWideFlowCodegeneratorNode<TWideFromBlocksWrapp
722722
NUdf::TUnboxedValuePod Get(const THolderFactory& holderFactory, size_t idx) const {
723723
TBlockItem item;
724724
const auto& datum = TArrowBlock::From(Values_[idx]).GetDatum();
725-
Y_DEBUG_ABORT_UNLESS(ValuesDescr_[idx] == datum.descr());
725+
ARROW_DEBUG_CHECK_DATUM_TYPES(ValuesDescr_[idx], datum.descr());
726726
if (datum.is_scalar()) {
727727
item = Readers_[idx]->GetScalarItem(*datum.scalar());
728728
} else {

ydb/library/yql/minikql/computation/mkql_block_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ NUdf::TUnboxedValuePod TBlockFuncNode::DoCalculate(TComputationContext& ctx) con
207207
std::vector<arrow::Datum> argDatums;
208208
for (ui32 i = 0; i < ArgsNodes.size(); ++i) {
209209
argDatums.emplace_back(TArrowBlock::From(ArgsNodes[i]->GetValue(ctx)).GetDatum());
210-
Y_DEBUG_ABORT_UNLESS(ArgsValuesDescr[i] == argDatums.back().descr());
210+
ARROW_DEBUG_CHECK_DATUM_TYPES(ArgsValuesDescr[i], argDatums.back().descr());
211211
}
212212

213213
if (ScalarOutput) {

ydb/library/yql/public/udf/arrow/defs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ do {
2525
}()
2626

2727
#define ARROW_RESULT(op) ARROW_RESULT_S(op, "Bad status")
28+
29+
#define ARROW_DEBUG_CHECK_DATUM_TYPES(expected, got) do { \
30+
Y_DEBUG_ABORT_UNLESS((expected) == (got), "Bad datum type: %s expected, %s got", \
31+
(expected).ToString().c_str(), (got).ToString().c_str()); \
32+
} while(false)

0 commit comments

Comments
 (0)