-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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++] "case_when" test failure on random union inputs #15192
Comments
(#15131 is needed to reproduce) |
Looked a bit. The error message is
, assuming this is the error that this issue encountered. The reason of this failure is:
I think I can take this and make random array generation respect the type ids specified in the data type, instead of generating trivial type ids. |
I found that we can bring the test back alive by simply removing passing customized type codes, drafted here: #39308 |
@zanmato1984 Thanks for the investigation! I think it would be better to make random union array generation conformant, indeed. |
Sure, will do. Thanks @pitrou ! |
One quick question: arrow/cpp/src/arrow/testing/random.h Lines 535 to 537 in 91b2243
arrow/cpp/src/arrow/testing/random.h Lines 549 to 551 in 91b2243
However they seem to be public APIs, even though they belong to arrow-testing library. Do I have to make overloads of them or am I free to change the signatures? I appreciate if you can enlighten me about this? Thanks @pitrou ! |
arrow-testing is not really for public usage, so you can change those APIs. |
### Rationale for this change Bring back the problematic test case of random `case_when` on union(bool, string) type. This case used to fail. However #36018 already addressed the issue. More information about how it used to fail, please refer to #15192 (comment). ### What changes are included in this PR? Bring back the test code. ### Are these changes tested? Yes, the change is the test. ### Are there any user-facing changes? No. * Closes: #15192 Authored-by: zanmato <zanmato1984@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
…pache#39308) ### Rationale for this change Bring back the problematic test case of random `case_when` on union(bool, string) type. This case used to fail. However apache#36018 already addressed the issue. More information about how it used to fail, please refer to apache#15192 (comment). ### What changes are included in this PR? Bring back the test code. ### Are these changes tested? Yes, the change is the test. ### Are there any user-facing changes? No. * Closes: apache#15192 Authored-by: zanmato <zanmato1984@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
…pache#39308) ### Rationale for this change Bring back the problematic test case of random `case_when` on union(bool, string) type. This case used to fail. However apache#36018 already addressed the issue. More information about how it used to fail, please refer to apache#15192 (comment). ### What changes are included in this PR? Bring back the test code. ### Are these changes tested? Yes, the change is the test. ### Are there any user-facing changes? No. * Closes: apache#15192 Authored-by: zanmato <zanmato1984@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
Describe the bug, including details regarding any error messages, version, and platform.
Enabling this commented out test in
scalar_if_else_test_.cc
produces test failures:Component(s)
C++
The text was updated successfully, but these errors were encountered: