Taufiq Wahyu Ibrahim
04/16/2022, 12:34 PMdecimal
columns.
Exception in thread "main" tech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro: Could not evaluate union, field amount is expected to be one of these: NULL, DOUBLE. If this is a complex type, check if offending field: amount adheres to schema.
mysql> describe payment;
+--------------+-------------------+------+-----+-------------------+-----------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+-------------------+------+-----+-------------------+-----------------------------------------------+
| payment_id | smallint unsigned | NO | PRI | NULL | auto_increment |
| customer_id | smallint unsigned | NO | MUL | NULL | |
| staff_id | tinyint unsigned | NO | MUL | NULL | |
| rental_id | int | YES | MUL | NULL | |
| amount | decimal(5,2) | NO | | NULL | |
| payment_date | datetime | NO | | NULL | |
| last_update | timestamp | YES | | CURRENT_TIMESTAMP | DEFAULT_GENERATED on update CURRENT_TIMESTAMP |
+--------------+-------------------+------+-----+-------------------+-----------------------------------------------+
The connection is working fine when I only replicate tables without decimal
column.
ThanksOctavia Squidington III
04/17/2022, 1:56 PM