You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/08/24 13:32:03 UTC

[GitHub] [incubator-seatunnel] LinZhaoguan opened a new issue, #2514: [Bug] [seatunnel-spark-starter] SparkCommandArgs Will split the variable value with comma

LinZhaoguan opened a new issue, #2514:
URL: https://github.com/apache/incubator-seatunnel/issues/2514

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   1. I have a dynamic concatenated SQL,and one of the variables contains more than one comma。
   2. I pass the value of the variable through -i. for example:  
   
       my **sql** as shown below:
       `sql="select " ${columns} " from table"`
       
       and my start **command** as shown below:
       ``` shell
       ./bin/start-seatunnel-spark.sh \
       --master local[4] \
       --deploy-mode client \
       --config ./config/my.conf
       -i columns=id,name.age
       ```
   4. the variable `columns` has been splitted as shown below:
       `-Dcolumns=id -Dname -Dage`
   
   
   ### SeaTunnel Version
   
   2.1.1
   
   ### SeaTunnel Config
   
   ```conf
   ...
   transform {
     sql {
       sql="select " ${columns} " from table"
     }
   }
   ...
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark.sh \
   --master local[4] \
   --deploy-mode client \
   --config ./config/my.conf
   -i columns=id,name.age
   ```
   
   
   ### Error Exception
   
   ```log
   the variable `columns` has been splitted as shown below: 
   -Dcolumns=id -Dname -Dage
   ```
   
   
   ### Flink or Spark Version
   
   Spark 2.4.0
   
   ### 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-unsubscribe@seatunnel.apache.org.apache.org

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


[GitHub] [incubator-seatunnel] LinZhaoguan commented on issue #2514: [Bug] [seatunnel-spark-starter] SparkCommandArgs Will split the variable value with comma

Posted by GitBox <gi...@apache.org>.
LinZhaoguan commented on issue #2514:
URL: https://github.com/apache/incubator-seatunnel/issues/2514#issuecomment-1226793364

   I submitted PR for this issue. Please see #2523


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] LinZhaoguan closed issue #2514: [Bug] [seatunnel-spark-starter] SparkCommandArgs Will split the variable value with comma

Posted by GitBox <gi...@apache.org>.
LinZhaoguan closed issue #2514: [Bug] [seatunnel-spark-starter] SparkCommandArgs Will split the variable value with comma
URL: https://github.com/apache/incubator-seatunnel/issues/2514


-- 
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-unsubscribe@seatunnel.apache.org

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