Skip to content

Commit

Permalink
Merge pull request #1484 from kuzudb/fix-cast
Browse files Browse the repository at this point in the history
Fix incorrect cast int16 func name
  • Loading branch information
ray6080 committed Apr 22, 2023
2 parents f0d768e + f5024a7 commit 8dc87ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/common/arrow/arrow_row_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ ArrowArray ArrowRowBatch::append(main::QueryResult& queryResult, std::int64_t ch
break;
}
auto tuple = queryResult.getNext();
std::vector<std::uint32_t> colWidths(numColumns, 10);
for (auto i = 0u; i < numColumns; i++) {
appendValue(vectors[i].get(), *typesInfo[i], tuple->getValue(i));
}
Expand Down
8 changes: 4 additions & 4 deletions src/function/vector_cast_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ CastToInt16VectorOperation::getDefinitions() {
std::vector<std::unique_ptr<VectorOperationDefinition>> result;
// down cast
result.push_back(bindVectorOperation<int32_t, int16_t, operation::CastToInt16>(
CAST_TO_INT32_FUNC_NAME, INT32, INT16));
CAST_TO_INT16_FUNC_NAME, INT32, INT16));
result.push_back(bindVectorOperation<int64_t, int16_t, operation::CastToInt16>(
CAST_TO_INT32_FUNC_NAME, INT64, INT16));
CAST_TO_INT16_FUNC_NAME, INT64, INT16));
result.push_back(bindVectorOperation<float_t, int16_t, operation::CastToInt16>(
CAST_TO_INT32_FUNC_NAME, FLOAT, INT16));
CAST_TO_INT16_FUNC_NAME, FLOAT, INT16));
result.push_back(bindVectorOperation<double_t, int16_t, operation::CastToInt16>(
CAST_TO_INT32_FUNC_NAME, DOUBLE, INT16));
CAST_TO_INT16_FUNC_NAME, DOUBLE, INT16));
return result;
}

Expand Down

0 comments on commit 8dc87ca

Please sign in to comment.