Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error thrown in compiled-binaryop benchmark (#10398)
Fixes `BINARYOP_BENCH` which is throwing an error for non-numeric types: ``` terminate called after throwing an instance of 'cudf::logic_error' what(): cuDF failure at: /cudf/cpp/src/filling/sequence.cu:139: init scalar type must be numeric ``` The `compiled_binaryop.cpp` was recently changed in #10300 to create test columns using the benchmark utility `create_sequence_table` which internally calls `cudf::sequence` API. Unfortunately, [only `numeric` types can be used with this API](https://github.com/rapidsai/cudf/blob/a9b6cb113bcacecd0752d2957971c0d417cf719e/cpp/src/filling/sequence.cu#L139) which throws an error for types like `timestamp, duration, and decimal` which are being measured in this file. https://docs.rapids.ai/api/libcudf/stable/group__transformation__fill.html#gaeda630c9dcdd152eeecf0a1b636244ac The fix replaces the `create_sequence_table` call with `create_random_table` to generate the source columns instead. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - Karthikeyan (https://github.com/karthikeyann) - Nghia Truong (https://github.com/ttnghia) URL: #10398
- Loading branch information