Skip to content

Invalid uri created when extras contains non string elements - imact for alchemy connection #55893

@core3-marcin-molak

Description

@core3-marcin-molak

Apache Airflow version

3.0.6

If "Other Airflow 2 version" selected, which one?

No response

What happened?

I have create extra for sql server connection with the following extras:

{ "tds_version":"7.3", "as_dict":true }

I got uri with
extra=%7B%22tds_version%22%3A+%227.3%22%2C+%22as_dict%22%3A+1%7D

and alchemy have issue with extra parameter.

When I change boolean into string:
{ "tds_version":"7.3", "as_dict":"true" }

uri contains: ?tds_version=7.3&as_dict=true

but alchemy have problem with map from string into boolean

What you think should happen instead?

No response

How to reproduce

Add extras to connection and try to get alchemy_connection for sql server

Operating System

Ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Virtualenv installation

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions