Nikolay Semyachkin created AIRFLOW-3289:
-------------------------------------------

             Summary: sed called from BashOperator not working as expected
                 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
         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