Replies: 5 comments
-
I just ran into this as well. Below is a simple table that I am able to reproduce the issue with. If I run
|
Beta Was this translation helpful? Give feedback.
-
Playing around I got this to work using JSON Schema. The Tap side
Target side
I attempted to setup a class in |
Beta Was this translation helpful? Give feedback.
-
Did you look at my implementation linked to above? I recall copying typing.py In regards to your question I don't think a number is an int, but it does depend on the database. I think decimal(32,0) or something similar is an option for mssql and oracle and is probably better than going with bigint as I did above. @BuzzCutNorman read through this again. And looked at https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-NUMERIC-TABLE , with postgres in the context of MSSQL and Oracle in my mind a NUMERIC might be a better option, but I"m not sure if we want to take the size trade off here. We could do something like NUMERIC(131072,0) for postgres just to allow anything but that seems a bit... intense |
Beta Was this translation helpful? Give feedback.
-
@visch Thanks, for those comments. Looking at your examples you are correct the JSON I proposed is off base from what this feature is solving. |
Beta Was this translation helpful? Give feedback.
-
This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the |
Beta Was this translation helpful? Give feedback.
-
Feature scope
Targets (data type handling, batching, SQL object generation, etc.)
Description
We should add this to the SQL Target milestone
We should probably default to bigint. Implementation with test here MeltanoLabs/target-postgres#27
Beta Was this translation helpful? Give feedback.
All reactions