-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding template support in qbol operator #1090
Conversation
@@ -2,7 +2,6 @@ | |||
from airflow.utils import apply_defaults | |||
from airflow.contrib.hooks import QuboleHook | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8 says 2 lines before class definitions
I feel like all these attributes aren't guaranteed to be present and that the framework will choke trying to template missing attributes. The contract of what one should provide is unclear. If they are required, they should be explicitly defined in the constructor header (with defaults), and stamped into |
I read the way things are organized in the hook and operator and it's a bit messy the way kwargs is passed around. I saw how you overrode the get_attriubte is a bit hacky too. The operator doesn't have a good doc string to compensate for this behavior... Consider making a clearer interface to the operator, or documenting its expected behavior in the doc string. |
Hi Maxime, I do agree with your concerns. Actually we didn't wanted to add dozens of new operators like So either I can try to write down the behaviour in more better way, or you can suggest me some alternative approach for supporting templates? Thanks, |
👍 |
Adding template support in qbol operator
No description provided.