Skip to content

Commit

Permalink
Fixed join conditions to handle NULL values
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomello committed Sep 13, 2024
1 parent 9a5a714 commit ecff248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsl/src/continuous_aggs/materialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ build_merge_join_clause(List *column_names)

appendStringInfoString(ret, "P.");
appendStringInfoString(ret, quote_identifier(column));
appendStringInfoString(ret, " = M.");
appendStringInfoString(ret, " IS NOT DISTINCT FROM M.");
appendStringInfoString(ret, quote_identifier(column));
}

Expand Down Expand Up @@ -464,7 +464,7 @@ spi_merge_materializations(Hypertable *mat_ht, const ContinuousAgg *cagg,
all_columns = list_concat(all_columns, agg_colnames);

StringInfo merge_update = makeStringInfo();
char *merge_update_clause = build_merge_update_clause(agg_colnames);
char *merge_update_clause = build_merge_update_clause(all_columns);

/* It make no sense but is possible to create a cagg only with time bucket (without aggregate
* functions) */
Expand Down

0 comments on commit ecff248

Please sign in to comment.