Skip to content

Commit

Permalink
gpusort: initial workable GpuSort on top of GpuPreAgg
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Feb 6, 2025
1 parent f5cf47f commit d84e8f3
Show file tree
Hide file tree
Showing 6 changed files with 536 additions and 94 deletions.
8 changes: 4 additions & 4 deletions src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -4035,7 +4035,7 @@ codegen_build_gpusort_keydesc(codegen_context *context,

keydesc->kind = kind;
keydesc->nulls_first = ((ival & KSORT_KEY_ATTR__NULLS_FIRST) != 0);
keydesc->desc_order = ((ival & KSORT_KEY_ATTR__DESC_ORDER) != 0);
keydesc->order_asc = ((ival & KSORT_KEY_ATTR__ORDER_ASC) != 0);
if (kind == KSORT_KEY_KIND__VREF)
{
ListCell *cell;
Expand Down Expand Up @@ -4673,9 +4673,9 @@ __xpucode_sortkeys_cstring(StringInfo buf,
else if (desc->src_anum != 0)
appendStringInfo(buf, "; key=(out of range)");
}
appendStringInfo(buf, "; nulls %s; %s order>",
desc->nulls_first ? "first" : "last",
desc->desc_order ? "desc" : "asc");
appendStringInfo(buf, "[%s;%s]",
desc->nulls_first ? "NF" : "NL",
desc->order_asc ? "ASC" : "DESC");
}
}

Expand Down
Loading

0 comments on commit d84e8f3

Please sign in to comment.