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(oracle): map bare NUMBER to int64 and consolidate data type mapping code for shared inference #8626

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Mar 12, 2024

Fixes a bug discovered during polars dot sql implementation where we were mapping empty precision and scale decimal types, but the oracle docs say that empty precision and scale together are mapped to number(38, 0).

The discovery during polars dot sql implementation is incidental, due to the test I changed, which is included here.

@cpcloud cpcloud added this to the 9.0 milestone Mar 12, 2024
@cpcloud cpcloud added bug Incorrect behavior inside of ibis oracle The Oracle backend labels Mar 12, 2024
@cpcloud cpcloud changed the title fix(oracle): mapping bare number to int64 and consolidate data type mapping code for shared inference fix(oracle): map bare number to int64 and consolidate data type mapping code for shared inference Mar 12, 2024
@cpcloud cpcloud changed the title fix(oracle): map bare number to int64 and consolidate data type mapping code for shared inference fix(oracle): map bare NUMBER to int64 and consolidate data type mapping code for shared inference Mar 12, 2024
@cpcloud cpcloud requested a review from gforsyth March 12, 2024 12:08
@cpcloud cpcloud force-pushed the fix-oracle-type-inference branch from 978fdb6 to 5001a74 Compare March 12, 2024 12:34
@cpcloud cpcloud force-pushed the fix-oracle-type-inference branch from 5001a74 to dcab164 Compare March 12, 2024 12:37
Copy link
Member

@gforsyth gforsyth left a comment

Choose a reason for hiding this comment

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

lovely -- thanks for wading around in all of that.

@gforsyth gforsyth merged commit b5f9bbe into ibis-project:main Mar 12, 2024
77 checks passed
@cpcloud cpcloud deleted the fix-oracle-type-inference branch March 12, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis oracle The Oracle backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants