From 5f1ff67a4d9e77bf742a6a8c32b01a01da7d3cdb Mon Sep 17 00:00:00 2001 From: artur rocks Date: Mon, 15 Jul 2024 18:28:25 +0200 Subject: [PATCH] minor fix for h2 --- .../rocks/artur/jpa/CharacterisationResultGatewayJpaImpl.java | 2 +- .../view/CustomCharacterisationResultViewRepositoryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra-persistence/src/main/java/rocks/artur/jpa/CharacterisationResultGatewayJpaImpl.java b/infra-persistence/src/main/java/rocks/artur/jpa/CharacterisationResultGatewayJpaImpl.java index 5b5c0fb..dbc24a8 100644 --- a/infra-persistence/src/main/java/rocks/artur/jpa/CharacterisationResultGatewayJpaImpl.java +++ b/infra-persistence/src/main/java/rocks/artur/jpa/CharacterisationResultGatewayJpaImpl.java @@ -258,7 +258,7 @@ public void resolveConflictsNative(String datasetName) { @Override public List listDatasets() { - return List.of(); + return List.of("default"); } } diff --git a/infra-persistence/src/main/java/rocks/artur/jpa/view/CustomCharacterisationResultViewRepositoryImpl.java b/infra-persistence/src/main/java/rocks/artur/jpa/view/CustomCharacterisationResultViewRepositoryImpl.java index a95b03b..7958d9b 100644 --- a/infra-persistence/src/main/java/rocks/artur/jpa/view/CustomCharacterisationResultViewRepositoryImpl.java +++ b/infra-persistence/src/main/java/rocks/artur/jpa/view/CustomCharacterisationResultViewRepositoryImpl.java @@ -56,7 +56,7 @@ public List getPropertyValueTimeStampDistribution(String property, FilterCriteri "select property, CASE " + "WHEN property_value = 'CONFLICT' THEN property_value " + "ELSE SUBSTRING(property_value,1,4) " + - "END as value, count(property) as number " + + "END, count(property) as number " + "from characterisationresultview " + "where %s property = '%s' group by property, CASE " + "WHEN property_value = 'CONFLICT' THEN property_value " +