[ https://issues.apache.org/jira/browse/AIRFLOW-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16672996#comment-16672996 ]
Ash Berlin-Taylor commented on AIRFLOW-3289: -------------------------------------------- I suspect a work-around for now is to specify \{{\\\\N}} - there may be some escaping bug in the bash operator > 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 > 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)