Skip to content

Commit a2c9b4f

Browse files
committed
fix: fix pre-commit error
1 parent 4706289 commit a2c9b4f

File tree

10 files changed

+25
-22
lines changed

10 files changed

+25
-22
lines changed

cmake_modules/BuildUtils.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,7 @@ function(add_test_case REL_TEST_NAME)
291291
add_dependencies(${LABEL_TEST_NAME} ${TEST_NAME})
292292
endforeach()
293293

294-
set_property(TEST ${TEST_NAME}
295-
APPEND
296-
PROPERTY LABELS ${LABELS})
294+
set_property(TEST ${TEST_NAME} APPEND PROPERTY LABELS ${LABELS})
297295
endfunction()
298296

299297
# Adding unit tests part of the "paimon" portion of the test suite

cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ macro(build_fmt)
251251
externalproject_add(fmt_ep
252252
URL ${FMT_SOURCE_URL}
253253
URL_HASH "SHA256=${PAIMON_FMT_BUILD_SHA256_CHECKSUM}"
254-
${FMT_CONFIGURE} ${THIRDPARTY_LOG_OPTIONS}
254+
${FMT_CONFIGURE}
255+
${THIRDPARTY_LOG_OPTIONS}
255256
BUILD_BYPRODUCTS ${FMT_STATIC_LIB})
256257

257258
file(MAKE_DIRECTORY "${FMT_INCLUDE_DIR}")
@@ -339,7 +340,8 @@ macro(build_zstd)
339340
externalproject_add(zstd_ep
340341
URL ${ZSTD_SOURCE_URL}
341342
URL_HASH "SHA256=${PAIMON_ZSTD_BUILD_SHA256_CHECKSUM}"
342-
${ZSTD_CONFIGURE} ${THIRDPARTY_LOG_OPTIONS}
343+
${ZSTD_CONFIGURE}
344+
${THIRDPARTY_LOG_OPTIONS}
343345
BUILD_BYPRODUCTS ${ZSTD_STATIC_LIB})
344346

345347
file(MAKE_DIRECTORY "${ZSTD_INCLUDE_DIR}")
@@ -365,7 +367,8 @@ macro(build_lz4)
365367
externalproject_add(lz4_ep
366368
URL ${LZ4_SOURCE_URL}
367369
URL_HASH "SHA256=${PAIMON_LZ4_BUILD_SHA256_CHECKSUM}"
368-
${LZ4_CONFIGURE} ${THIRDPARTY_LOG_OPTIONS}
370+
${LZ4_CONFIGURE}
371+
${THIRDPARTY_LOG_OPTIONS}
369372
BUILD_BYPRODUCTS ${LZ4_STATIC_LIB})
370373

371374
file(MAKE_DIRECTORY "${LZ4_INCLUDE_DIR}")
@@ -507,7 +510,8 @@ macro(build_protobuf)
507510
externalproject_add(protobuf_ep
508511
URL ${PROTOBUF_SOURCE_URL}
509512
URL_HASH "SHA256=${PAIMON_PROTOBUF_BUILD_SHA256_CHECKSUM}"
510-
${PROTOBUF_CONFIGURE} ${THIRDPARTY_LOG_OPTIONS}
513+
${PROTOBUF_CONFIGURE}
514+
${THIRDPARTY_LOG_OPTIONS}
511515
# BUILD_IN_SOURCE 1
512516
BUILD_BYPRODUCTS "${PROTOBUF_STATIC_LIB}" "${PROTOBUF_COMPILER}"
513517
DEPENDS zlib)

docs/source/implementations/api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ API Reference
3333
api/global_index
3434
api/clean
3535
api/defs
36-
api/executor
37-
api/memory
36+
api/executor
37+
api/memory

docs/source/implementations/api/executor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Interface
3131

3232
.. doxygenclass:: paimon::Executor
3333
:members:
34-
:undoc-members:
34+
:undoc-members:

docs/source/implementations/user_guide/read.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ return values between implementations.
8181
Type Change Support Matrix
8282
--------------------------
8383

84-
The table below indicates support for changing a column type from `source` to `target`. Refer to the numbered notes below the table
84+
The table below indicates support for changing a column type from ``source`` to ``target``. Refer to the numbered notes below the table
8585
for caveats.
8686

8787
.. list-table::

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ target_link_libraries(clean_demo
3838
paimon_shared
3939
paimon_parquet_file_format_shared
4040
paimon_orc_file_format_shared
41-
paimon_local_file_system_shared)
41+
paimon_local_file_system_shared)

