Mapping of DynamoDB types to Oracle NoSQL types

The table below shows the mapping of DynamoDB types to Oracle NoSQL types.

Table 1 - Mapping DynamoDB type to Oracle NoSQL type

# DynamoDB type JSON type for NoSQL JSON column Oracle NoSQL type
1 String (S) JSON String STRING
2 Number Type (N) JSON Number INTEGER/LONG/FLOAT/DOUBLE/NUMBER
3 Boolean (BOOL) JSON Boolean BOOLEAN
4 Binary type (B) - Byte buffer BASE-64 encoded JSON String BINARY
5 NULL JSON null NULL
6 String Set (SS) JSON Array of Strings ARRAY(STRING)
7 Number Set (NS) JSON Array of Numbers ARRAY(INTEGER/LONG/FLOAT/DOUBLE/NUMBER)
8 Binary Set (BS) JSON Array of Base-64 encoded Strings ARRAY(BINARY)
9 LIST (L) Array of JSON ARRAY(JSON)
10 MAP (M) JSON Object JSON
11 PARTITION KEY NA PRIMARY KEY and SHARD KEY
12 SORT KEY NA PRIMARY KEY
13 Attribute names with dash and dot JSON field names with a underscore Column names with underscore

Few additional points to consider while mapping DynamoDB types to Oracle NoSQL types: