SnowConvert AI : Hiveの機能の違い¶
SSC-FDM-HV0001¶
Snowflakeでは、外部テーブルへの値の挿入はサポートされていません。
説明¶
Hive形式テーブルでは値の挿入が可能ですが、Snowflake外部テーブルでは値の挿入はサポートされていません。つまり、テーブル構造は変換されますが、Snowflakeの外部テーブルに直接データを挿入しようとする操作は失敗します。
コード例¶
入力¶
Spark¶
出力¶
Snowflake¶
ベストプラクティス¶
さらにサポートが必要な場合は、[snowconvert-support@snowflake.com](mailto:snowconvert-support@snowflake.com)までメールでお問い合わせください。
SSC-FDM-HV0002¶
Partitioned column added to table definition
説明¶
For Hive/Spark partitioned tables, the partition columns are stored in the directory structure rather than in the table data. Snowflake does not support this pattern. SnowConvert AI adds the partitioned columns to the table definition as regular columns so the table schema is complete.
コード例¶
入力¶
Hive¶
出力¶
Snowflake¶
ベストプラクティス¶
Verify that partition columns are correctly mapped to your file path structure.
さらにサポートが必要な場合は、[snowconvert-support@snowflake.com](mailto:snowconvert-support@snowflake.com)までメールでお問い合わせください。
SSC-FDM-HV0003¶
NULL format parameter is not supported in FROM_UNIXTIME
説明¶
Hive's FROM_UNIXTIME function allows a NULL format parameter, in which case it uses a default format. Snowflake's equivalent (TO_VARCHAR with TO_TIMESTAMP_NTZ) does not support a NULL format parameter. SnowConvert AI passes the NULL through, but the conversion may fail at runtime or behave unexpectedly.
コード例¶
入力¶
Hive¶
出力¶
Snowflake¶
ベストプラクティス¶
Replace NULL format parameters with an explicit format string (e.g., 'yyyy-MM-dd HH:mm:ss').
さらにサポートが必要な場合は、[snowconvert-support@snowflake.com](mailto:snowconvert-support@snowflake.com)までメールでお問い合わせください。
SSC-FDM-HV0004¶
INSTR transformed to REGEXP_INSTR changes literal to regex pattern
説明¶
Hive's INSTR function uses literal string matching. Snowflake does not have INSTR; SnowConvert AI translates it to REGEXP_INSTR. REGEXP_INSTR interprets the pattern as a regex, so metacharacters (e.g., ., *, $) will behave differently than in Hive's literal matching.
コード例¶
入力¶
Hive¶
出力¶
Snowflake¶
ベストプラクティス¶
When the pattern contains regex metacharacters, escape them or use REGEXP_REPLACE to sanitize the pattern.
さらにサポートが必要な場合は、[snowconvert-support@snowflake.com](mailto:snowconvert-support@snowflake.com)までメールでお問い合わせください。