Skip to content

Commit

Permalink
Merge pull request #1295 from anubhgup/master
Browse files Browse the repository at this point in the history
Fix type of values in sql update.
  • Loading branch information
fjy committed Apr 18, 2015
2 parents b438ca3 + 4c240da commit 1addbe1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public Void withHandle(Handle handle) throws Exception
.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()
);

Expand Down

0 comments on commit 1addbe1

Please sign in to comment.