weiguang660 opened a new issue, #3491:
URL: https://github.com/apache/incubator-streampark/issues/3491

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### Java Version
   
   _No response_
   
   ### Scala Version
   
   2.11.x
   
   ### StreamPark Version
   
   2.1.1
   
   ### Flink Version
   
   1.15.3
   
   ### deploy mode
   
   None
   
   ### What happened
   
   If you write the value of a field in Chinese in flink sql, garbled 
characters appear
   (在flink sql中写死某个字段的值为中文,会乱码)
   
   ### Error Exception
   
   ```log
   1.Flink SQL:
   CREATE TABLE datagen (
       f_sequence INT,
       f_random INT,
       f_random_str STRING,
       ts AS localtimestamp,
       WATERMARK FOR ts AS ts
     ) WITH (
       'connector' = 'datagen',
       -- optional options测试 --
       'rows-per-second'='5',
       'fields.f_sequence.kind'='sequence',
       'fields.f_sequence.start'='1',
       'fields.f_sequence.end'='500',
       'fields.f_random.min'='1',
       'fields.f_random.max'='500',
       'fields.f_random_str.length'='10'
     );
   
     CREATE TABLE print_table (
       f_sequence INT,
       f_random INT,
       f_random_str STRING,
       test_field STRING
       ) WITH (
       'connector' = 'print'
     );
   
     INSERT INTO print_table select f_sequence,f_random,f_random_str,'测试' from 
datagen;
   
   2.output:
   [38, 313, 7ca456f4da, ??????]
   
   3.Job Manager:
   CREATE TABLE datagen (
       f_sequence INT,
       f_random INT,
       f_random_str STRING,
       ts AS localtimestamp,
       WATERMARK FOR ts AS ts
     ) WITH (
       'connector' = 'datagen',
       -- optional options?????? --
       'rows-per-second'='5',
       'fields.f_sequence.kind'='sequence',
       'fields.f_sequence.start'='1',
       'fields.f_sequence.end'='500',
       'fields.f_random.min'='1',
       'fields.f_random.max'='500',
       'fields.f_random_str.length'='10'
     );
   
     CREATE TABLE print_table (
       f_sequence INT,
       f_random INT,
       f_random_str STRING,
       test_field STRING
       ) WITH (
       'connector' = 'print'
     );
   
     INSERT INTO print_table select f_sequence,f_random,f_random_str,'??????' 
from datagen;
   ```
   
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!(您是否要贡献这个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: [email protected]

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

Reply via email to