- Newest
- Most votes
- Most comments
Transformation rules like - "rule-action": "change-data-type", work on DMS data types. "type": "string" , "length": 500 will be the DMS data type here which will be converted to the target engine data type. Since DMS does not support string as a data type for Opensearch target, this attribute is not getting converted. Please refer : https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.DataTypes AWS DMS data type - Boolean,Date,Time, Timestamp,INT4,Real4,UINT4 only supported DMS data types. No string data type allowed for Opensearch as a target
answered 4 years ago
If anyone stumbled upon this:
we ended up changing TEXT to VARCHAR type on all columns that were affected in our postgres. According to this: https://stackoverflow.com/questions/4848964/difference-between-text-and-varchar-character-varying : "There is no difference, under the hood it's all varlena (variable length array)."
This is the only way so far (12/2024) to make indexing work on these fields.
answered 2 years ago

How does it handle varchars? in the same table i have a
namecolumn which is avarchar(255)and that get's mapped to astringtype in OpenSearch. Is there no way to migrate atexttype from postgres to OpenSearch?Yeah, it's confusing how DMS handles varchar even it is not mentioned in the documentation as supported source data type! I'm stuck in the same problem, did you find any solution?