Copilot commented on code in PR #55786: URL: https://github.com/apache/arrow/pull/55786#discussion_r4751213439
########## docs/source/cpp/compute.rst: ########## @@ -1792,18 +1794,20 @@ Statistical functions Associative transforms ~~~~~~~~~~~~~~~~~~~~~~ -+-------------------+-------+-----------------------------------+-------------+-------+ -| Function name | Arity | Input types | Output type | Notes | -+===================+=======+===================================+=============+=======+ -| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | \(1) | -| | | Temporal, Binary- and String-like | | | -+-------------------+-------+-----------------------------------+-------------+-------+ -| unique | Unary | Boolean, Null, Numeric, | Input type | \(2) | -| | | Temporal, Binary- and String-like | | | -+-------------------+-------+-----------------------------------+-------------+-------+ -| value_counts | Unary | Boolean, Null, Numeric, | Input type | \(3) | -| | | Temporal, Binary- and String-like | | | -+-------------------+-------+-----------------------------------+-------------+-------+ ++-------------------+-------+-----------------------------------+-------------+------------------------------------+-------+ +| Function name | Arity | Input types | Output type | Options class | Notes | ++===================+=======+===================================+=============+====================================+=======+ +| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | :struct:`DictionaryEncodeOptions` | \(1) | +| | | Temporal, Binary- and String-like | | | | ++-------------------+-------+-----------------------------------+-------------+------------------------------------+-------+ +| dictionary_decode | Unary | Dictionary | Input type | | \(4) | Review Comment: `dictionary_decode` returns the dictionary's value type, not the input type: `DictionaryDecodeMetaFunction::ExecuteImpl` casts to `dict_type->value_type()` in `cpp/src/arrow/compute/kernels/vector_hash.cc`. For example, dictionary-encoded strings become a plain string array. Please label the output as the value type so the table does not imply that decoding preserves the Dictionary type. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
