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 copying numerics with larger scale than precision #98

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

aykut-bozkurt
Copy link
Collaborator

In parquet, we cannot write numeric with larger scale than precision. But postgres allows it. We can adjust the numeric typmod in that case.

@aykut-bozkurt aykut-bozkurt force-pushed the aykut/error-if-special-numeric branch from fa13238 to 58327af Compare January 16, 2025 06:57
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from d05fcf3 to 0cc2487 Compare January 16, 2025 06:58
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/error-if-special-numeric branch from 58327af to 4637490 Compare January 16, 2025 07:53
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from 0cc2487 to b8f9061 Compare January 16, 2025 07:54
src/type_compat/pg_arrow_type_conversions.rs Outdated Show resolved Hide resolved
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/error-if-special-numeric branch from 4637490 to 4056ad2 Compare January 22, 2025 13:59
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from b8f9061 to 80f9a11 Compare January 22, 2025 14:00
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/error-if-special-numeric branch from 4056ad2 to b6518b1 Compare January 24, 2025 14:01
Base automatically changed from aykut/error-if-special-numeric to main January 24, 2025 14:10
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from 80f9a11 to 61b6ad9 Compare January 24, 2025 14:20
@aykut-bozkurt aykut-bozkurt enabled auto-merge (squash) January 24, 2025 14:22
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.82%. Comparing base (e775b0e) to head (852b6af).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #98      +/-   ##
==========================================
+ Coverage   91.81%   91.82%   +0.01%     
==========================================
  Files          77       77              
  Lines       10007    10023      +16     
==========================================
+ Hits         9188     9204      +16     
  Misses        819      819              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from 61b6ad9 to b8856c4 Compare January 24, 2025 14:33
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/numeric-with-larger-scale branch from b8856c4 to 852b6af Compare January 24, 2025 14:34
@aykut-bozkurt aykut-bozkurt merged commit fa728df into main Jan 24, 2025
6 checks passed
@aykut-bozkurt aykut-bozkurt deleted the aykut/numeric-with-larger-scale branch January 24, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants