Another basic pattern question for the user group.

Say I have a database of records with an ID and some float property.
Another team has written and published a transform `SquareRoot`. I want to
write a pipeline that reads this database and outputs extended records that
have (ID, foo_prop, squareroot(foo)_prop). How do I do this?

Of course I can strip my records of their ID and then pass in the
properties straight into `SquareRoot`, but then I have no way to link it
back to what record the square root corresponds to. Do I just need to ask
the other team to make their SquareRootDoFn public? Should they have
included a `SquareRoot.WithKey()` transform that ignores a key?

This feels like it'd be a common pattern but how to approach it feels
awkward, not sure if I'm missing something obvious so thought I'd ask the
group.

Cheers,
Joey

-- 

Joey Tran | Staff Developer | AutoDesigner TL

*he/him*

[image: Schrödinger, Inc.] <https://schrodinger.com/>

Reply via email to