apache / seatunnel

SeaTunnel is a next-generation super high-performance, distributed, massive data integration tool.
https://seatunnel.apache.org/
Apache License 2.0
8.06k stars 1.83k forks source link

[Bug] [Connector-V2]字段存在但是报: Unknown column #8013

Open zheng594 opened 1 week ago

zheng594 commented 1 week ago

Search before asking

What happened

{ "password": "****", "driver": "com.mysql.cj.jdbc.Driver", "query": "select id as id,area_code as area_code,area_name as area_name from test.lwx_test04", "where_condition": "where create_time >'2024-11-11 11:00:00'", "fetch_size": 10000, "compatible_mode": "doris", "plugin_name": "Jdbc", "user": "user", "url": "url" } 上述配置报:ErrorCode:[JDBC-04], ErrorDescription:[Connector database failed] - open() failed.errCode = 2, detailMessage = Unknown column 'create_time' in 'table list' at…… 实际上create_time字段是存在的。 将 : "query": "select id as id,area_code as area_code,area_name as area_name from test.lwx_test04", "where_condition": "where create_time >'2024-11-11 11:00:00'", 合并改成: "query": "select id as id,area_code as area_code,area_name as area_name from test.lwx_test04 where create_time >'2024-11-11 11:00:00", sql能正常执行。 后续原因是create_time字段在query所在select字段中不存在所以报错,这个应该是一个bug

SeaTunnel Version

V2.3.8

SeaTunnel Config

none

Running Command

none

Error Exception

ErrorCode:[JDBC-04], ErrorDescription:[Connector database failed] - open() failed.errCode = 2, detailMessage = Unknown column 'create_time' in 'table list' at……

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

Code of Conduct