-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C++] Refactor dict_internal.h to use Result #36111
Comments
I'd like to take this task. |
If you write a PR, @mention me and I'll review |
I get it |
chrisjordansquire
added a commit
to chrisjordansquire/arrow
that referenced
this issue
Sep 16, 2023
Resolve apache#36111 by refactoring dict_internal.h to return a Result instead of a Status type. This narrow refactor minimally impacts the usage sites.
bkietz
pushed a commit
that referenced
this issue
Sep 20, 2023
### Rationale for this change This change addresses #36111 , updating the method GetDictionaryArrayData in dict_internal.h to return a Result instead of a Status type. ### What changes are included in this PR? This is a narrow interpretation of the above issue, only changing the return type with minimal updates to the call sites or their return types. ### Are these changes tested? Yes. The C++ test suite was run on the `ninja-debug` build target using the command `ctest -j16 --output-on-failure`. All tests not requiring parquet data passed. (I was unsure how to setup those tests based on the Arrow development guidelines.) ### Are there any user-facing changes? No. The only changes should be library-internal. * Closes: #36111 Authored-by: Chris Jordan-Squire <chris.jordansquire@gmail.com> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this issue
Nov 13, 2023
…37754) ### Rationale for this change This change addresses apache#36111 , updating the method GetDictionaryArrayData in dict_internal.h to return a Result instead of a Status type. ### What changes are included in this PR? This is a narrow interpretation of the above issue, only changing the return type with minimal updates to the call sites or their return types. ### Are these changes tested? Yes. The C++ test suite was run on the `ninja-debug` build target using the command `ctest -j16 --output-on-failure`. All tests not requiring parquet data passed. (I was unsure how to setup those tests based on the Arrow development guidelines.) ### Are there any user-facing changes? No. The only changes should be library-internal. * Closes: apache#36111 Authored-by: Chris Jordan-Squire <chris.jordansquire@gmail.com> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
dgreiss
pushed a commit
to dgreiss/arrow
that referenced
this issue
Feb 19, 2024
…37754) ### Rationale for this change This change addresses apache#36111 , updating the method GetDictionaryArrayData in dict_internal.h to return a Result instead of a Status type. ### What changes are included in this PR? This is a narrow interpretation of the above issue, only changing the return type with minimal updates to the call sites or their return types. ### Are these changes tested? Yes. The C++ test suite was run on the `ninja-debug` build target using the command `ctest -j16 --output-on-failure`. All tests not requiring parquet data passed. (I was unsure how to setup those tests based on the Arrow development guidelines.) ### Are there any user-facing changes? No. The only changes should be library-internal. * Closes: apache#36111 Authored-by: Chris Jordan-Squire <chris.jordansquire@gmail.com> Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement requested
DictionaryTraits<>::GetDictionaryArrayData
still uses theStatus(out ptr)
pattern instead of returningResult<Out>
, which is less readable.Component(s)
C++
The text was updated successfully, but these errors were encountered: