Skip to content

Commit

Permalink
Leftover from previous CAgg refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomello committed Aug 1, 2024
1 parent 801d32c commit dbebf58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 14 additions & 0 deletions tsl/src/continuous_aggs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@ caggtimebucketinfo_init(CAggTimebucketInfo *src, int32 hypertable_id, Oid hypert
src->bf->bucket_integer_offset = 0; /* invalid value */
}

/*
* Initialize MatTableColumnInfo.
*/
void
mattablecolumninfo_init(MatTableColumnInfo *matcolinfo, List *grouplist)
{
matcolinfo->matcollist = NIL;
matcolinfo->partial_seltlist = NIL;
matcolinfo->partial_grouplist = grouplist;
matcolinfo->mat_groupcolname_list = NIL;
matcolinfo->matpartcolno = -1;
matcolinfo->matpartcolname = NULL;
}

/*
* Check if the supplied OID belongs to a valid bucket function
* for continuous aggregates.
Expand Down
13 changes: 0 additions & 13 deletions tsl/src/continuous_aggs/materialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,16 +375,3 @@ spi_insert_materializations(Hypertable *mat_ht, const ContinuousAgg *cagg,
}
}
}
/*
* Initialize MatTableColumnInfo.
*/
void
mattablecolumninfo_init(MatTableColumnInfo *matcolinfo, List *grouplist)
{
matcolinfo->matcollist = NIL;
matcolinfo->partial_seltlist = NIL;
matcolinfo->partial_grouplist = grouplist;
matcolinfo->mat_groupcolname_list = NIL;
matcolinfo->matpartcolno = -1;
matcolinfo->matpartcolname = NULL;
}

0 comments on commit dbebf58

Please sign in to comment.