Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bson roundtrip doesn't work with timestamp fields #2590

Closed
universalmind303 opened this issue Feb 2, 2024 · 0 comments · Fixed by #2593
Closed

bson roundtrip doesn't work with timestamp fields #2590

universalmind303 opened this issue Feb 2, 2024 · 0 comments · Fixed by #2593
Assignees
Labels
bug 🐛 Something isn't working

Comments

@universalmind303
Copy link
Contributor

Description

> create table timestamps (t timestamp);
Table created
> insert into timestamps values (arrow_cast(946684860000000, 'Timestamp(Microsecond, None)'));
Inserted 1 row
> select * from timestamps;
┌─────────────────────┐
│ t                   │
│ ──                  │
│ Timestamp<µs, UTC>  │
╞═════════════════════╡
│ 2000-01-01T00:01:00 │
└─────────────────────┘
> copy timestamps to  '/Users/me/Development/glaredb/out.bson';
Copy success
> select * from '/Users/me/Development/glaredb/out.bson';
Error: External error: Execution error: Unexpected datatype for builder Date64
@universalmind303 universalmind303 added the bug 🐛 Something isn't working label Feb 2, 2024
@tychoish tychoish self-assigned this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants