This type contains an instance of a given type, with data, plus a description of the type. ANYDATA can be used as a table column data type and lets you store heterogeneous values in a single column. The values can be of SQL built-in types as well as user-defined types. (Oracle SQL Language Reference ANYDATA Data Type).
The ANYDATA data type is not supported in Snowflake.
CREATE OR REPLACETABLEanydatatable ( col1 NUMBER(38, 18) /*** SSC-FDM-0006 - NUMBER TYPE COLUMN MAY NOT BEHAVE SIMILARLY IN SNOWFLAKE. ***/, col2 VARIANT, col3 VARIANT ) COMMENT ='{"origin":"sf_sc","name":"snowconvert","version":{"major":1, "minor":0},{"attributes":{"component":"oracle"}}' ;
Inserting data into ANYDATA column
Oracle
Snowflake
Functional Example
This example is not a translation of SnowConvert, it is only used to show the functional equivalence between Oracle ANYDATA and Snowflake VARIANT
We are using the ANYDATA built-in package. The conversion for this package is currently not supported by SnowConvert.
Oracle
Snowflake
Known Issues
1. No access to the ANYDATA built-in package
Most operations with ANYDATA columns require to use the ANYDATA built-in package, transformation for Oracle built-in packages is not supported by SnowConvert yet.
Related EWIs
SSC-FDM-0006: Number type column may not behave similarly in Snowflake.