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

Fix JSON support in SQLAlchemy #425

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

hovaesco
Copy link
Member

Description

Resolves #423 and #387

Non-technical explanation

Release notes

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

* Fix some things. ({issue}`issuenumber`)

@hovaesco hovaesco force-pushed the hovaesco/json-sqlalchemy branch from d99fcaf to 594782c Compare November 28, 2023 10:37
@hovaesco hovaesco self-assigned this Nov 28, 2023
return "$%s" % (
"".join(
[
"[%s]" % elem if isinstance(elem, int) else '.%s' % elem
Copy link
Member

Choose a reason for hiding this comment

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

why not quote with [ always? e.g. if elem has a dash then also you need to quote.

Copy link
Member

Choose a reason for hiding this comment

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

also maybe extract a well-named static method for this

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, changed

@hovaesco hovaesco force-pushed the hovaesco/json-sqlalchemy branch from 594782c to f7eff9f Compare November 28, 2023 13:20
@hashhar hashhar merged commit ab0e596 into trinodb:master Dec 22, 2023
11 checks passed
@hashhar hashhar mentioned this pull request Dec 22, 2023
1 task
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.

JSON support
3 participants