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 
[[email protected]](mailto:[email protected]) 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to