Skip to content

How to convert Pandera Schemas to Snowflake Schemas? #205

Answered by criccomini
nehiljain asked this question in Q&A
Discussion options

You must be logged in to vote

You're correct. You'd need to write a to_schema method that converts pandera schemas to Recap schemas. From there, you can do all the normal stuff with Recsp schemas like converting it to JSON schema or table DDLs.

Recap supports naive equality right now (just comparing Pydantic model fields), so == should work provided you want those semantics. For a looser sense of equality, we'll need to implement a compatible() method.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nehiljain
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