Skip to content

[TableauOperator] Use params by template_fields #29353

Answered by Taragolis
seunggabi asked this question in Ideas
Discussion options

You must be logged in to vote

Option 1: Quick solution.

overwrite class attribute

from airflow.providers.tableau.operators.tableau import TableauOperator

TableauOperator.template_fields = {"match_with", "find"}

create new operator based on TableauOperator

from airflow.providers.tableau.operators.tableau import TableauOperator

class AwesomeTableauOperator(TableauOperator):
    template_fields = {"match_with", "find"}

Option 2: Long-term Solution

Make other potential users of Tableau Provider happy and make a PR with appropriate changes in TableauOperator.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by seunggabi
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants