https://linen.dev logo
#plugins-general
Title
# plugins-general
p

paul_tiplady

04/26/2022, 4:21 PM
Hey folks, just wanted to share some WIP I put forth on tap-mysql for representing the precision/scale of a DECIMAL field: https://github.com/transferwise/pipelinewise-tap-mysql/pull/108. This is following up from target-bigquery putting in some work to infer DECIMAL scale from the
multipleOf
field: https://github.com/adswerve/target-bigquery/pull/23. However we noted that it’s not possible to correctly define a field with precision using just
multipleOf
, you also need to be able to compute the precision too. I’m not familiar with how other plugins tackle this; the seems like it should probably go at the
singer
library level to be honest, as I think every tap should really implement logic like this. Any pointers to prior art here that might be useful to take into account?