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

bug: Serialization of decimal.Decimal values in JSON fields is failing for SQL targets #1897

Closed
1 task done
edgarrmondragon opened this issue Aug 7, 2023 · 0 comments · Fixed by #1898
Closed
1 task done
Assignees
Labels

Comments

@edgarrmondragon
Copy link
Collaborator

Singer SDK Version

0.30.0

Is this a regression?

  • Yes

Python Version

NA

Bug scope

Taps (catalog, state, etc.)

Operating System

NA

Description

SQL targets are failing to serialize values of type decimal.Decimal in JSON fields after we started deserializing JSON numeric values to that type in #1809.

This can be easily fixed by using a custom json_serializer (and json_deserializer, for good measure) on the engine created for the SQL connector instance.

Code

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant