You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "junmingliu (via GitHub)" <gi...@apache.org> on 2023/08/18 02:20:25 UTC
[GitHub] [seatunnel] junmingliu opened a new issue, #5330: [Bug] [Mysql] Failed to synchronize tiny type of data
junmingliu opened a new issue, #5330:
URL: https://github.com/apache/seatunnel/issues/5330
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### What happened
Mysql2Pg,Failed to synchronize tiny type of data,tiny type would be transformed to boolean。

### SeaTunnel Version
dev
### SeaTunnel Config
```conf
mysql2pg
```
### Running Command
```shell
engine模式
```
### Error Exception
```log
Caused by: org.postgresql.util.PSQLException: ERROR: column "status" is of type smallint but expression is of type boolean
```
### Zeta or Flink or Spark Version
_No response_
### Java or Scala Version
_No response_
### Screenshots
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [seatunnel] CheneyYin commented on issue #5330: [Bug] [Mysql] Failed to synchronize tiny type of data
Posted by "CheneyYin (via GitHub)" <gi...@apache.org>.
CheneyYin commented on issue #5330:
URL: https://github.com/apache/seatunnel/issues/5330#issuecomment-1706052518
https://github.com/apache/seatunnel/blob/c109385bb5138c20d78664fbc63ff86c8404b895/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/mysql/MysqlDataTypeConvertor.java#L107-L117
Reuse or keep consistent
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [seatunnel] junmingliu commented on issue #5330: [Bug] [Mysql] Failed to synchronize tiny type of data
Posted by "junmingliu (via GitHub)" <gi...@apache.org>.
junmingliu commented on issue #5330:
URL: https://github.com/apache/seatunnel/issues/5330#issuecomment-1683944019
It can be assigned to me and I can try to fix it。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql] Failed to synchronize tiny type of data [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5330:
URL: https://github.com/apache/seatunnel/issues/5330#issuecomment-1749825510
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql] Failed to synchronize tiny type of data [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5330:
URL: https://github.com/apache/seatunnel/issues/5330#issuecomment-1760571732
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql] Failed to synchronize tiny type of data [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5330: [Bug] [Mysql] Failed to synchronize tiny type of data
URL: https://github.com/apache/seatunnel/issues/5330
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql] Failed to synchronize tiny type of data [seatunnel]
Posted by "CheneyYin (via GitHub)" <gi...@apache.org>.
CheneyYin commented on issue #5330:
URL: https://github.com/apache/seatunnel/issues/5330#issuecomment-1769837485
> It can be assigned to me and I can try to fix it。
Have you resolved this issue?
The MySQL Tiny Int cast is noisy and inappropriate, but I don't think it's causing the problem. According [debezium mysql connector datatype mapping](https://debezium.io/documentation/reference/stable/connectors/mysql.html#mysql-basic-types), MySQL Tiny Int will be mapped to INT16 (2 bytes). So `column.length() == 2` and MySQL Tiny Int will be converted to `BasicTypes.INT_TYPE`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org