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

Add JSON functionality to SQLAlchemy Dialect #214

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

laserkaplan
Copy link
Member

@laserkaplan laserkaplan commented Aug 9, 2022

Description

Implement the ability to reference JSON columns using SQLAlchemy. This allows JSON columns to be created in new tables, as well as writes to/reads from them using normal Python json module serialization/deserialization.

Originally referenced in this issue.

Release notes

( ) This is not user-visible and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

* Add support for creating tables containing `JSON` columns and reading and writing to them with SQLAlchemy. ([#194](https://trinodb/trino-python-client/issues/194))

@cla-bot cla-bot bot added the cla-signed label Aug 9, 2022
@ebyhr ebyhr requested review from hashhar, hovaesco and mdesmet August 16, 2022 06:26
trino/sqlalchemy/types.py Outdated Show resolved Hide resolved
Copy link
Contributor

@mdesmet mdesmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laserkaplan: please have a look at the pending remark of @hovaesco on moving the TypeDecorator to datatype.py.

LGTM % the above remark and squash the commits.

@laserkaplan
Copy link
Member Author

Whoops, thanks for the reminder! Moved to datatype.py.

@laserkaplan
Copy link
Member Author

Seems like these tests failing might be a larger issue? Multiple open PRs are all failing at the same spot.

@mdesmet
Copy link
Contributor

mdesmet commented Sep 19, 2022

Seems like these tests failing might be a larger issue? Multiple open PRs are all failing at the same spot.

Yes, it should be gone when #220 is merged.

Copy link
Member

@hovaesco hovaesco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash commits.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll rebase and then merge this after I merge #220 tomorrow morning my time.

Thanks for contributing @laserkaplan and sorry about the very long delay.

@hashhar hashhar merged commit cd614ff into trinodb:master Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants