From 594101e54ad83dcd6433440b544586d2f0754330 Mon Sep 17 00:00:00 2001 From: Kashif Faraz Date: Thu, 22 Dec 2022 17:54:04 +0530 Subject: [PATCH] Use correct ObjectMapper in BloomFilterSqlAggregationTest (#13616) --- .../sql/BloomFilterSqlAggregatorTest.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/extensions-core/druid-bloom-filter/src/test/java/org/apache/druid/query/aggregation/bloom/sql/BloomFilterSqlAggregatorTest.java b/extensions-core/druid-bloom-filter/src/test/java/org/apache/druid/query/aggregation/bloom/sql/BloomFilterSqlAggregatorTest.java index 26f1ce108fee..69ad2f189598 100644 --- a/extensions-core/druid-bloom-filter/src/test/java/org/apache/druid/query/aggregation/bloom/sql/BloomFilterSqlAggregatorTest.java +++ b/extensions-core/druid-bloom-filter/src/test/java/org/apache/druid/query/aggregation/bloom/sql/BloomFilterSqlAggregatorTest.java @@ -178,7 +178,7 @@ public void testBloomFilterAgg() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected1)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected1)} ) ); } @@ -239,8 +239,8 @@ public void testBloomFilterTwoAggs() throws Exception ), ImmutableList.of( new Object[] { - CalciteTests.getJsonMapper().writeValueAsString(expected1), - CalciteTests.getJsonMapper().writeValueAsString(expected2) + queryFramework().queryJsonMapper().writeValueAsString(expected1), + queryFramework().queryJsonMapper().writeValueAsString(expected2) } ) ); @@ -288,7 +288,7 @@ public void testBloomFilterAggExtractionFn() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected1)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected1)} ) ); @@ -335,7 +335,7 @@ public void testBloomFilterAggLong() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected3)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected3)} ) ); } @@ -388,7 +388,7 @@ public void testBloomFilterAggLongVirtualColumn() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected1)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected1)} ) ); } @@ -442,7 +442,7 @@ public void testBloomFilterAggFloatVirtualColumn() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected1)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected1)} ) ); } @@ -496,7 +496,7 @@ public void testBloomFilterAggDoubleVirtualColumn() throws Exception .build() ), ImmutableList.of( - new Object[]{CalciteTests.getJsonMapper().writeValueAsString(expected1)} + new Object[]{queryFramework().queryJsonMapper().writeValueAsString(expected1)} ) ); } @@ -540,8 +540,8 @@ public void testEmptyTimeseriesResults() throws Exception ), ImmutableList.of( new Object[] { - CalciteTests.getJsonMapper().writeValueAsString(expected1), - CalciteTests.getJsonMapper().writeValueAsString(expected2) + queryFramework().queryJsonMapper().writeValueAsString(expected1), + queryFramework().queryJsonMapper().writeValueAsString(expected2) } ) ); @@ -596,8 +596,8 @@ public void testGroupByAggregatorDefaultValues() throws Exception ImmutableList.of( new Object[] { "a", - CalciteTests.getJsonMapper().writeValueAsString(expected1), - CalciteTests.getJsonMapper().writeValueAsString(expected2) + queryFramework().queryJsonMapper().writeValueAsString(expected1), + queryFramework().queryJsonMapper().writeValueAsString(expected2) } ) );