seatunnel
seatunnel copied to clipboard
[Bug] [Zeta] Config variable substitution 不一致
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
来自官网案例: https://seatunnel.apache.org/docs/2.3.5/concept/config/#config-variable-substitution
变量替换 和传入的变量不一致
SeaTunnel Version
2.3.5
SeaTunnel Config
env {
job.mode = "BATCH"
job.name = ${jobName}
parallelism = 2
}
source {
FakeSource {
result_table_name = ${resName}
row.num = ${rowNum}
string.template = ${strTemplate}
int.template = [20, 21]
schema = {
fields {
name = ${nameType}
age = "int"
}
}
}
}
transform {
sql {
source_table_name = "fake"
result_table_name = "sql"
query = "select * from "${resName}" where name = '"${nameVal}"' "
}
}
sink {
Console {
source_table_name = "sql"
username = ${username}
password = ${password}
blankSpace = ${blankSpace}
}
}
Running Command
./bin/seatunnel.sh -c <this_config_file>
-i jobName='st var job'
-i resName=fake
-i rowNum=10
-i strTemplate=['abc','d~f','h i']
-i nameType=string
-i nameVal=abc
-i username=seatunnel=2.3.1
-i password='$a^b%c.d~e0*9('
-i blankSpace='2023-12-26 11:30:00'
-e local
Error Exception
no error
Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
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
@liunaijie would you mind take a look?
if the variables has blank space, will has issue. will check on this.
@liunaijie can you review above pr
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
closed by #7099