Skip to content

Commit

Permalink
Fix missed renumbering of Aggregation values (#8600)
Browse files Browse the repository at this point in the history
Fixes an issue introduced by #8516

Authors:
  - Robert (Bobby) Evans (https://github.com/revans2)

Approvers:
  - Jason Lowe (https://github.com/jlowe)

URL: #8600
  • Loading branch information
revans2 authored Jun 24, 2021
1 parent a73d3b3 commit 1a58f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/main/native/src/AggregationJni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ JNIEXPORT jlong JNICALL Java_ai_rapids_cudf_Aggregation_createLeadLagAgg(JNIEnv
std::unique_ptr<cudf::aggregation> ret;
// These numbers come from Aggregation.java and must stay in sync
switch (kind) {
case 20: // LEAD
case 22: // LEAD
ret = cudf::make_lead_aggregation(offset);
break;
case 21: // LAG
case 23: // LAG
ret = cudf::make_lag_aggregation(offset);
break;
default: throw std::logic_error("Unsupported Lead/Lag Aggregation Operation");
Expand Down

0 comments on commit 1a58f45

Please sign in to comment.