-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
mongodb: how to describe a json field which can have different types in _schema #8352
Comments
As far as I know, there is no simple solution except for your |
@ebyhr it gets even funnier: |
Looks interesting. @ebyhr If you're not taking it up I can have a look. |
@academy-codex I implemented half of this enhancement locally, but please feel free to take it. edit: As we talked offline on Jul 17, l will send a PR. |
I'm using trino with mongodb. I'm trying to write a _schema entry for a mongodb collection. The entries in this collection are described with json schema:
the entry would look like
So the interesting point here is that the field
value
can have on of the types listed below.The only way to express this was to use the json type, BUT this is the error I got:
The question is how to define a field which can have more than one type?
Funny enough if I change from
json
tovarchar
it looks like it works, but it makes no sense to me...Thanks
Ognian
The text was updated successfully, but these errors were encountered: