I am trying to migrate big query event data in redshift database. I am using following command.
COPY events_20180627 from 's3://big-query-to-rs/big-query-data/events_20180627' CREDENTIALS 'aws_access_key_id=XXXXXXXXX;aws_secret_access_key=XXXXXXXXXXX' format as json 'auto' ;
and it giving me following error for the row having size more than 4 MB.
Amazon Invalid operation: The total size of the json object exceeds the max limit of 4194304 bytes Details: ----------------------------------------------- error: The total size of the json object exceeds the max limit of 4194304 bytes code: 8001 context:
I went through various blog and answer with no luck.
Can anybody tell me a workaround for this ? Thanks!