Skip to content

"Extra" connection field purpose #31150

Answered by potiuk
asuvork asked this question in Q&A
May 9, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Axtra is Airflow way to get generic way of defining extra parameters but they are handled by each connection in the way how author of the connection decided it to use them.

Look at the docs/code of every connection (defined by Hooks) to see whch extras are supported. If Kafka has connection does not support extras, it makes no sense to add it there. Extra is "airflow" specific field and if somoene decided in Kafka connection to put extra fields in config then this is how Kafka connection handles it - and you have to adapt to it. Look at the docs and if in doubt - at the code.

Your use of extras to handle "your" data is just wrong and it is not going to work in general case so don't do it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@asuvork
Comment options

Answer selected by asuvork
Comment options

You must be logged in to vote
1 reply
@Taragolis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants