Skip to content
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

Fix extract-datetime deprecation warning in ndsh benchmark #17254

Draft
wants to merge 2 commits into
base: branch-24.12
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cpp/benchmarks/ndsh/q09.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ void run_ndsh_q9(nvbench::state& state,

// Calculate the `nation`, `o_year`, and `amount` columns
auto n_name = std::make_unique<cudf::column>(joined_table->column("n_name"));
auto o_year = cudf::datetime::extract_year(joined_table->column("o_orderdate"));
auto o_year = cudf::datetime::extract_datetime_component(
joined_table->column("o_orderdate"), cudf::datetime::datetime_component::YEAR);
auto amount = calculate_amount(joined_table->column("l_discount"),
joined_table->column("l_extendedprice"),
joined_table->column("ps_supplycost"),
Expand Down
Loading