featurebase/server
Samir Patel 3681feeeb2
[FB-1024 FB-1590] Increase timerange (un-revert) (#2174)
previously we allowed users to specify a granularity for timestamp
e.g. seconds, milli, micro, nano
however we converted everything to nano before we stored it.
This reduced the allowed range for all time units to what
was allowed by timestamp. For example, with second granularity
you can represent billions of years within the capacity of
int64 but with nano its somewhere b/w 100-200 years.

So now, for timeunits of seconds, milli, and micro the range
is year 0001 - 9999. These limits come from what Go
supports.

So this uses unit specific function to translate
timestamps to values and vice versa to increase
the time range.

In the process of increasing the range for timestamp and subsequent
testing, I found and addressed a few bugs:
- min/max queries were not using timestamp specific comparators so
  added that.
- Values from Import/ingest come to FB as relative values to epoch
    whereas other BSI fields come as actual values and then
    becomes relative to their respective bases within FB. so some
    specific handling of that was added.
- However! Set queries use timestamp strings which are, of course,
    the actual value they designate. So they have to become
    relative.
- When bitdepth is 0, Min/maxUnsigned functions did not run
resulting in a count of 0 when there
was an actual value that was 0.

Also, this removes (now) dead code and updates/adds tests.
2022-08-04 15:20:45 -07:00
..
testdata/certs Supply "subject alternative name" for TLS certificates 2020-10-20 14:14:26 -05:00
cluster_test.go Remove most of the resize-related logic 2022-06-21 17:03:09 -05:00
config.go [FB-1598] Phase 0 of etcd extraction (#2169) 2022-07-29 15:27:04 -05:00
config_internal_test.go FB-1378: Use IP whitelisting for ingest authentication and authorization (#2070) 2022-05-20 14:57:05 -05:00
config_test.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
dup.go add copyright notice back in 2021-12-10 11:01:04 -06:00
dup_arm64.go add copyright notice back in 2021-12-10 11:01:04 -06:00
grpc.go Remove most of the resize-related logic 2022-06-21 17:03:09 -05:00
grpc_internal_test.go Recognize semi-colon separated cookies too (#2078) 2022-05-24 21:45:33 -05:00
grpc_test.go catch errors on closing written-to files 2022-07-22 12:20:16 -05:00
handler_test.go Remove most of the resize-related logic 2022-06-21 17:03:09 -05:00
pg.go [FB-1024 FB-1590] Increase timerange (un-revert) (#2174) 2022-08-04 15:20:45 -07:00
pg_internal_test.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
pg_test.go FB-1188 - Added TTL field option 2022-02-25 11:39:31 -06:00
server.go [FB-1598] Phase 0 of etcd extraction (#2169) 2022-07-29 15:27:04 -05:00
server_internal_test.go addresses multiple authn/z tickets 2022-01-14 12:31:32 -06:00
server_test.go Remove most of the resize-related logic 2022-06-21 17:03:09 -05:00
sql.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
tlsconfig.go add guardrails to TLS configs 2022-06-28 11:58:19 -05:00
tlsconfig_test.go add guardrails to TLS configs 2022-06-28 11:58:19 -05:00
trial.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00