Skip to content

Commit

Permalink
Update src/parquet_impl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
za-arthur authored Jun 13, 2024
1 parent 867fa0a commit ea48bec
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/parquet_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1268,16 +1268,15 @@ parquetGetForeignPaths(PlannerInfo *root,
NULL);

/* Create PathKey for the attribute from "sorted" option */
// pg16- pdate
#if PG_VERSION_NUM > 160000
attr_pathkeys = build_expression_pathkey(root, (Expr *) var,
sort_op, baserel->relids,
true);
#else
attr_pathkeys = build_expression_pathkey(root, (Expr *) var, NULL,
sort_op, baserel->relids,
true);
#endif
#if PG_VERSION_NUM >= 160000
attr_pathkeys = build_expression_pathkey(root, (Expr *) var,
sort_op, baserel->relids,
true);
#else
attr_pathkeys = build_expression_pathkey(root, (Expr *) var, NULL,
sort_op, baserel->relids,
true);
#endif

if (attr_pathkeys != NIL)
{
Expand Down

0 comments on commit ea48bec

Please sign in to comment.