SnowConvert AI – Diferenças funcionais do Hive¶
SSC-FDM-HV0001¶
A inserção de valores em uma tabela externa não é compatível com o Snowflake.
Descrição¶
As tabelas de formato Hive permitem a inserção de valores, mas as tabelas externas do Snowflake não são compatíveis com inserções de valores. Isso significa que, embora a estrutura da tabela seja convertida, qualquer operação que tente inserir dados diretamente na tabela externa no Snowflake falhará.
Exemplo de código¶
Entrada¶
Spark¶
Saída¶
Snowflake¶
Práticas recomendadas¶
Se precisar de mais suporte, envie um e-mail para snowconvert-support@snowflake.com
SSC-FDM-HV0002¶
Partitioned column added to table definition
Descrição¶
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.
Exemplo de código¶
Entrada¶
Hive¶
Saída¶
Snowflake¶
Práticas recomendadas¶
Verify that partition columns are correctly mapped to your file path structure.
Se precisar de mais suporte, envie um e-mail para snowconvert-support@snowflake.com
SSC-FDM-HV0003¶
NULL format parameter is not supported in FROM_UNIXTIME
Descrição¶
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.
Exemplo de código¶
Entrada¶
Hive¶
Saída¶
Snowflake¶
Práticas recomendadas¶
Replace NULL format parameters with an explicit format string (e.g., “yyyy-MM-dd HH:mm:ss”).
Se precisar de mais suporte, envie um e-mail para snowconvert-support@snowflake.com
SSC-FDM-HV0004¶
INSTR transformed to REGEXP_INSTR changes literal to regex pattern
Descrição¶
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.
Exemplo de código¶
Entrada¶
Hive¶
Saída¶
Snowflake¶
Práticas recomendadas¶
When the pattern contains regex metacharacters, escape them or use REGEXP_REPLACE to sanitize the pattern.
Se precisar de mais suporte, envie um e-mail para snowconvert-support@snowflake.com