File tree 5 files changed +40
-25
lines changed
5 files changed +40
-25
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
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
- }
3
+ #include <ydb/core/formats/arrow/validation/validation.h>
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ PEERDIR(
6
6
ydb/library/actors/core
7
7
ydb/library/conclusion
8
8
ydb/core/formats/arrow/splitter
9
+ ydb/core/formats/arrow/validation
9
10
)
10
11
11
12
SRCS(
12
13
container.cpp
13
- validation.cpp
14
14
adapter.cpp
15
15
accessor.cpp
16
16
sparsed_accessor.cpp
File renamed without changes.
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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()
You can’t perform that action at this time.
0 commit comments