How to convert Pandera Schemas to Snowflake Schemas? #205
-
Hi, I have a bunch of pandera schemas. I am using Dagster output validation with Pandera. I also want to convert this schema to snowflake to check for column names and types in snowflake tables that map 1:1 with these schemas. One idea that comes to mind is: Write a pandera convert to recap schema. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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.