Skip to content

Commit

Permalink
Update cpp/src/arrow/compute/kernels/vector_hash.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
  • Loading branch information
js8544 and felipecrv authored Dec 23, 2023
1 parent 87d7e1d commit f14c783
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/compute/kernels/vector_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ class DictionaryHashKernel : public HashKernel {
return dictionary_value_type_;
}

/// This can't be called more than once because DictionaryUnifier::GetResult()
/// can't be called more than once and produce the same output.
Result<std::shared_ptr<Array>> dictionary() const {
if (!first_dictionary_) { // Append was never called
return nullptr;
Expand Down

0 comments on commit f14c783

Please sign in to comment.