david30907d commented on issue #19507:
URL: https://github.com/apache/airflow/issues/19507#issuecomment-989563954


   @kazanzhy I could be wrong but it still fails on my local (2.2.2)
   seems to me that 
[conn_type](https://github.com/apache/airflow/blob/main/airflow/hooks/dbapi.py#L107)
 here would return `gcpbigquery` instead of `bigquery`, so sqlalchemy cannot 
parse this URL
   
   ```bash
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/hooks/dbapi.py", line 
118, in get_sqlalchemy_engine
       return create_engine(self.get_uri(), **engine_kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/engine/__init__.py",
 line 525, in create_engine
       return strategy.create(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/engine/strategies.py",
 line 54, in create
       u = url.make_url(name_or_url)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/engine/url.py", 
line 229, in make_url
       return _parse_rfc1738_args(name_or_url)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/sqlalchemy/engine/url.py", 
line 290, in _parse_rfc1738_args
       raise exc.ArgumentError(
   sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string 
'gcpbigquery:'
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to