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 support for guessing Decimal128 in MongoDB #18722

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Aug 18, 2023

Release notes

(x) Release notes are required, with the following suggested text:

# MongoDB
* Add support for mapping MongoDB `Decimal128` type. ({issue}`18722`)

@cla-bot cla-bot bot added the cla-signed label Aug 18, 2023
@ebyhr ebyhr force-pushed the ebi/mongodb-guess-decimal128 branch from 9ef23aa to 43ef9fd Compare August 18, 2023 01:25
@ebyhr ebyhr requested review from Praveen2112 and hashhar August 18, 2023 01:26
@ebyhr ebyhr force-pushed the ebi/mongodb-guess-decimal128 branch from 43ef9fd to 1fb3bbd Compare August 18, 2023 01:28
@github-actions github-actions bot added the mongodb MongoDB connector label Aug 18, 2023
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.

thank you

@ebyhr ebyhr force-pushed the ebi/mongodb-guess-decimal128 branch from 1fb3bbd to beb92ca Compare August 18, 2023 05:57
@ebyhr ebyhr merged commit 8b5d832 into trinodb:master Aug 18, 2023
@ebyhr ebyhr deleted the ebi/mongodb-guess-decimal128 branch August 18, 2023 09:11
@github-actions github-actions bot added this to the 425 milestone Aug 18, 2023
@colebow
Copy link
Member

colebow commented Aug 23, 2023

We already have this type listed as being mapped in the Trino docs... was that previously incorrect?

@ebyhr
Copy link
Member Author

ebyhr commented Aug 23, 2023

The connector tries to guess the column definition for the 1st access when the table was created in MongoDB side. So, Decimal128 type was supported when the table was created in Trino.

This PR allows mapping Decimal128 as decimal when guessing the definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed mongodb MongoDB connector
Development

Successfully merging this pull request may close these issues.

3 participants