How to query/generate the code equivalent of a pipeline builder dataset

Is there a way to get the code equivalent that is used to create a certain data set? Pipeline builder provides a large json output with a lot of metadata, but is there a better way to get the analogous code for a pipeline builder data set?

Hey @d74a3f3d96fda2dbdc83 !

Let me know if either of two are what you’re looking for:

  • You can try exporting your entire pipeline to java and use the code that’s generated. This doesn’t support all transforms/expressions though (eg. media/geo functionality/etc.) so you might need to manually make some changes after the export https://www.palantir.com/docs/foundry/pipeline-builder/export-pipeline/

  • If you don’t need to exact code and only need the logic, you can try using the pseudocode: https://www.palantir.com/docs/foundry/pipeline-builder/transforms-transform-data/#pseudocode-rendering

Thanks for these resources! Both could be useful, but is there a backend api that can retrieve these for a specified RID programmatically?

1 Like

Just curious what is your usecase here? We have an endpoint that gets you the sandbox of your pipeline (I think this is what you’re referring to when you say large json output with a lot of metadata) but it’s not first class solution: /pipelines-v2/get-sandboxes-with-snapshots

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.