-
Notifications
You must be signed in to change notification settings - Fork 34
{source-materialize}-postgres: support JSONB #4400
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,10 +36,12 @@ sql> COMMENT ON COLUMN test.discoverycomplex_934635.k1 IS 'I think this is a key | |
| ] | ||
| }, | ||
| "doc": { | ||
| "description": "(source type: json)" | ||
| "description": "(source type: json)", | ||
| "contentMediaType": "application/json" | ||
| }, | ||
| "doc/bin": { | ||
| "description": "(source type: non-nullable jsonb)" | ||
| "description": "(source type: non-nullable jsonb)", | ||
| "contentMediaType": "application/vnd.postgresql.jsonb+json" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that PostgREST uses a similar media type format, but they define it on their own vendor: I know this specifically meant to handle same db round-tripping, but I wonder if there really won't be any ideas to have things like mysql -> postgres customizations based on the source type, will we have a combinatorial issue?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danielnelson I think you are right, I was also a bit worried about overlapping with another vendor (postgres itself), so I think we can do |
||
| }, | ||
| "foo": { | ||
| "description": "This is a text field! (source type: text)", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
*tojsonbalso be permitted?