diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java index 15e1eb3b9a6..7bc0ca4c020 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java @@ -378,7 +378,7 @@ void verifyGetTableWithDataElements() { String aliasD2 = """ case when eventdatavalues #>> '{deabcdefghP, value}' ~* '^(-?[0-9]+)(\\.[0-9]+)?$' \ - then cast(eventdatavalues #>> '{deabcdefghP, value}' as double precision) else null end as "deabcdefghP\""""; + then cast(eventdatavalues #>> '{deabcdefghP, value}' as double precision) end as "deabcdefghP\""""; String aliasD3 = """ case when eventdatavalues #>> '{deabcdefghY, value}' = 'true' then 1 \ @@ -386,13 +386,13 @@ void verifyGetTableWithDataElements() { String aliasD4 = """ case when eventdatavalues #>> '{deabcdefghW, value}' ~* '^\\d{4}-\\d{2}-\\d{2}(\\s|T)?((\\d{2}:)(\\d{2}:)?(\\d{2}))?(|.(\\d{3})|.(\\d{3})Z)?$' \ - then cast(eventdatavalues #>> '{deabcdefghW, value}' as timestamp) else null end as "deabcdefghW\""""; + then cast(eventdatavalues #>> '{deabcdefghW, value}' as timestamp) end as "deabcdefghW\""""; String aliasD5 = "eventdatavalues #>> '{" + d5.getUid() + ", value}' as \"" + d5.getUid() + "\""; String aliasD6 = """ case when eventdatavalues #>> '{deabcdefghH, value}' ~* '^(-?[0-9]+)(\\.[0-9]+)?$' \ - then cast(eventdatavalues #>> '{deabcdefghH, value}' as bigint) else null end as "deabcdefghH\""""; + then cast(eventdatavalues #>> '{deabcdefghH, value}' as bigint) end as "deabcdefghH\""""; String aliasD7 = """ ST_GeomFromGeoJSON('{\"type\":\"Point\", \"coordinates\":' || (eventdatavalues #>> '{deabcdefghU, value}') || ', "crs":{"type":"name", "properties":{"name":"EPSG:4326"}}}') as "deabcdefghU\"""";