mirror of https://github.com/apache/druid.git
Bind value of column "partitioned" as boolean, as it is defined in the "create table" ddl.
This commit is contained in:
parent
5d12502f9d
commit
b42b41cca7
|
@ -187,7 +187,7 @@ public class IndexerSQLMetadataStorageCoordinator implements IndexerMetadataStor
|
||||||
.bind("created_date", new DateTime().toString())
|
.bind("created_date", new DateTime().toString())
|
||||||
.bind("start", segment.getInterval().getStart().toString())
|
.bind("start", segment.getInterval().getStart().toString())
|
||||||
.bind("end", segment.getInterval().getEnd().toString())
|
.bind("end", segment.getInterval().getEnd().toString())
|
||||||
.bind("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? 0 : 1)
|
.bind("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? false : true)
|
||||||
.bind("version", segment.getVersion())
|
.bind("version", segment.getVersion())
|
||||||
.bind("used", true)
|
.bind("used", true)
|
||||||
.bind("payload", jsonMapper.writeValueAsBytes(segment))
|
.bind("payload", jsonMapper.writeValueAsBytes(segment))
|
||||||
|
|
|
@ -96,7 +96,7 @@ public class SQLMetadataSegmentPublisher implements MetadataSegmentPublisher
|
||||||
.bind("created_date", new DateTime().toString())
|
.bind("created_date", new DateTime().toString())
|
||||||
.bind("start", segment.getInterval().getStart().toString())
|
.bind("start", segment.getInterval().getStart().toString())
|
||||||
.bind("end", segment.getInterval().getEnd().toString())
|
.bind("end", segment.getInterval().getEnd().toString())
|
||||||
.bind("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? 0 : 1)
|
.bind("partitioned", (segment.getShardSpec() instanceof NoneShardSpec) ? false : true)
|
||||||
.bind("version", segment.getVersion())
|
.bind("version", segment.getVersion())
|
||||||
.bind("used", true)
|
.bind("used", true)
|
||||||
.bind("payload", jsonMapper.writeValueAsBytes(segment))
|
.bind("payload", jsonMapper.writeValueAsBytes(segment))
|
||||||
|
|
Loading…
Reference in New Issue