carlos_bernal_carvajal
07/06/2023, 5:54 PMtaylor
07/06/2023, 5:57 PMvisch
07/06/2023, 6:10 PMnumeric
should probably be numbers
with multipleOf
set and max/mins. I'm not sure that's happenign today with tap-postgres
if it's not should the tap transform the data to a string since that's currently what seems to be getting chosen as the type?
2. Does the target handle numbers
correct? I think right now if the target sees a multipleOf
in the schema it uses varchar for the field, and then the target "should" convert to a string and push that data along but it's clear that isn't happening here
@carlos_bernal_carvajal thank you for the issue submission. To get a solution out asap for you there's two solutions I can think of one is you could override the schema on the tap side for your field using https://docs.meltano.com/concepts/plugins#schema-extra for your field I think you could override the schema to just be number
and I think it would work but you may have to experiment with it.
Really this should work out of the box and it looks like a missing test on both the tap and the target here but I"ll have to dive to be sure that's what's going onvisch
07/06/2023, 6:13 PMpublic-ChainEntityCollectionStage
visch
07/06/2023, 6:14 PMcarlos_bernal_carvajal
07/06/2023, 6:22 PMcarlos_bernal_carvajal
07/06/2023, 8:16 PMsome_stream_id
refer to?
I’m not sure I understand what I’m supposed to set there.
(sorry if it’s a dumb question)visch
07/06/2023, 8:45 PMpublic-ChainEntityCollectionStage
visch
07/06/2023, 8:45 PMcarlos_bernal_carvajal
07/06/2023, 8:47 PMvisch
07/06/2023, 8:47 PMschema
override first, if that fails we can exclude it!carlos_bernal_carvajal
07/06/2023, 8:49 PMcarlos_bernal_carvajal
07/06/2023, 9:27 PMschema
override stoped the error for blocking the meltano run
, however on the target, the price
column got stored as varchar
I was expecting that it would be stored as number as wellcarlos_bernal_carvajal
07/06/2023, 9:28 PMschema:
public-ChainEntityCollectionStage:
price:
type: number
visch
07/06/2023, 11:05 PMcarlos_bernal_carvajal
07/07/2023, 12:35 AMcarlos_bernal_carvajal
07/07/2023, 12:36 AMcarlos_bernal_carvajal
07/07/2023, 12:36 AMprice
column needed the same treatment, but when I added it to the same schema extra, it didn’t work, I kept getting the same is not of type 'string'
error. Maybe I’m doing it wrong?
This is the override I used was:
schema:
public-ChainEntityCollectionStage:
price:
type: number
public-Collection:
price:
type: number
carlos_bernal_carvajal
07/07/2023, 12:36 AM