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 precision and scale truncation warnings #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

crwr45
Copy link

@crwr45 crwr45 commented Aug 6, 2020

The current warning only occurs for columns with a set, but large,
value for precision and scale.

A column with no set precision and scale can store enormous
numbers, which would be truncated without triggering the
corresponding warning.

This change ensures a warning will be logged in both cases.

It also corrects the comment explaining the truncation.

Risks

  • very low
  • finding bad data you thought was good

Rollback steps

  • revert this branch

The current warning only occurs for columns with a set, but large,
value for precision and scale.

A column with no set precision and scale can store enormous
numbers, which would be truncated without triggering the
corresponding warning.

This change ensures a warning will be logged in both cases.

It also corrects the comment explaining the truncation.

Signed-off-by: crwr45 <[email protected]>
@cmerrick
Copy link

cmerrick commented Aug 6, 2020

Hi @crwr45, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

@cmerrick
Copy link

cmerrick commented Aug 6, 2020

You did it @crwr45!

Thank you for signing the Singer Contribution License Agreement.

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