Merge pull request #1295 from anubhgup/master

Fix type of values in sql update.
This commit is contained in:
Fangjin Yang 2015-04-17 20:26:17 -07:00
commit 1addbe163a
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ public class SQLMetadataStorageUpdaterJobHandler implements MetadataStorageUpdat
.put("created_date", new DateTime().toString()) .put("created_date", new DateTime().toString())
.put("start", segment.getInterval().getStart().toString()) .put("start", segment.getInterval().getStart().toString())
.put("end", segment.getInterval().getEnd().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("version", segment.getVersion())
.put("used", true) .put("used", true)
.put("payload", mapper.writeValueAsString(segment)) .put("payload", mapper.writeValueAsBytes(segment))
.build() .build()
); );