Skip to content

Commit 2450266

Browse files
fix build
1 parent 7982408 commit 2450266

File tree

5 files changed

+40
-25
lines changed

5 files changed

+40
-25
lines changed
Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
#pragma once
22

3-
#include <contrib/libs/apache/arrow/cpp/src/arrow/status.h>
4-
#include <contrib/libs/apache/arrow/cpp/src/arrow/record_batch.h>
5-
#include <util/system/yassert.h>
6-
7-
namespace NKikimr::NArrow {
8-
9-
class TStatusValidator {
10-
public:
11-
static void Validate(const arrow::Status& status);
12-
13-
template <class T>
14-
static T GetValid(const arrow::Result<T>& result) {
15-
Validate(result.status());
16-
return *result;
17-
}
18-
19-
template <class T>
20-
static T GetValid(arrow::Result<T>&& result) {
21-
Validate(result.status());
22-
return std::move(*result);
23-
}
24-
};
25-
26-
}
3+
#include <ydb/core/formats/arrow/validation/validation.h>

ydb/core/formats/arrow/common/ya.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ PEERDIR(
66
ydb/library/actors/core
77
ydb/library/conclusion
88
ydb/core/formats/arrow/splitter
9+
ydb/core/formats/arrow/validation
910
)
1011

1112
SRCS(
1213
container.cpp
13-
validation.cpp
1414
adapter.cpp
1515
accessor.cpp
1616
sparsed_accessor.cpp
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#pragma once
2+
3+
#include <contrib/libs/apache/arrow/cpp/src/arrow/status.h>
4+
#include <contrib/libs/apache/arrow/cpp/src/arrow/record_batch.h>
5+
#include <util/system/yassert.h>
6+
7+
namespace NKikimr::NArrow {
8+
9+
class TStatusValidator {
10+
public:
11+
static void Validate(const arrow::Status& status);
12+
13+
template <class T>
14+
static T GetValid(const arrow::Result<T>& result) {
15+
Validate(result.status());
16+
return *result;
17+
}
18+
19+
template <class T>
20+
static T GetValid(arrow::Result<T>&& result) {
21+
Validate(result.status());
22+
return std::move(*result);
23+
}
24+
};
25+
26+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
LIBRARY()
2+
3+
PEERDIR(
4+
contrib/libs/apache/arrow
5+
ydb/library/actors/core
6+
)
7+
8+
SRCS(
9+
validation.cpp
10+
)
11+
12+
END()

0 commit comments

Comments
 (0)