Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [connector jdbc] jdbc toInternal methods should process data by field name rather than index #1853

Open
3 tasks done
david-gao1 opened this issue Dec 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@david-gao1
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

CREATE TABLE tjy_sql1
(
id int,
name string,
face string
) WITH (
'connector' = 'mysql-x',
...
);

CREATE TABLE tjy_sql1_sink
(
name string
) WITH (
'connector' = 'print'
);

insert into tjy_sql1_sink select name from tjy_sql1;

如上flink sql,tjy_sql1_sink获取的字段数据为id所属数据,而不是name所属数据

What you expected to happen

能够安装select选择的字段准确的消费数据

How to reproduce

如上

Anything else

No response

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@david-gao1 david-gao1 added the bug Something isn't working label Dec 13, 2023
david-gao1 pushed a commit to david-gao1/chunjun that referenced this issue Dec 13, 2023
david-gao1 pushed a commit to david-gao1/chunjun that referenced this issue Dec 18, 2023
zoudaokoulife pushed a commit that referenced this issue Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant