You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "sife0 (via GitHub)" <gi...@apache.org> on 2026/02/04 06:19:57 UTC
[PR] fix filed mapping error when use where in sql [doris-flink-connector]
sife0 opened a new pull request, #634:
URL: https://github.com/apache/doris-flink-connector/pull/634
# Proposed changes
Exception:FLINK type is INT, but arrow type is VARCHAR.
FlinkSql Code
`
public static void main(String[] args) throws Exception {
final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.setParallelism(1);
final StreamTableEnvironment tEnv = StreamTableEnvironment.create(env);
String sql = "CREATE TABLE product_order_qrcode_info (\n" +
" `id` STRING, " +
" `dimension_type` INT ," +
" `material_code` STRING ," +
" `product_fac` STRING ," +
" `create_time` TIMESTAMP," +
" PRIMARY KEY (id) NOT ENFORCED\n" +
")\n" +
"WITH (\n" +
" 'connector' = 'doris',\n" +
" 'fenodes' = 'xx.xx.xx.xx:xx',\n" +
" 'table.identifier' = 'xx.xx',\n" +
" 'username' = 'xxx',\n" +
" 'password' = 'xx'" +
");";
// register a table in the catalog
tEnv.executeSql(sql);
// define a dynamic aggregating query
final Table result = tEnv.sqlQuery("SELECT * from product_order_qrcode_info where dimension_type=1");
// print the result to the console
tEnv.toDataStream(result).print();
env.execute();
}
`
Code
<img width="825" height="507" alt="image" src="https://github.com/user-attachments/assets/05ee834c-b2cb-4498-9113-b432188cd760" />
field dimension_type in where not in fieldVectors
## Problem Summary:
<img width="874" height="606" alt="image" src="https://github.com/user-attachments/assets/8a696cea-224f-4e4e-b4dc-8d9b56a82bda" />
create scheamMap and get field by name
## Checklist(Required)
1. Does it affect the original behavior: (No)
2. Has unit tests been added: (No Need)
3. Has document been added or modified: (No/)
4. Does it need to update dependencies: (No)
5. Are there any changes that cannot be rolled back: (No)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] fix filed mapping error when use where in sql [doris-flink-connector]
Posted by "JNSimba (via GitHub)" <gi...@apache.org>.
JNSimba commented on PR #634:
URL: https://github.com/apache/doris-flink-connector/pull/634#issuecomment-3950528090
Which version of Doris are you referring to? Theoretically, the arrow data type should match the data type returned by the [_schema API](https://doris.apache.org/zh-CN/docs/dev/admin-manual/open-api/fe-http/table-schema-action).
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] fix filed mapping error when use where in sql [doris-flink-connector]
Posted by "sife0 (via GitHub)" <gi...@apache.org>.
sife0 commented on PR #634:
URL: https://github.com/apache/doris-flink-connector/pull/634#issuecomment-3955822907
> Which version of Doris are you referring to? Theoretically, the arrow data type should match the data type returned by the [_schema API](https://doris.apache.org/zh-CN/docs/dev/admin-manual/open-api/fe-http/table-schema-action).
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] fix filed mapping error when use where in sql [doris-flink-connector]
Posted by "sife0 (via GitHub)" <gi...@apache.org>.
sife0 closed pull request #634: fix filed mapping error when use where in sql
URL: https://github.com/apache/doris-flink-connector/pull/634
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] fix filed mapping error when use where in sql [doris-flink-connector]
Posted by "sife0 (via GitHub)" <gi...@apache.org>.
sife0 commented on PR #634:
URL: https://github.com/apache/doris-flink-connector/pull/634#issuecomment-3955825911
> Which version of Doris are you referring to? Theoretically, the arrow data type should match the data type returned by the [_schema API](https://doris.apache.org/zh-CN/docs/dev/admin-manual/open-api/fe-http/table-schema-action).
3.0.8
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org