mirror of https://github.com/apache/druid.git
Fix type of values in sql update.
This commit is contained in:
parent
eb1df425b1
commit
4c240da4e9
|
@ -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()
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue