don't use base for timestamp fields

This commit is contained in:
Matthew Jaffee 2022-05-28 08:25:04 -05:00 committed by Matthew Jaffee
parent d4820d872f
commit 98cb763499
2 changed files with 5 additions and 0 deletions

View file

@ -1359,6 +1359,9 @@ func (b *Batch) makeSingleValFragments(frags, clearFrags fragments) (fragments,
}
field := b.headerMap[fieldName]
base := field.Options().base
if field.Options().Type() == FieldTypeTimestamp {
base = 0
}
shard := ids[0] / shardWidth
bitmap := frags.GetOrCreate(shard, fieldName, "bsig_"+fieldName) // TODO... grab bsig_ prefix from elsewhere

View file

@ -826,10 +826,12 @@ func (fo FieldOptions) String() string {
case FieldTypeInt:
mopt["min"] = fo.min
mopt["max"] = fo.max
// TODO add base
case FieldTypeDecimal:
mopt["min"] = fo.min
mopt["max"] = fo.max
mopt["scale"] = fo.scale
// TODO add base?
case FieldTypeTime:
mopt["timeQuantum"] = string(fo.timeQuantum)
mopt["noStandardView"] = fo.noStandardView