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

Correctly handle None returns from Query.scalar() #16345

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Jun 9, 2021

Toward #8171, fix #16328.

None is possible when the query does not return a row, according to SQLAlchemy documentation. We can handle them to provide better errors in unexpected situations.

@boring-cyborg boring-cyborg bot added area:Scheduler including HA (high availability) scheduler area:serialization area:webserver Webserver related Issues labels Jun 9, 2021
@kaxil kaxil added this to the Airflow 2.1.1 milestone Jun 9, 2021
@github-actions
Copy link

github-actions bot commented Jun 9, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jun 9, 2021
@uranusjr uranusjr closed this Jun 9, 2021
@uranusjr uranusjr reopened this Jun 9, 2021
airflow/jobs/scheduler_job.py Outdated Show resolved Hide resolved
This is possible when the query does not return a row, according to
SQLAlchemy documentation. We can handle them to provide better errors in
unexpected situations.
@kaxil kaxil merged commit 147bcec into apache:main Jun 15, 2021
ashb pushed a commit that referenced this pull request Jun 22, 2021
This is possible when the query does not return a row, according to
SQLAlchemy documentation. We can handle them to provide better errors in
unexpected situations.

Toward #8171, fix #16328.

(cherry picked from commit 147bcec)
@uranusjr uranusjr deleted the scalar-none-fixes branch November 25, 2021 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler area:serialization area:webserver Webserver related Issues full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error on click in dag-dependencies - airflow 2.1
3 participants