Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Timeunit ms doesn't seem to be functioning correctly #2385

Open
jbryson3 opened this issue Sep 28, 2023 · 0 comments
Open

Timeunit ms doesn't seem to be functioning correctly #2385

jbryson3 opened this issue Sep 28, 2023 · 0 comments

Comments

@jbryson3
Copy link

Using the latest docker image Molecula Pilosa v3.35.0-1-g3fd29cbb (Apr 4 2023 2:45PM, 3fd29cbb) go1.20.2 I created a simple table with SQL in the UI following the example in the documentation

Running this code

create table demo
  (_id id, ts timestamp timeunit 'ms');

insert into demo(_id, ts) 
  values (1, 1695943004481);
-- 1695943004481 is "2023-09-28T23:16:44.481Z" in ms since epoch

select * from demo;

Results in the following error
json: error calling MarshalJSON for type time.Time: Time.MarshalJSON: year outside of range [0,9999]

When I truncate the timestamp by 1000, it works fine.

insert into demo(_id, ts) 
  values (1, 1695943004);

select * from demo;
-- succeeds
ngaut pushed a commit to ngaut/pilosa that referenced this issue Nov 25, 2023
…B#2385)

This just changes a make target and the CLI setup. Nothing in
featurebase is actually affected.

(cherry picked from commit 33bc69c)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant