Skip to content

Commit 24a831f

Browse files
committed
Style.
1 parent 4f2bf00 commit 24a831f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/src/arrow/compare.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,7 @@ inline bool SparseTensorEqualsImplDispatch(const SparseTensorImpl<SparseIndexTyp
11941194
checked_cast<const SparseTensorImpl<SparseCSCIndex>&>(right);
11951195
return SparseTensorEqualsImpl<SparseIndexType, SparseCSCIndex>::Compare(left,
11961196
right_csc);
1197+
}
11971198

11981199
case SparseTensorFormat::CSF: {
11991200
const auto& right_csf =
@@ -1236,6 +1237,7 @@ bool SparseTensorEquals(const SparseTensor& left, const SparseTensor& right) {
12361237
case SparseTensorFormat::CSC: {
12371238
const auto& left_csc = checked_cast<const SparseTensorImpl<SparseCSCIndex>&>(left);
12381239
return SparseTensorEqualsImplDispatch(left_csc, right);
1240+
}
12391241

12401242
case SparseTensorFormat::CSF: {
12411243
const auto& left_csf = checked_cast<const SparseTensorImpl<SparseCSFIndex>&>(left);

cpp/src/arrow/sparse_tensor.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,6 @@ Status MakeTensorFromSparseTensor(MemoryPool* pool, const SparseTensor* sparse_t
735735
internal::checked_cast<const SparseCSCIndex&>(*sparse_tensor->sparse_index());
736736
const std::shared_ptr<const Tensor> indptr = sparse_index.indptr();
737737
const std::shared_ptr<const Tensor> indices = sparse_index.indices();
738-
const auto raw_data =
739-
reinterpret_cast<const value_type*>(sparse_tensor->raw_data());
740738

741739
int64_t offset;
742740
for (int64_t j = 0; j < indptr->size() - 1; ++j) {

cpp/src/arrow/sparse_tensor_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ class TestSparseCSFTensorBase : public ::testing::Test {
933933
protected:
934934
std::vector<int64_t> shape_;
935935
std::vector<std::string> dim_names_;
936-
std::shared_ptr<SparseCSCMatrix> sparse_tensor_from_dense_;
936+
std::shared_ptr<SparseCSFTensor> sparse_tensor_from_dense_;
937937
};
938938

939939
class TestSparseCSFTensor : public TestSparseCSFTensorBase<Int64Type> {};

0 commit comments

Comments
 (0)