检查雪花中的 table 架构更改

To check table schema change in snowflake

我在 snowflake 中有一个 table,我正在从 AWS 作业中插入数据。在雪花中插入数据之前,我想检查插入值的列数和数据类型是否与雪花相同table。

您使用的是什么文件类型? Snowflake 最近实现了架构检测功能,可以检测阶段中文件的架构。 请注意,此功能目前仅限于 Apache Parquet、Apache Avro 和 ORC 文件:https://docs.snowflake.com/en/user-guide/data-load-overview.html#detection-of-column-definitions-in-staged-semi-structured-data-files