SnowConvert AI - Hive Functional Differences¶
SSC-FDM-HV0001¶
Inserting values into an external table is not supported in Snowflake
Description¶
Hive Format tables allow you to insert values, but Snowflake External Tables do not support value insertions. This means that while the table structure will be converted, any operations that attempt to insert data directly into the external table in Snowflake will fail.
Code Example¶
Input¶
Spark¶
Output¶
Snowflake¶
Best Practices¶
If you need more support, you can email us at snowconvert-support@snowflake.com
SSC-FDM-HV0002¶
Partitioned column added to table definition
Description¶
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.
Code Example¶
Input¶
Hive¶
Output¶
Snowflake¶
Best Practices¶
Verify that partition columns are correctly mapped to your file path structure.
If you need more support, you can email us at snowconvert-support@snowflake.com
SSC-FDM-HV0003¶
NULL format parameter is not supported in FROM_UNIXTIME
Description¶
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.
Code Example¶
Input¶
Hive¶
Output¶
Snowflake¶
Best Practices¶
Replace NULL format parameters with an explicit format string (e.g., ‘yyyy-MM-dd HH:mm:ss’).
If you need more support, you can email us at snowconvert-support@snowflake.com
SSC-FDM-HV0004¶
INSTR transformed to REGEXP_INSTR changes literal to regex pattern
Description¶
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.
Code Example¶
Input¶
Hive¶
Output¶
Snowflake¶
Best Practices¶
When the pattern contains regex metacharacters, escape them or use REGEXP_REPLACE to sanitize the pattern.
If you need more support, you can email us at snowconvert-support@snowflake.com