Description
The issue was found during creating MLP documentation for s3 destination. It is complex issue that consists of source and destination parts.
On source side we have several primitives json schema types, one of them is Number. So all numeric source data types (int, long, float, etc) are mapped to number json schema type.
On destination side simple number json schema types is mapped to double type.
For handling it on source side we need use complex json schema types, that consist for instance type(Number) and sub type(int).
On destination side - based on complex json schema types, we could choose relevant data type.
Environment
- Airbyte version: 0.35.55-alpha
- Source Connector and version: any source
- Destination Connector and version: destination-s3:3:0.2.13
- Severity: Medium
- Step where error happened: Sync job
Current Behavior
During sync from source to S3 destination int, long, float, double data types are mapped to double type in Avro and Parquet files.
Expected Behavior
During sync from source to S3 destination int, long, float, double data types are mapped to proper datatypes (int -> int, etc.)