Skip to content
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

Feature qubole hook support headers #15615

Merged
merged 4 commits into from
May 4, 2021

Conversation

levyitay
Copy link
Contributor

@levyitay levyitay commented Apr 30, 2021

closes: #15598
related: #15598


Added support to include column headers in the result from Qubole.

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg
Copy link

boring-cyborg bot commented Apr 30, 2021

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, pylint and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

"""get_results from Qubole"""
return self.get_hook().get_results(ti, fp, inline, delim, fetch)
return self.get_hook().get_results(ti, fp, inline, delim, fetch,include_headers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return self.get_hook().get_results(ti, fp, inline, delim, fetch,include_headers)
return self.get_hook().get_results(ti, fp, inline, delim, fetch, include_headers)

Before pylint wastes a CI run to catch it…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, not sure why I missed it.
Fixed along with some other warnings

@eladkal eladkal self-requested a review May 3, 2021 12:59
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@levyitay please fix the static checks

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 3, 2021
@github-actions
Copy link

github-actions bot commented May 3, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest master or amend the last commit of the PR, and push it with --force-with-lease.

@levyitay
Copy link
Contributor Author

levyitay commented May 3, 2021

@eladkal Done

@eladkal eladkal merged commit 47a5539 into apache:master May 4, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented May 4, 2021

Awesome work, congrats on your first merged pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qubole Hook Does Not Support 'include_headers'
3 participants