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

Invalid null handling in mongo collections #2484

Closed
universalmind303 opened this issue Jan 24, 2024 · 0 comments · Fixed by #2485
Closed

Invalid null handling in mongo collections #2484

universalmind303 opened this issue Jan 24, 2024 · 0 comments · Fixed by #2485
Assignees
Labels
bug Something isn't working

Comments

@universalmind303
Copy link
Contributor

Steps to reproduce

mongo shell

test> db.createCollection("nulls_test")
{ ok: 1 }
test> db.nulls_test.insertMany([{ value: 1}, {value: null}])

glaredb

> SELECT * FROM read_mongodb('mongodb://localhost:27017/test', 'test', 'nulls_test');
Error: External error: External error: Unhandled element type to arrow type conversion; Null, Int32

Expected

┌─────────────────┐
│ value           │
│              ── │
│           Int32 │
╞═════════════════╡
│               1 │
│            NULL │
└─────────────────┘
@universalmind303 universalmind303 added the bug Something isn't working label Jan 24, 2024
@universalmind303 universalmind303 linked a pull request Jan 24, 2024 that will close this issue
@tychoish tychoish self-assigned this Jan 25, 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