Code Conversion - Sybase IQ Issues¶
Note
Conversion Scope
For Sybase IQ, assessment and translation for TABLES, VIEWS, STORED PROCEDURES, and FUNCTIONS are currently supported. Although other types of statements are recognized, they are not fully supported.
This page provides a comprehensive reference for how Sybase IQ grammar elements are translated to Snowflake equivalents. In this translation reference, you will find code examples, functional equivalence results, key differences, recommendations, known issues, and descriptions of each transformation.
SSC-EWI-SY0001¶
Unsupported default value in Snowflake.
Severity¶
High
Description¶
Snowflake does not support the use of the following default values.
- CURRENT REMOTE USER
- LAST USER
- CURRENT PUBLISHER
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0002¶
Unsupported remote table syntax in Snowflake.
Severity¶
High
Description¶
Sybase IQ remote table syntax is not supported in Snowflake.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0003¶
Unsupported iq unique constraint in Snowflake.
Severity¶
High
Description¶
The IQ UNIQUE constraint specifies an estimate of the number of distinct values in a column. Snowflake does not contain any constraint to emulate this functionality.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0004¶
Unsupported Syntax Table function can’t receive a query as a parameter.
Severity¶
High
Description¶
Snowflake does not support passing RESULTSET as parameter in a table-value function call.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0005¶
Unsupported Syntax Table function can’t be used with over expression
Severity¶
High
Description¶
Snowflake does not support windows specification on a table-value function call.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0006¶
Open string is not supported in Snowflake.
Severity¶
High
Description¶
Snowflake does not support OPENSTRING functionality.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0007¶
DML Derived Table not supported in Snowflake.
Severity¶
High
Description¶
In Sybase, during execution, the DML statement specified in the dml-derived table is executed first, and the rows affected by that DML materialize into a temporary table whose columns are described by the REFERENCING clause. The temporary table represents the result set of dml-derived-table. Snowflake does not support this behavior.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0008¶
Contains clause not supported in Snowflake.
Severity¶
High
Description¶
In Sybase the CONTAINS clause following a table name to filter the table and return only those rows matching the full text query specified with contains-query. Every matching row of the table is returned together with a score column that can be referred to using score-correlation-name. Snowflake does not support this behavior.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0009¶
Key Join not supported in Snowflake.
Severity¶
High
Description¶
Snowflake does not support KEY JOIN. When the ON CLAUSE is specified, the KEY keyword is removed and treated as an INNER JOIN.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com
SSC-EWI-SY0010¶
The temporary option is not supported in Snowflake.
Severity¶
High
Description¶
Snowflake does not support the SET TEMPORARY OPTION statement used in Sybase IQ to configure session-level options.
Code Examples¶
Input Code:¶
Sybase¶
Generated Code:¶
Snowflake¶
Best Practices¶
- If you need more support, you can email us at aim-support@snowflake.com