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

[AIRFLOW-XXX] Fix spark submit hook KeyError #4578

Merged
merged 1 commit into from Jan 24, 2019

Conversation

zhongjiajie
Copy link
Member

Fix string format KeyError in
spark_submit_hook.py

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR does not need testing for this extremely good reason: tiny change

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
    • All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

  • Passes flake8

Fix string format KeyError in
spark_submit_hook.py
@zhongjiajie
Copy link
Member Author

@ash @feng @kaxil PTAL, thx.

kangaroooh added a commit to softagram/airflow that referenced this pull request Jan 24, 2019
@codecov-io
Copy link

codecov-io commented Jan 24, 2019

Codecov Report

Merging #4578 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4578      +/-   ##
==========================================
+ Coverage   74.13%   74.14%   +<.01%     
==========================================
  Files         421      421              
  Lines       27724    27724              
==========================================
+ Hits        20554    20555       +1     
+ Misses       7170     7169       -1
Impacted Files Coverage Δ
airflow/contrib/hooks/spark_submit_hook.py 79.82% <ø> (ø) ⬆️
airflow/models/__init__.py 92.5% <0%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28b53e2...ec03aa5. Read the comment docs.

@ashb ashb merged commit c69619e into apache:master Jan 24, 2019
@zhongjiajie zhongjiajie deleted the AIRFLOW_spark_submit_keyerror branch January 24, 2019 11:24
@feng-tao
Copy link
Member

feng-tao commented Jan 25, 2019

Should this have a jira ticket? Otherwise it won't get included in the next release.

@zhongjiajie
Copy link
Member Author

@feng-tao Do you mean I should create a issue in jira to report that?

@ashb
Copy link
Member

ashb commented Jan 25, 2019

It's a bit late to create the Jira ticket now, but I probably shouldn't have merged this without one. My bad.

ashb pushed a commit that referenced this pull request Jan 25, 2019
Fix string format KeyError in spark_submit_hook.py
@zhongjiajie
Copy link
Member Author

I think is minor changes so don't create the Jira ticket, just like #4552 (comment) suggest.

So if I modify code, I have to create Jira ticket, rigth?

@ashb
Copy link
Member

ashb commented Jan 25, 2019

The difference is 4552 was a doc change (that was in a .py file) - this is a code change.

@zhongjiajie
Copy link
Member Author

Ok, I get it, I sorry to do that

wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Jul 29, 2019
Fix string format KeyError in spark_submit_hook.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants