For Oracle, change the data type for BLOB column to support storing up to 2GB #3070
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This changes the default mapping for Oracle BLOB column to a data type that allows storing up to 2GB. This changes addresses a similar concerns regarding Db2 that the original data type only allowed to store up 2KB which was deemed too restrictive.
The new Oracle data type used is named
BLOB
and its maximum capacity is 2GB which also coincides with the maximum capacity that the backing objectbyte[]
of BlobColumn object can hold.Because of limitations of the Oracle
BLOB
data type, ScalarDB BLOB column can no longer be used as :Related issues and/or PRs
Changes made
RAW(2000)
toBLOB
Checklist
Additional notes (optional)
Release notes
When using Oracle, the default data type used for ScalarDB BLOB column from Oracle is changed from
RAW(2000)
toBLOB
to allow storing data up to 2GB. This brings new limitations that a BLOB column can no longer be used as partition key, clustering key, secondary index, a condition or as an ordering column in a cross-partitions scan, .i.e. ScanAll, operation.