diff --git a/cpp/src/arrow/compute/kernels/scalar_if_else.cc b/cpp/src/arrow/compute/kernels/scalar_if_else.cc index d885db4cd93..d32070f5c0f 100644 --- a/cpp/src/arrow/compute/kernels/scalar_if_else.cc +++ b/cpp/src/arrow/compute/kernels/scalar_if_else.cc @@ -1768,7 +1768,6 @@ struct CaseWhenFunctor> { using offset_type = typename Type::offset_type; using BuilderType = typename TypeTraits::BuilderType; static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1816,7 +1815,6 @@ struct CaseWhenFunctor> { using offset_type = typename Type::offset_type; using BuilderType = typename TypeTraits::BuilderType; static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1858,7 +1856,6 @@ struct CaseWhenFunctor> { using offset_type = typename Type::offset_type; using BuilderType = typename TypeTraits::BuilderType; static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1900,7 +1897,6 @@ Status ReserveNoData(ArrayBuilder*) { return Status::OK(); } template <> struct CaseWhenFunctor { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1918,7 +1914,6 @@ struct CaseWhenFunctor { template <> struct CaseWhenFunctor { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1936,7 +1931,6 @@ struct CaseWhenFunctor { template <> struct CaseWhenFunctor { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1964,7 +1958,6 @@ struct CaseWhenFunctor { template struct CaseWhenFunctor> { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); } @@ -1978,7 +1971,6 @@ struct CaseWhenFunctor> { template <> struct CaseWhenFunctor { static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { - /// TODO(wesm): should this be a DCHECK? Or checked elsewhere if (batch[0].null_count() > 0) { return Status::Invalid("cond struct must not have outer nulls"); }