Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomello committed Jul 22, 2024
1 parent af6b4a3 commit d18361e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tsl/src/continuous_aggs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ cagg_validate_query(const Query *query, const bool finalized, const char *cagg_s
detail->len > 0 ? errdetail("%s", detail->data) : 0));
}

int num_tables = 0, num_hypertables = 0;
int num_hypertables = 0;
ListCell *lc;
foreach (lc, query->rtable)
{
Expand All @@ -700,10 +700,6 @@ cagg_validate_query(const Query *query, const bool finalized, const char *cagg_s
if (rte == NULL)
rte = copyObject(inner_rte);
}
else
{
num_tables++;
}

if (is_hypertable && inner_rte->inh == false)
ereport(ERROR,
Expand Down

0 comments on commit d18361e

Please sign in to comment.