alibaba / alibaba/DataX

column作为变量传到json中解析不正确

Open
#1,976 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

reader中配置 “querysql”:["${sql}"] writer 中配置 “column”:["${incolumns}"]

无论我怎么传-Dcolumns的参数
python datax.py x.json -p "-Dsql=\\" select id,name from tbxx\\" -Dcolumns=id,name"

python datax.py x.json -p "-Dsql=\\" select id,name from tbxx\\" -Dcolumns=\\"id\\",\\"name\\" "

python datax.py x.json -p "-Dsql=\\" select id,name from tbxx\\" -Dcolumns="id","name""

执行的时候看到的x.json都解析成了“column”:["id,name"]
求怎么能让x.json解析成 “column”:["id","name"]

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the command through datax.py with the x.json configuration, using the reader querysql and writer column parameters shown in the report. Trace how -Dcolumns is substituted and parsed, and verify that a comma-separated value produces separate column entries rather than one "id,name" entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.