Skip to content

Are data transformations done by r supported or is there a way to use them along with sql models? #3128

Closed Answered by georgesittas
anishjoni asked this question in Q&A
Discussion options

You must be logged in to vote

Leaving Toby's Slack answer here for posterity:

You can only get column level lineage through sql. We can't compute column level lineage in Python or R because you can do anything in those computations. But if you have csvs and write sql models in SQLMesh, you will get column level lineage. You could probably use R in SQLMesh by using rpy2 as a python model, and returning a pandas dataframe. So create a Python model that uses rpy2 to execute R and return a pandas dataframe. Then use SQL for other transformations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by georgesittas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants