-
Notifications
You must be signed in to change notification settings - Fork 163
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
postgres: add boolean array #453
Conversation
ba5c31e
to
9dd9c63
Compare
@wangxiaoying sorry for the delay on this! got busy IRL. I think I'm pretty close to this - muddled through most of the impls that i was missing last time, including the Now i'm getting the following errors:
for which I'm a little bit stumped. From that error it seems to me like the |
9dd9c63
to
5f61658
Compare
Hi @Amar1729 , I think the error for csv is because postgres's rust driver does not support return Similar for simple protocol. The result of getting the value in simple protocol is in string try_get, and similar to |
Alright, i think i figured it out! I've got postgres-related python tests passing:
Let me know if there's anything I need to change.
|
I added a test in |
c5288e0
to
f873fc0
Compare
My bad, forgot |
@wangxiaoying should be good to re-run CI on this, I ran |
Let me know if there's anything else that need to be changed / any edge cases i might have missed / whether i should squash or rework the commits. otherwise i think this is done 👍 |
Hi @Amar1729 , thank you for the PR! It looks good to me. The support is done for all the destinations and the test looks good to me. I think we can merge this PR after rebase. : ) |
@wangxiaoying no problem! What should i rebase, it looks like this branch is based off of current |
Hi @Amar1729 , sorry for the late reply. I think we can just squash all the commit in this PR into one. |
- update typesystems, destinations - update pandas_columns, transports, and postgres - implement Vec<bool>, Option<Vec<bool>> for PostgresCSVSourceParser and PostgresSimpleSourceParser (parsing for `t` and `f` input) - modify `impl_arrow_assoc_vec` to take three arguments - had to change the macro since booleans use `MutableBooleanArray` - update `test_postgres.py`, `test_polars.rs`
f873fc0
to
baaae40
Compare
@wangxiaoying no problem! done. |
wo0t thanks for the update (and maintaining this library)! |
Not sure I'm doing this in the right way, but this is my attempt to add support for
BOOLEAN[]
arrays ("_bool"
) to the postgres typesystem.With these changes, I'm getting this error when I attempt to run the python postgres tests:
But I'm not sure how to fix that error. Any advice?