forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cell maker lib & parsing from json KIKIMR-20673 (ydb-platform#1255)
- Loading branch information
Showing
18 changed files
with
276 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
ydb/core/io_formats/csv_arrow.cpp → ydb/core/io_formats/arrow/csv_arrow.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
ydb/core/io_formats/csv.h → ydb/core/io_formats/arrow/csv_arrow.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ydb/core/io_formats/ut_csv.cpp → ydb/core/io_formats/arrow/csv_arrow_ut.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
RECURSE_FOR_TESTS(ut) | ||
|
||
LIBRARY() | ||
|
||
SRCS( | ||
csv_arrow.cpp | ||
) | ||
|
||
CFLAGS( | ||
-Wno-unused-parameter | ||
) | ||
|
||
PEERDIR( | ||
ydb/core/scheme_types | ||
ydb/core/formats/arrow | ||
) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <ydb/core/scheme/scheme_tablecell.h> | ||
#include <ydb/core/scheme_types/scheme_type_info.h> | ||
|
||
#include <library/cpp/json/json_value.h> | ||
|
||
#include <util/generic/strbuf.h> | ||
#include <util/generic/string.h> | ||
#include <util/memory/pool.h> | ||
|
||
namespace NKikimr::NFormats { | ||
|
||
bool MakeCell(TCell& cell, TStringBuf value, NScheme::TTypeInfo type, TMemoryPool& pool, TString& err); | ||
bool MakeCell(TCell& cell, const NJson::TJsonValue& value, NScheme::TTypeInfo type, TMemoryPool& pool, TString& err); | ||
bool CheckCellValue(const TCell& cell, NScheme::TTypeInfo type); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
LIBRARY() | ||
|
||
SRCS( | ||
cell_maker.cpp | ||
) | ||
|
||
PEERDIR( | ||
ydb/core/scheme | ||
ydb/core/scheme_types | ||
ydb/library/binary_json | ||
ydb/library/dynumber | ||
ydb/library/yql/minikql/dom | ||
ydb/library/yql/public/decimal | ||
ydb/library/yql/public/udf | ||
ydb/library/yql/utils | ||
contrib/libs/double-conversion | ||
library/cpp/json | ||
library/cpp/json/yson | ||
library/cpp/string_utils/base64 | ||
library/cpp/string_utils/quote | ||
) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,9 @@ | ||
RECURSE_FOR_TESTS(ut) | ||
|
||
LIBRARY() | ||
|
||
SRCS( | ||
csv_ydb_dump.cpp | ||
csv_arrow.cpp | ||
) | ||
|
||
CFLAGS( | ||
-Wno-unused-parameter | ||
RECURSE( | ||
arrow | ||
cell_maker | ||
ydb_dump | ||
) | ||
|
||
PEERDIR( | ||
contrib/libs/double-conversion | ||
library/cpp/string_utils/quote | ||
ydb/core/formats/arrow | ||
ydb/core/scheme | ||
ydb/library/binary_json | ||
ydb/library/dynumber | ||
ydb/library/yql/minikql/dom | ||
ydb/library/yql/public/decimal | ||
ydb/library/yql/public/udf | ||
ydb/library/yql/utils | ||
ydb/public/lib/scheme_types | ||
RECURSE_FOR_TESTS( | ||
arrow | ||
) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
Oops, something went wrong.