Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion target_redshift/db_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ def column_type(schema_property, with_length=True):
column_type = 'numeric'
elif 'boolean' in property_type:
column_type = 'boolean'

#added code to convert jsonb and json to super code starts here #
elif 'jsonb' in property_type:
column_type = 'super'
elif 'json' in property_type:
column_type = 'super'
#added code to convert jsonb and json to super code end here #

# Add max length to column type if required
if with_length:
if column_type == 'character varying' and varchar_length > 0:
Expand Down