Fix date range operator in GeographicalUnitStatAggregator

This commit is contained in:
Julien Fastré 2023-11-06 22:03:08 +01:00
parent 8cb9142800
commit dd75cb695c
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -56,7 +56,7 @@ final readonly class GeographicalUnitStatAggregator implements AggregatorInterfa
Join::WITH,
$qb->expr()->andX(
'IDENTITY(acp_geog_agg_address_person_location.person) = IDENTITY(acp_geog_agg_location_history.personLocation)',
'acp_geog_agg_address_person_location.validFrom < :acp_geog_aggregator_date',
'acp_geog_agg_address_person_location.validFrom <= :acp_geog_aggregator_date',
$qb->expr()->orX(
'acp_geog_agg_address_person_location.validTo > :acp_geog_aggregator_date',
$qb->expr()->isNull('acp_geog_agg_address_person_location.validTo')