qifanlili opened a new issue, #9151:
URL: https://github.com/apache/seatunnel/issues/9151

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   -i 传递参数时,值中若有逗号,要求用双引号包裹逗号,如"id,code,date".
   
   <img width="1062" alt="Image" 
src="https://github.com/user-attachments/assets/0742287f-6cf3-4c74-b2d3-97fa65cdf716";
 />
   
   然而,在变量替换时,这个双引号是被保留的,会完整替换占位符内容。示例如下:
   配置文件:
   
   <img width="407" alt="Image" 
src="https://github.com/user-attachments/assets/a6e27d08-7a98-45db-8ce2-c072101fd8a2";
 />
   
   实际生成的配置:
   
   <img width="676" alt="Image" 
src="https://github.com/user-attachments/assets/75523cfc-fd1b-4d4f-a975-108fb02bb2da";
 />
   
   这种带双引号的查询语句是不能正常执行的。
   
   我的建议是:变量替换时去掉开头结尾的双引号。
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   source {
     Jdbc {
           url = "${jdbcUrl}"
           driver = "${jdbcDriver}"
           connection_check_timeout_sec = 100
           user = "${jdbcUserName}"
           password = "${jdbcPassword}"
           query = "select ${columns} from ${jdbcTable}"
           table_path = "${jdbcDb}.${jdbcTable}"
       }
   }
   ```
   
   ### Running Command
   
   ```shell
   sh /opt/seatunnel/bin/start-seatunnel-spark-3-connector-v2.sh  -i 
jdbcDriver=com.mysql.jdbc.Driver -i \'columns=\"c_id,c_area_code,c_date\"\'
   ```
   
   ### Error Exception
   
   ```log
   无
   ```
   
   ### Zeta or Flink or Spark Version
   
   spark
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a 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: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to