Matt Menzenski
02/03/2023, 9:13 PMtarget-redshift
and it’s creating VARCHAR(10000)
columns — I have a column that contains bigger data than that and want that column to be crated as VARCHAR(MAX)
. The target appears to support this https://github.com/transferwise/pipelinewise-target-redshift/blob/master/target_redshift/db_sync.py#L17-L19 but I can’t figure out how to configure that for a column, or whether it’s possible to pass in that configuration from meltano. Any ideas?aaronsteers
02/03/2023, 9:50 PMMatt Menzenski
02/03/2023, 9:50 PMaaronsteers
02/03/2023, 9:50 PMMatt Menzenski
02/03/2023, 9:53 PMSCHEMA
messages?Matt Menzenski
02/03/2023, 9:54 PMaaronsteers
02/03/2023, 9:54 PMaaronsteers
02/03/2023, 9:54 PMMatt Menzenski
02/03/2023, 9:55 PMMatt Menzenski
02/03/2023, 9:55 PMaaronsteers
02/03/2023, 9:57 PMmaxLength
property in the JSON Schema of its discovered catalog (which then also gets sent in the SCHEMA
message.
Option 2 (probably easier but might take some debugging) would be to override the data type using the schema
config within your Meltano.yml entry for that tap.
https://docs.meltano.com/concepts/plugins#how-to-use-3aaronsteers
02/03/2023, 9:58 PMextractors:
- name: tap-spreadsheet-anywhere
schema:
some_stream_id:
my_long_col:
type: ["string", "null"]
maxLength: 99999
Something like this 👆
UPDATED to fix typosMatt Menzenski
02/03/2023, 9:58 PMMatt Menzenski
02/03/2023, 9:58 PMaaronsteers
02/03/2023, 9:59 PMMatt Menzenski
02/06/2023, 7:33 PMschema:
platform_data:
mongodocument:
type:
- null
- string
maxLength: 1000000
aaronsteers
02/06/2023, 11:08 PM