diff --git a/api/src/test/java/io/druid/data/input/impl/FileIteratingFirehoseTest.java b/api/src/test/java/io/druid/data/input/impl/FileIteratingFirehoseTest.java index d3de50d96ce..0fdbf17f5e1 100644 --- a/api/src/test/java/io/druid/data/input/impl/FileIteratingFirehoseTest.java +++ b/api/src/test/java/io/druid/data/input/impl/FileIteratingFirehoseTest.java @@ -66,7 +66,8 @@ public class FileIteratingFirehoseTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("x")), null, null), ",", ImmutableList.of("ts", "x") - ) + ), + null ); final FileIteratingFirehose firehose = new FileIteratingFirehose(lineIterators.iterator(), parser); diff --git a/api/src/test/java/io/druid/data/input/impl/InputRowParserSerdeTest.java b/api/src/test/java/io/druid/data/input/impl/InputRowParserSerdeTest.java index 1190926e8ec..5395a2c5785 100644 --- a/api/src/test/java/io/druid/data/input/impl/InputRowParserSerdeTest.java +++ b/api/src/test/java/io/druid/data/input/impl/InputRowParserSerdeTest.java @@ -49,7 +49,8 @@ public class InputRowParserSerdeTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("foo", "bar")), null, null), null, null - ) + ), + null ); final ByteBufferInputRowParser parser2 = jsonMapper.readValue( jsonMapper.writeValueAsBytes(parser), @@ -197,7 +198,8 @@ public class InputRowParserSerdeTest new DimensionsSpec(null, null, null), flattenSpec, null - ) + ), + null ); final StringInputRowParser parser2 = jsonMapper.readValue( diff --git a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopyStringInputRowParser.java b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopyStringInputRowParser.java index 49a11689b78..05e57f68947 100644 --- a/indexing-hadoop/src/main/java/io/druid/indexer/HadoopyStringInputRowParser.java +++ b/indexing-hadoop/src/main/java/io/druid/indexer/HadoopyStringInputRowParser.java @@ -38,7 +38,7 @@ public class HadoopyStringInputRowParser implements InputRowParser public HadoopyStringInputRowParser(@JsonProperty("parseSpec") ParseSpec parseSpec) { - this.parser = new StringInputRowParser(parseSpec); + this.parser = new StringInputRowParser(parseSpec, null); } @Override diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/BatchDeltaIngestionTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/BatchDeltaIngestionTest.java index a0a65191963..e1931cd60f6 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/BatchDeltaIngestionTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/BatchDeltaIngestionTest.java @@ -349,7 +349,8 @@ public class BatchDeltaIngestionTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host")), null, null), null, ImmutableList.of("timestamp", "host", "host2", "visited_num") - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/DetermineHashedPartitionsJobTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/DetermineHashedPartitionsJobTest.java index 9bac1597955..479e72de1b8 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/DetermineHashedPartitionsJobTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/DetermineHashedPartitionsJobTest.java @@ -126,7 +126,8 @@ public class DetermineHashedPartitionsJobTest "placementish", "index" ) - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/DeterminePartitionsJobTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/DeterminePartitionsJobTest.java index 400902c1a6c..5517cfbd1ec 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/DeterminePartitionsJobTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/DeterminePartitionsJobTest.java @@ -230,7 +230,8 @@ public class DeterminePartitionsJobTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host", "country")), null, null), null, ImmutableList.of("timestamp", "host", "country", "visited_num") - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorCombinerTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorCombinerTest.java index 855cfd973fa..d17bbd7f60b 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorCombinerTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorCombinerTest.java @@ -70,7 +70,8 @@ public class IndexGeneratorCombinerTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host")), null, null), null, ImmutableList.of("timestamp", "host", "visited") - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorJobTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorJobTest.java index b0785a51088..731253ae720 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorJobTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/IndexGeneratorJobTest.java @@ -143,7 +143,8 @@ public class IndexGeneratorJobTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host")), null, null), null, ImmutableList.of("timestamp", "host", "visited_num") - ) + ), + null ), null, aggs1, @@ -233,7 +234,8 @@ public class IndexGeneratorJobTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host")), null, null), null, ImmutableList.of("timestamp", "host", "visited_num") - ) + ), + null ), null, aggs1, @@ -316,8 +318,11 @@ public class IndexGeneratorJobTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("ts", "yyyyMMddHH", null), - new DimensionsSpec(null, null, null) - ) + new DimensionsSpec(null, null, null), + null, + null + ), + null ), 1, // force 1 row max per index for easier testing aggs2, @@ -345,8 +350,11 @@ public class IndexGeneratorJobTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("ts", "yyyyMMddHH", null), - new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("B", "F", "M", "Q", "X", "Y")), null, null) - ) + new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("B", "F", "M", "Q", "X", "Y")), null, null), + null, + null + ), + null ), 1, // force 1 row max per index for easier testing aggs2, diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/JobHelperTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/JobHelperTest.java index 99580e97c8b..fc88d57cd14 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/JobHelperTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/JobHelperTest.java @@ -75,7 +75,8 @@ public class JobHelperTest new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("host")), null, null), null, ImmutableList.of("timestamp", "host", "visited_num") - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/path/DatasourcePathSpecTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/path/DatasourcePathSpecTest.java index 510c012fb26..7c35adb492c 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/path/DatasourcePathSpecTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/path/DatasourcePathSpecTest.java @@ -268,7 +268,8 @@ public class DatasourcePathSpecTest new DimensionsSpec(null, null, null), null, ImmutableList.of("timestamp", "host", "visited") - ) + ), + null ), Map.class ), diff --git a/indexing-hadoop/src/test/java/io/druid/indexer/updater/HadoopConverterJobTest.java b/indexing-hadoop/src/test/java/io/druid/indexer/updater/HadoopConverterJobTest.java index df7ca2148bb..9cc9da7a143 100644 --- a/indexing-hadoop/src/test/java/io/druid/indexer/updater/HadoopConverterJobTest.java +++ b/indexing-hadoop/src/test/java/io/druid/indexer/updater/HadoopConverterJobTest.java @@ -164,7 +164,8 @@ public class HadoopConverterJobTest "\t", "\u0001", Arrays.asList(TestIndex.COLUMNS) - ) + ), + null ), Map.class ), diff --git a/indexing-service/src/test/java/io/druid/indexing/common/task/IndexTaskTest.java b/indexing-service/src/test/java/io/druid/indexing/common/task/IndexTaskTest.java index a67d5f2688a..2bf321d8570 100644 --- a/indexing-service/src/test/java/io/druid/indexing/common/task/IndexTaskTest.java +++ b/indexing-service/src/test/java/io/druid/indexing/common/task/IndexTaskTest.java @@ -117,7 +117,8 @@ public class IndexTaskTest ), null, Arrays.asList("ts", "dim", "val") - ) + ), + null ), Map.class ), @@ -189,7 +190,8 @@ public class IndexTaskTest ), null, Arrays.asList("ts", "dim", "val") - ) + ), + null ), Map.class ), @@ -302,7 +304,8 @@ public class IndexTaskTest ), null, Arrays.asList("ts", "dim", "val") - ) + ), + null ), Map.class ), diff --git a/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTest.java b/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTest.java index b5f96e58877..5fd3776a922 100644 --- a/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTest.java +++ b/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTest.java @@ -298,7 +298,9 @@ public class IngestSegmentFirehoseFactoryTest DimensionsSpec.getDefaultSchemas(ImmutableList.of()), ImmutableList.of(DIM_FLOAT_NAME, DIM_LONG_NAME), ImmutableList.of() - ) + ), + null, + null ) ) )) { @@ -416,7 +418,9 @@ public class IngestSegmentFirehoseFactoryTest DimensionsSpec.getDefaultSchemas(ImmutableList.of(DIM_NAME)), ImmutableList.of(DIM_FLOAT_NAME, DIM_LONG_NAME), ImmutableList.of() - ) + ), + null, + null ) ); diff --git a/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTimelineTest.java b/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTimelineTest.java index 64fe50f9c19..5627d7caa10 100644 --- a/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTimelineTest.java +++ b/indexing-service/src/test/java/io/druid/indexing/firehose/IngestSegmentFirehoseFactoryTimelineTest.java @@ -100,7 +100,9 @@ public class IngestSegmentFirehoseFactoryTimelineTest DimensionsSpec.getDefaultSchemas(Arrays.asList(DIMENSIONS)), null, null - ) + ), + null, + null ) ); diff --git a/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java b/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java index 3c1e42a7031..bb0e70f1d5f 100644 --- a/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java +++ b/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java @@ -58,8 +58,11 @@ public class DataSchemaTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("time", "auto", null), - new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("dimB", "dimA")), null, null) - ) + new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("dimB", "dimA")), null, null), + null, + null + ), + null ), new TypeReference>() {} ); @@ -87,8 +90,11 @@ public class DataSchemaTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("time", "auto", null), - new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("time", "dimA", "dimB", "col2")), ImmutableList.of("dimC"), null) - ) + new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("time", "dimA", "dimB", "col2")), ImmutableList.of("dimC"), null), + null, + null + ), + null ), new TypeReference>() {} ); @@ -116,8 +122,11 @@ public class DataSchemaTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("time", "auto", null), - new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("time", "dimA", "dimB", "metric1")), ImmutableList.of("dimC"), null) - ) + new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("time", "dimA", "dimB", "metric1")), ImmutableList.of("dimC"), null), + null, + null + ), + null ), new TypeReference>() {} ); @@ -197,7 +206,9 @@ public class DataSchemaTest actual.getParser().getParseSpec(), new JSONParseSpec( new TimestampSpec("xXx", null, null), - new DimensionsSpec(null, Arrays.asList("metric1", "xXx", "col1"), null) + new DimensionsSpec(null, Arrays.asList("metric1", "xXx", "col1"), null), + null, + null ) ); Assert.assertEquals( diff --git a/server/src/test/java/io/druid/segment/realtime/FireDepartmentTest.java b/server/src/test/java/io/druid/segment/realtime/FireDepartmentTest.java index 0a8f70c00c2..fffcc5319ab 100644 --- a/server/src/test/java/io/druid/segment/realtime/FireDepartmentTest.java +++ b/server/src/test/java/io/druid/segment/realtime/FireDepartmentTest.java @@ -86,8 +86,11 @@ public class FireDepartmentTest DimensionsSpec.getDefaultSchemas(Arrays.asList("dim1", "dim2")), null, null - ) - ) + ), + null, + null + ), + null ), Map.class ), diff --git a/server/src/test/java/io/druid/segment/realtime/appenderator/AppenderatorTester.java b/server/src/test/java/io/druid/segment/realtime/appenderator/AppenderatorTester.java index 661d4f041cb..8723912a52c 100644 --- a/server/src/test/java/io/druid/segment/realtime/appenderator/AppenderatorTester.java +++ b/server/src/test/java/io/druid/segment/realtime/appenderator/AppenderatorTester.java @@ -103,7 +103,9 @@ public class AppenderatorTester implements AutoCloseable new MapInputRowParser( new JSONParseSpec( new TimestampSpec("ts", "auto", null), - new DimensionsSpec(null, null, null) + new DimensionsSpec(null, null, null), + null, + null ) ), Map.class diff --git a/server/src/test/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseTest.java b/server/src/test/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseTest.java index 537365c4092..fe081b8096f 100644 --- a/server/src/test/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseTest.java +++ b/server/src/test/java/io/druid/segment/realtime/firehose/EventReceiverFirehoseTest.java @@ -83,7 +83,9 @@ public class EventReceiverFirehoseTest "timestamp", "auto", null - ), new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("d1")), null, null) + ), new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("d1")), null, null), + null, + null ) ) ); @@ -213,7 +215,9 @@ public class EventReceiverFirehoseTest "timestamp", "auto", null - ), new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("d1")), null, null) + ), new DimensionsSpec(DimensionsSpec.getDefaultSchemas(ImmutableList.of("d1")), null, null), + null, + null ) ) ); diff --git a/server/src/test/java/io/druid/segment/realtime/plumber/RealtimePlumberSchoolTest.java b/server/src/test/java/io/druid/segment/realtime/plumber/RealtimePlumberSchoolTest.java index 348fa9d6b6e..b604ae713e8 100644 --- a/server/src/test/java/io/druid/segment/realtime/plumber/RealtimePlumberSchoolTest.java +++ b/server/src/test/java/io/druid/segment/realtime/plumber/RealtimePlumberSchoolTest.java @@ -135,8 +135,11 @@ public class RealtimePlumberSchoolTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("timestamp", "auto", null), - new DimensionsSpec(null, null, null) - ) + new DimensionsSpec(null, null, null), + null, + null + ), + null ), Map.class ), @@ -151,8 +154,11 @@ public class RealtimePlumberSchoolTest new StringInputRowParser( new JSONParseSpec( new TimestampSpec("timestamp", "auto", null), - new DimensionsSpec(null, null, null) - ) + new DimensionsSpec(null, null, null), + null, + null + ), + null ), Map.class ),