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

Support JSONB value in JOIN query (PostgreSQL) #629

Open
sant1ago-da-hanoi opened this issue Jun 4, 2024 · 2 comments
Open

Support JSONB value in JOIN query (PostgreSQL) #629

sant1ago-da-hanoi opened this issue Jun 4, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation join conditions involving more than 1 table PostgreSQL issues involving PostgreSQL only

Comments

@sant1ago-da-hanoi
Copy link

sant1ago-da-hanoi commented Jun 4, 2024

In a pure PostgreSQL query, I can do it using something like this:

select t.value
from tbl_jsonb j
join tbl_translation t
on j ->> key_1 = t.key 

So I really hope that DB2Rest supports this kind of action.

@thadguidry thadguidry added the enhancement New feature or request label Jun 11, 2024
@thadguidry thadguidry added join conditions involving more than 1 table PostgreSQL issues involving PostgreSQL only labels Sep 8, 2024
@thadguidry
Copy link
Collaborator

Agree. And this feels fairly important in our open source version. JSONB is used for storing records quite often for application use. And record retrieval via key values is the only way when JSONB is used in PostgreSQL.

Sidenote: Our other issue for JSON #677 involves bulk inserts, which I'd say is Enterprise only, since there are other tools that can easily be used for bulk uploading records directly to databases where typically bulk loading wouldn't be done through frontend APIs provided like DB2Rest.

@thadguidry thadguidry added the help wanted Extra attention is needed label Sep 8, 2024
@kdhrubo
Copy link
Owner

kdhrubo commented Sep 10, 2024

This issue is already implemented for PGSQL. Needs documentation per discussion on Discord. The issue is open because documentation has not been done. So for PGSQL both fields and filter attributes will support JSON and JSONB types.

@kdhrubo kdhrubo added documentation Improvements or additions to documentation and removed help wanted Extra attention is needed labels Sep 10, 2024
@thadguidry thadguidry removed the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation join conditions involving more than 1 table PostgreSQL issues involving PostgreSQL only
Projects
None yet
Development

No branches or pull requests

3 participants