mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
don't use base for timestamp fields
This commit is contained in:
parent
d4820d872f
commit
98cb763499
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue