From 995002fcb37ea62893eb958c67477de90ea6385a Mon Sep 17 00:00:00 2001 From: Yuval Oren Date: Thu, 6 Mar 2014 18:05:24 -0800 Subject: [PATCH] Fix legacy data source serialization --- processing/src/main/java/io/druid/query/LegacyDataSource.java | 2 ++ processing/src/main/java/io/druid/query/QueryDataSource.java | 2 ++ processing/src/main/java/io/druid/query/TableDataSource.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/processing/src/main/java/io/druid/query/LegacyDataSource.java b/processing/src/main/java/io/druid/query/LegacyDataSource.java index 93636238d87..07a8c647297 100644 --- a/processing/src/main/java/io/druid/query/LegacyDataSource.java +++ b/processing/src/main/java/io/druid/query/LegacyDataSource.java @@ -22,7 +22,9 @@ package io.druid.query; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeName; +@JsonTypeName("table") public class LegacyDataSource extends TableDataSource { @JsonCreator diff --git a/processing/src/main/java/io/druid/query/QueryDataSource.java b/processing/src/main/java/io/druid/query/QueryDataSource.java index 8296f0e7dd2..e15ebf31338 100644 --- a/processing/src/main/java/io/druid/query/QueryDataSource.java +++ b/processing/src/main/java/io/druid/query/QueryDataSource.java @@ -23,7 +23,9 @@ package io.druid.query; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeName; +@JsonTypeName("query") public class QueryDataSource implements DataSource { @JsonProperty diff --git a/processing/src/main/java/io/druid/query/TableDataSource.java b/processing/src/main/java/io/druid/query/TableDataSource.java index 79fed0e0721..f246106aae1 100644 --- a/processing/src/main/java/io/druid/query/TableDataSource.java +++ b/processing/src/main/java/io/druid/query/TableDataSource.java @@ -22,7 +22,9 @@ package io.druid.query; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeName; +@JsonTypeName("table") public class TableDataSource implements DataSource { @JsonProperty