[ 
https://issues.apache.org/jira/browse/AIRFLOW-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ash Berlin-Taylor updated AIRFLOW-3289:
---------------------------------------
    Summary: BashOperator mangles {{\}} escapes in commands  (was: sed called 
from BashOperator not working as expected)

> BashOperator mangles {{\}} escapes in commands
> ----------------------------------------------
>
>                 Key: AIRFLOW-3289
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3289
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.10.0
>            Reporter: Nikolay Semyachkin
>            Priority: Major
>         Attachments: example.csv, issue_proof.py
>
>
> I want to call a sed command on csv file to replace empty values (,,) with \N.
> I can do it with the following bash command 
> {code:java}
> cat example.csv | sed 's;,,;,\\N,;g' > example_processed.csv{code}
> But when I try to do the same with airflow BashOperator, it substitutes ,, 
> with N (instead of \N).
>  
> I attached the code and csv file to reproduce.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to