BLOB Data Type

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

Description

The BLOB data type stores unstructured binary large objects. BLOB objects can be thought of as bitstreams with no character set semantics. (Oracle SQL Language Reference BLOB Data Typearrow-up-right).

circle-exclamation

Sample Source Patterns

BLOB in Create Table

Oracle

IN -> Oracle_01.sql
CREATE TABLE blobtable( blob_column BLOB, empty_column BLOB );

INSERT INTO blobtable VALUES (NULL, EMPTY_BLOB());

Snowflake

Retrieving Data

Oracle

Snowflake

Functional Example

triangle-exclamation
circle-exclamation

Oracle

Snowflake

Known Issues

1. The difference in max length BLOB (Oracle) and BINARY (Snowflake)

An Oracle BLOBarrow-up-right column's maximum size is (4 gigabytes - 1) * (database block size), but Snowflake BINARYarrow-up-right is limited to 8MB.

2. Empty value with EMPTY_BLOB

Initializing a column using EMPTY_BLOB() will return an empty LOB locator. While after translation the column will return a string with ' '.

3. No access to the DBMS_LOB built-in package

Since LOB data types are not supported in Snowflake there is no equivalent for the DBMS_LOB functions and there are no implemented workarounds yet.

  1. SSC-EWI-OR0076: Built In Package Not Supported.

Last updated