You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/05 16:58:16 UTC

[GitHub] [airflow] potiuk commented on issue #11280: BigQueryInsertJobOperator will fail if the DagID contains the '.' character

potiuk commented on issue #11280:
URL: https://github.com/apache/airflow/issues/11280#issuecomment-703759481


   I think it we already do similar thing elsewhere in Airflow - we are replacing . with __dot__ I believe. It is in "views.py" - and it is mostly to prevent some subdag matching. I do not know BigQuery part well enough , but something like that might be a good idea:
   
   ```
           resp = {
               r.dag_id.replace('.', '__dot__'): {
                   'dag_id': r.dag_id,
                   'last_run': r.last_run.isoformat(),
               } for r in query
           }
           return wwwutils.json_response(resp)
   
   ```
   
   It's really typical "escaping" thing :).
   


----------------------------------------------------------------
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.

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