This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch rc/2.2.0
in repository https://gitbox.apache.org/repos/asf/tsfile.git
discard f20151ea Implement TagFilter functionality (#635)
discard c114c511 Fix/cpp get device schema (#642)
add 3d125cf1 add tree api.
add 1e50e9ae Fix/cpp get device schema (#642)
add cdc29ca8 Implement TagFilter functionality (#635)
add b1fba46b support read tree data (#643)
add a207e69c Feature/cpp removed antlr4 (#648)
add 3ecad5c5 Feature/python new datatypes (#641) (#644)
add 48383302 add test for confg modify. (#652)
add e2304f92 Colin toolchain (#653)
add c357efcf Fix release issue. (#662)
add 8d0979af tmp code (#666)
add 7af3f9e1 Fix null field in cpp. (#668)
add 7cf93584 update fmt. (#669)
add e3ba398f add to_dataframe annotation.
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (f20151ea)
\
N -- N -- N refs/heads/rc/2.2.0 (e3ba398f)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
.github/workflows/unit-test-cpp.yml | 5 +-
.github/workflows/unit-test-python.yml | 17 +
cpp/.clang-format | 3 +-
cpp/CMakeLists.txt | 67 +-
cpp/README.md | 34 +-
cpp/build.sh | 66 +-
cpp/examples/c_examples/demo_write.c | 6 +-
cpp/examples/cpp_examples/demo_read.cpp | 12 +-
cpp/examples/cpp_examples/demo_write.cpp | 2 -
cpp/pom.xml | 36 +-
cpp/src/CMakeLists.txt | 110 +++-
cpp/src/common/allocator/alloc_base.h | 18 +-
cpp/src/common/allocator/byte_stream.h | 262 ++++----
cpp/src/common/allocator/mem_alloc.cc | 44 +-
cpp/src/common/allocator/my_string.h | 60 +-
cpp/src/common/allocator/page_arena.cc | 18 +-
cpp/src/common/allocator/page_arena.h | 24 +-
cpp/src/common/container/array.h | 24 +-
cpp/src/common/container/bit_map.h | 10 +-
cpp/src/common/container/blocking_queue.cc | 6 +-
cpp/src/common/container/byte_buffer.h | 22 +-
cpp/src/common/container/hash_func.h | 12 +-
cpp/src/common/container/hash_node.h | 12 +-
cpp/src/common/container/list.h | 38 +-
cpp/src/common/container/murmur_hash3.h | 14 +-
cpp/src/common/container/slice.h | 26 +-
cpp/src/common/container/sorted_array.h | 22 +-
cpp/src/common/datatype/value.h | 60 +-
cpp/src/common/device_id.cc | 404 ++++++++++++
cpp/src/common/device_id.h | 323 ++++-----
cpp/src/common/global.cc | 8 +
cpp/src/common/global.h | 6 +-
cpp/src/common/mutex/mutex.h | 4 +-
cpp/src/common/path.h | 13 +-
cpp/src/common/record.h | 47 +-
cpp/src/common/row_record.h | 67 +-
cpp/src/common/schema.h | 83 +--
cpp/src/common/seq_tvlist.h | 10 +-
cpp/src/common/statistic.h | 478 +++++++-------
cpp/src/common/tablet.cc | 80 +--
cpp/src/common/tablet.h | 60 +-
cpp/src/common/tablet_iterator.h | 20 +-
cpp/src/common/tsblock/tsblock.cc | 52 +-
cpp/src/common/tsblock/tsblock.h | 86 +--
cpp/src/common/tsblock/tuple_desc.cc | 2 +-
cpp/src/common/tsblock/tuple_desc.h | 14 +-
.../common/tsblock/vector/fixed_length_vector.h | 12 +-
.../common/tsblock/vector/variable_length_vector.h | 12 +-
cpp/src/common/tsfile_common.cc | 48 +-
cpp/src/common/tsfile_common.h | 295 ++++-----
cpp/src/common/tsfile_mgr.cc | 24 +-
cpp/src/common/tsfile_mgr.h | 26 +-
cpp/src/compress/CMakeLists.txt | 55 +-
cpp/src/compress/{compressor.c => compressor.cc} | 0
cpp/src/compress/compressor.h | 16 +-
cpp/src/compress/compressor_factory.h | 48 +-
cpp/src/compress/gzip_compressor.cc | 40 +-
cpp/src/compress/gzip_compressor.h | 34 +-
cpp/src/compress/lz4_compressor.cc | 30 +-
cpp/src/compress/lz4_compressor.h | 22 +-
cpp/src/compress/lzo_compressor.cc | 37 +-
cpp/src/compress/lzo_compressor.h | 18 +-
cpp/src/compress/snappy_compressor.cc | 26 +-
cpp/src/compress/snappy_compressor.h | 18 +-
cpp/src/compress/uncompressed_compressor.h | 12 +-
cpp/src/cwrapper/tsfile_cwrapper.cc | 334 ++++++----
cpp/src/cwrapper/tsfile_cwrapper.h | 36 +-
cpp/src/encoding/decoder.h | 16 +-
cpp/src/encoding/dictionary_decoder.h | 24 +-
cpp/src/encoding/dictionary_encoder.h | 22 +-
cpp/src/encoding/encoder.h | 14 +-
cpp/src/encoding/encoder_factory.h | 12 +-
cpp/src/encoding/float_sprintz_decoder.h | 24 +-
cpp/src/encoding/gorilla_decoder.h | 162 ++---
cpp/src/encoding/gorilla_encoder.h | 126 ++--
cpp/src/encoding/int32_rle_decoder.h | 36 +-
cpp/src/encoding/int32_rle_encoder.h | 20 +-
cpp/src/encoding/int32_sprintz_decoder.h | 26 +-
cpp/src/encoding/int64_rle_decoder.h | 34 +-
cpp/src/encoding/int64_rle_encoder.h | 20 +-
cpp/src/encoding/plain_decoder.h | 27 +-
cpp/src/encoding/plain_encoder.h | 14 +-
cpp/src/encoding/sprintz_encoder.h | 2 +-
cpp/src/encoding/ts2diff_decoder.h | 144 ++--
cpp/src/encoding/ts2diff_encoder.h | 118 ++--
cpp/src/encoding/zigzag_decoder.h | 32 +-
cpp/src/encoding/zigzag_encoder.h | 28 +-
cpp/src/file/open_file.cc | 18 +-
cpp/src/file/open_file.h | 28 +-
cpp/src/file/read_file.cc | 12 +-
cpp/src/file/read_file.h | 10 +-
cpp/src/file/tsfile_io_reader.cc | 164 ++---
cpp/src/file/tsfile_io_reader.h | 82 +--
cpp/src/file/tsfile_io_writer.cc | 120 ++--
cpp/src/file/tsfile_io_writer.h | 90 +--
cpp/src/file/write_file.cc | 6 +-
cpp/src/file/write_file.h | 6 +-
cpp/src/parser/generated/PathParser.cpp | 214 +++---
cpp/src/parser/generated/PathParser.h | 138 ++--
cpp/src/parser/generated/PathParserBaseVisitor.h | 16 +-
cpp/src/parser/generated/PathParserListener.h | 32 +-
cpp/src/parser/generated/PathParserVisitor.h | 16 +-
cpp/src/reader/aligned_chunk_reader.cc | 150 +++--
cpp/src/reader/aligned_chunk_reader.h | 99 +--
.../reader/block/device_ordered_tsblock_reader.cc | 6 +-
.../reader/block/device_ordered_tsblock_reader.h | 20 +-
.../reader/block/single_device_tsblock_reader.cc | 13 +-
cpp/src/reader/block/tsblock_reader.h | 8 +-
cpp/src/reader/bloom_filter.cc | 35 +-
cpp/src/reader/bloom_filter.h | 26 +-
cpp/src/reader/chunk_reader.cc | 76 +--
cpp/src/reader/chunk_reader.h | 60 +-
cpp/src/reader/column_mapping.h | 16 +-
cpp/src/reader/device_meta_iterator.cc | 14 +-
cpp/src/reader/device_meta_iterator.h | 36 +-
cpp/src/reader/expression.cc | 74 +--
cpp/src/reader/expression.h | 66 +-
cpp/src/reader/filter/and_filter.h | 18 +-
cpp/src/reader/filter/between.h | 18 +-
cpp/src/reader/filter/binary_filter.h | 10 +-
cpp/src/reader/filter/eq.h | 2 +-
cpp/src/reader/filter/gt.h | 2 +-
cpp/src/reader/filter/gt_eq.h | 2 +-
cpp/src/reader/filter/in.h | 4 +-
cpp/src/reader/filter/lt.h | 2 +-
cpp/src/reader/filter/lt_eq.h | 2 +-
cpp/src/reader/filter/not_eq.h | 2 +-
cpp/src/reader/filter/object.h | 60 +-
cpp/src/reader/filter/or_filter.h | 26 +-
cpp/src/reader/filter/time_operator.cc | 50 +-
cpp/src/reader/filter/time_operator.h | 34 +-
cpp/src/reader/filter/unary_filter.h | 2 +-
cpp/src/reader/ichunk_reader.h | 16 +-
cpp/src/reader/imeta_data_querier.h | 5 +-
cpp/src/reader/meta_data_querier.cc | 6 +
cpp/src/reader/meta_data_querier.h | 5 +
cpp/src/reader/qds_with_timegenerator.cc | 43 +-
cpp/src/reader/qds_with_timegenerator.h | 46 +-
cpp/src/reader/qds_without_timegenerator.cc | 29 +-
cpp/src/reader/qds_without_timegenerator.h | 24 +-
cpp/src/reader/result_set.h | 160 ++++-
cpp/src/reader/scan_iterator.cc | 50 +-
cpp/src/reader/scan_iterator.h | 68 +-
cpp/src/reader/table_query_executor.cc | 120 +++-
cpp/src/reader/table_query_executor.h | 22 +-
cpp/src/reader/table_result_set.h | 1 -
cpp/src/reader/task/device_query_task.cc | 10 +-
cpp/src/reader/task/device_query_task.h | 16 +-
cpp/src/reader/task/device_task_iterator.cc | 4 +-
cpp/src/reader/task/device_task_iterator.h | 23 +-
cpp/src/reader/tsfile_executor.cc | 24 +-
cpp/src/reader/tsfile_executor.h | 28 +-
cpp/src/reader/tsfile_reader.cc | 93 ++-
cpp/src/reader/tsfile_reader.h | 53 +-
cpp/src/reader/tsfile_series_scan_iterator.cc | 27 +-
cpp/src/reader/tsfile_series_scan_iterator.h | 30 +-
cpp/src/reader/tsfile_tree_reader.cc | 71 ++
cpp/src/reader/tsfile_tree_reader.h | 107 +++
cpp/src/utils/db_utils.h | 115 +---
cpp/src/utils/errno_define.h | 4 +-
cpp/src/utils/storage_utils.h | 20 +-
cpp/src/utils/util_define.h | 7 +
cpp/src/writer/chunk_writer.cc | 8 +-
cpp/src/writer/chunk_writer.h | 16 +-
cpp/src/writer/page_writer.cc | 8 +-
cpp/src/writer/page_writer.h | 30 +-
cpp/src/writer/time_chunk_writer.cc | 8 +-
cpp/src/writer/time_chunk_writer.h | 16 +-
cpp/src/writer/time_page_writer.cc | 6 +-
cpp/src/writer/time_page_writer.h | 24 +-
cpp/src/writer/tsfile_tree_writer.cc | 53 ++
cpp/src/writer/tsfile_tree_writer.h | 134 ++++
cpp/src/writer/tsfile_writer.cc | 347 +++++-----
cpp/src/writer/tsfile_writer.h | 170 ++---
cpp/src/writer/value_chunk_writer.cc | 8 +-
cpp/src/writer/value_chunk_writer.h | 16 +-
cpp/src/writer/value_page_writer.cc | 8 +-
cpp/src/writer/value_page_writer.h | 28 +-
cpp/test/CMakeLists.txt | 57 +-
cpp/test/common/allocator/alloc_base_test.cc | 24 +-
cpp/test/common/tsblock/tslock_test.cc | 18 +-
cpp/test/common/tsfile_common_test.cc | 20 +-
cpp/test/compress/gzip_compressor_test.cc | 8 +-
cpp/test/compress/lz4_compressor_test.cc | 8 +-
cpp/test/compress/lzo_compressor_test.cc | 8 +-
cpp/test/compress/snappy_compressor_test.cc | 8 +-
cpp/test/cwrapper/c_release_test.cc | 103 ++-
cpp/test/cwrapper/cwrapper_test.cc | 166 ++++-
cpp/test/file/write_file_test.cc | 6 +-
cpp/test/reader/bloom_filter_test.cc | 4 +-
.../reader/table_view/tsfile_reader_table_test.cc | 236 ++++++-
.../reader/tree_view/tsfile_reader_tree_test.cc | 412 ++++++++++++
cpp/test/reader/tsfile_reader_test.cc | 3 +-
.../writer/table_view/tsfile_writer_table_test.cc | 7 +-
cpp/test/writer/tsfile_writer_test.cc | 135 ++--
cpp/test_all.sh | 18 -
cpp/third_party/CMakeLists.txt | 26 +-
python/setup.py | 2 +-
python/tests/resources/README.md | 285 ++++++++
python/tests/resources/simple_table_t1.tsfile | Bin 0 -> 2965 bytes
python/tests/resources/simple_table_t2.tsfile | Bin 0 -> 2677 bytes
python/tests/resources/simple_tree.tsfile | Bin 0 -> 842 bytes
python/tests/test_load_tsfile_from_iotdb.py | 111 ++++
python/tests/test_write_and_read.py | 722 ++++++++++++++++++++-
python/tsfile/constants.py | 19 +-
python/tsfile/field.py | 58 +-
python/tsfile/schema.py | 6 +
python/tsfile/tablet.py | 8 +-
python/tsfile/tsfile_cpp.pxd | 21 +-
python/tsfile/tsfile_py_cpp.pxd | 3 +
python/tsfile/tsfile_py_cpp.pyx | 219 +++++--
python/tsfile/tsfile_reader.pyx | 46 +-
python/tsfile/utils.py | 166 ++++-
213 files changed, 7731 insertions(+), 4025 deletions(-)
create mode 100644 cpp/src/common/device_id.cc
rename cpp/src/compress/{compressor.c => compressor.cc} (100%)
create mode 100644 cpp/src/reader/tsfile_tree_reader.cc
create mode 100644 cpp/src/reader/tsfile_tree_reader.h
create mode 100644 cpp/src/writer/tsfile_tree_writer.cc
create mode 100644 cpp/src/writer/tsfile_tree_writer.h
mode change 100755 => 100644 cpp/test/compress/snappy_compressor_test.cc
create mode 100644 cpp/test/reader/tree_view/tsfile_reader_tree_test.cc
delete mode 100644 cpp/test_all.sh
create mode 100644 python/tests/resources/README.md
create mode 100644 python/tests/resources/simple_table_t1.tsfile
create mode 100644 python/tests/resources/simple_table_t2.tsfile
create mode 100644 python/tests/resources/simple_tree.tsfile
create mode 100644 python/tests/test_load_tsfile_from_iotdb.py