MSCEWI3121
Using DBMS_LOB.SUBSTR built-in package with a BFILE column is not supported in Snowflake
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Medium
Description
Oracle BFILE columns are migrated to VARCHAR in Snowflake. The file name is stored as a string in the new column. Therefore, using a SUBSTR function, in Snowflake, on the migrated column will return a substring of the file name. While Oracle DBMS_LOB.SUBSTR will return a substring of the file content. For more information review BFILE data type.
Example Code
Input Code:
-- Create Table
CREATE TABLE table_bfile
(
bfile_column BFILE
);
-- SUBSTR on BFILE column
SELECT
DBMS_LOB.SUBSTR(bfile_column, 15, 1)
FROM bfile_column;Output Code:
Recommendations
Review the documentation for handling files with Snowflake here.
If you need more support, you can email us at [email protected]
Last updated
