Skip to content

Commit

Permalink
Fix relid on partial paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jnidzwetzki committed May 22, 2023
1 parent f2106af commit 82a77c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/planner/expand_hypertable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,9 +1423,6 @@ ts_plan_expand_hypertable_chunks(Hypertable *ht, PlannerInfo *root, RelOptInfo *
if(! hypertable_is_distributed(ht))
enable_partitionwise_aggregate = true;

// Fixme
enable_partition_pruning = false;

build_hypertable_partition_info(ht, root, rel, list_length(inh_oids));
}

Expand Down
6 changes: 6 additions & 0 deletions tsl/src/nodes/decompress_chunk/decompress_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,12 @@ ts_decompress_chunk_generate_paths(PlannerInfo *root, RelOptInfo *chunk_rel, Hyp
continue;
}

// Fix relid
RelOptInfo *newrel = palloc(sizeof(RelOptInfo));
memcpy(newrel, info->chunk_rel, sizeof(RelOptInfo));
newrel->relid = info->compressed_rel->relid;
path->parent = newrel;

path = (Path *) create_append_path_compat(root,
chunk_rel,
NIL,
Expand Down

0 comments on commit 82a77c9

Please sign in to comment.