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

   ### 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
   
   
我的目的是想通过传变量的方式,将hive指定分区的数据抽取到MySQL,但是就目前来看只能在read_partitions=[]将分区信息提前写好,如果使用变量传入则会抛出异常。,我感觉我的变量声明方式并没有问题
   
   ### SeaTunnel Version
   
   seatunnel-2.3.1
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 20
     job.mode = "BATCH"
   }
   
   source {
    Hive {
   table_name = "dws.xxxx"
   metastore_uri = "thrift://ip:xxxx"
   #result_table_name = "Table_test"
   hdfs_site_path = "xxxx/hdfs-site.xml"
   hive_site_path = "xxxx/hive-site.xml"
   read_partitions = ["dt='"${dt}"'"]
       }
   }
   
   #transform {
   #}
   
   sink {
       Jdbc {
   url = "jdbc:mysql://ip:xxxx/xxx?rewriteBatchedStatements=true"
   driver = "xxx"
   user = "xxxxxx"
   password = "xxxxxx"
   database = "xxxxx"
   table = "xxx"
   query = "insert into xxx values(?,?,?,?,?,?)"
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config ./config/test.config -i dt=new_partition  -e 
local
   ```
   
   
   ### Error Exception
   
   ```log
   Caused by: 
org.apache.seatunnel.shade.com.fasterxml.jackson.core.JsonParseException: 
Unexpected character ('$' (code 36)): was expecting comma to separate Array 
entri
   es
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

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

Reply via email to