[Improvement](vectorized) change static_cast to assert_cast for reference (#12379)

* [Improvement](vectorized) change `static_cast` to `assert_cast` for reference
This commit is contained in:
Gabriel
2022-09-07 09:27:13 +08:00
committed by GitHub
parent 772e5907f2
commit 922b04fdc1
6 changed files with 16 additions and 14 deletions

View File

@ -226,7 +226,7 @@ MutableColumnPtr ColumnVector<T>::clone_resized(size_t size) const {
auto res = this->create();
if (size > 0) {
auto& new_col = static_cast<Self&>(*res);
auto& new_col = assert_cast<Self&>(*res);
new_col.data.resize(size);
size_t count = std::min(this->size(), size);