src/paimon/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ set(PAIMON_COMMON_SRCS
4646
common/fs/file_system.cpp
4747
common/fs/resolving_file_system.cpp
4848
common/fs/file_system_factory.cpp
49-
common/global_index/bitmap_topk_global_index_result.cpp
49+
common/global_index/bitmap_topk_global_index_result.cpp
5050
common/global_index/bitmap_global_index_result.cpp
5151
common/global_index/global_index_result.cpp
5252
common/global_index/global_indexer_factory.cpp
@@ -147,7 +147,7 @@ set(PAIMON_CORE_SRCS
147147
core/global_index/row_range_global_index_writer.cpp
148148
core/index/index_file_handler.cpp
149149
core/index/global_index_meta.cpp
150-
core/index/index_file_meta_serializer.cpp
150+
core/index/index_file_meta_serializer.cpp
151151
core/io/meta_to_arrow_array_converter.cpp
152152
core/io/async_key_value_producer_and_consumer.cpp
153153
core/io/data_file_meta_09_serializer.cpp
@@ -180,7 +180,7 @@ set(PAIMON_CORE_SRCS
180180
core/manifest/manifest_file_meta_serializer.cpp
181181
core/manifest/manifest_list.cpp
182182
core/manifest/partition_entry.cpp
183-
core/manifest/index_manifest_file_handler.cpp
183+
core/manifest/index_manifest_file_handler.cpp
184184
core/mergetree/compact/aggregate/aggregate_merge_function.cpp
185185
core/mergetree/compact/aggregate/field_sum_agg.cpp
186186
core/mergetree/compact/interval_partition.cpp

src/paimon/core/operation/data_evolution_file_store_scan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class DataEvolutionFileStoreScan : public FileStoreScan {
9191
static bool FilterManifestByRowRanges(const ManifestFileMeta& manifest,
9292
const std::vector<Range>& row_ranges);
9393
static Result<bool> FilterEntryByRowRanges(const ManifestEntry& entry,
94-
const std::vector<Range>& row_ranges);
94+
const std::vector<Range>& row_ranges);
9595

9696
static Result<std::pair<int64_t, SimpleStatsEvolution::EvolutionStats>> EvolutionStats(
9797
const std::vector<ManifestEntry>& entries, const std::shared_ptr<TableSchema>& table_schema,

src/paimon/core/operation/data_evolution_file_store_scan_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ TEST_F(DataEvolutionFileStoreScanTest, TestFilterManifestByRowRanges) {
601601
manifest1, {Range(0, 15), Range(100, 200)}));
602602
ASSERT_FALSE(DataEvolutionFileStoreScan::FilterManifestByRowRanges(
603603
manifest1, {Range(0, 5), Range(100, 200)}));
604-
604+
605605
auto manifest2 =
606606
ManifestFileMeta("manifest-65b0d403-a1bc-4157-b242-bff73c46596d-0", /*file_size=*/2779,
607607
/*num_added_files=*/1, /*num_deleted_files=*/0, SimpleStats::EmptyStats(),

src/paimon/core/operation/read_context.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,12 @@ Result<std::unique_ptr<ReadContext>> ReadContextBuilder::Finish() {
209209
return Status::Invalid("row to batch thread number should be greater than 0");
210210
}
211211
auto ctx = std::make_unique<ReadContext>(
212-
impl_->path_, impl_->branch_, impl_->read_field_names_, impl_->predicate_, impl_->row_ranges_,
213-
impl_->enable_predicate_filter_, impl_->enable_prefetch_, impl_->prefetch_batch_count_,
214-
impl_->prefetch_max_parallel_num_, impl_->enable_multi_thread_row_to_batch_,
215-
impl_->row_to_batch_thread_number_, impl_->table_schema_, impl_->memory_pool_,
216-
impl_->executor_, impl_->fs_scheme_to_identifier_map_, impl_->options_);
212+
impl_->path_, impl_->branch_, impl_->read_field_names_, impl_->predicate_,
213+
impl_->row_ranges_, impl_->enable_predicate_filter_, impl_->enable_prefetch_,
214+
impl_->prefetch_batch_count_, impl_->prefetch_max_parallel_num_,
215+
impl_->enable_multi_thread_row_to_batch_, impl_->row_to_batch_thread_number_,
216+
impl_->table_schema_, impl_->memory_pool_, impl_->executor_,
217+
impl_->fs_scheme_to_identifier_map_, impl_->options_);
217218
impl_->Reset();
218219
return ctx;
219220
}

0 commit comments

Comments
 (0)