diff --git a/internal/core/run_clang_format.sh b/internal/core/run_clang_format.sh index 2aa22c5144..a3e3131433 100755 --- a/internal/core/run_clang_format.sh +++ b/internal/core/run_clang_format.sh @@ -7,7 +7,7 @@ fi CorePath=$1 formatThis() { - find "$1" | grep -E "(*\.cpp|*\.h|*\.cc)$" | grep -v "gen_tools/templates" | grep -v "\.pb\." | grep -v "tantivy-binding.h" | xargs clang-format-10 -i + find "$1" | grep -E "(*\.cpp|*\.h|*\.cc)$" | grep -v "gen_tools/templates" | grep -v "\.pb\." | grep -v "tantivy-binding.h" | xargs clang-format-12 -i } formatThis "${CorePath}/src" diff --git a/internal/core/src/storage/DiskFileManagerImpl.cpp b/internal/core/src/storage/DiskFileManagerImpl.cpp index 95a9ac49cc..8ef6dac110 100644 --- a/internal/core/src/storage/DiskFileManagerImpl.cpp +++ b/internal/core/src/storage/DiskFileManagerImpl.cpp @@ -491,10 +491,9 @@ DiskFileManagerImpl::CacheRawDataToDisk(std::vector remote_files) { if (data_type == milvus::DataType::VECTOR_SPARSE_FLOAT) { dim = std::max( dim, - (uint32_t)( - std::dynamic_pointer_cast>( - field_data) - ->Dim())); + (uint32_t)(std::dynamic_pointer_cast< + FieldData>(field_data) + ->Dim())); auto sparse_rows = static_cast*>( field_data->Data());