From 4c240da4e9e79317fe6f8f8d49a49aacfa0c7fd4 Mon Sep 17 00:00:00 2001 From: Anubhav Gupta Date: Fri, 17 Apr 2015 15:36:09 -0700 Subject: [PATCH] Fix type of values in sql update. --- .../io/druid/indexer/SQLMetadataStorageUpdaterJobHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/io/druid/indexer/SQLMetadataStorageUpdaterJobHandler.java b/server/src/main/java/io/druid/indexer/SQLMetadataStorageUpdaterJobHandler.java index 31385e10d9d..d6a9dbc81b1 100644 --- a/server/src/main/java/io/druid/indexer/SQLMetadataStorageUpdaterJobHandler.java +++ b/server/src/main/java/io/druid/indexer/SQLMetadataStorageUpdaterJobHandler.java @@ -67,10 +67,10 @@ public class SQLMetadataStorageUpdaterJobHandler implements MetadataStorageUpdat .put("created_date", new DateTime().toString()) .put("start", segment.getInterval().getStart().toString()) .put("end", segment.getInterval().getEnd().toString()) - .put("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? 0 : 1) + .put("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? false : true) .put("version", segment.getVersion()) .put("used", true) - .put("payload", mapper.writeValueAsString(segment)) + .put("payload", mapper.writeValueAsBytes(segment)) .build() );