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

Add backward compatibility with old versions of Apache Beam #27263

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

mik-laj
Copy link
Member

@mik-laj mik-laj commented Oct 25, 2022

The PR #23961 added support for impersonation of service accounts, but at the same time limited the supported versions of Apache Beam to 2.39.0. This is a very big limitation considering that this functionality is not critical and many existing pipelines require an older version. On the other hand, this restriction is not checked if the user installs beam in a separate virtual environment. On the other hand, this restriction is not checked if the user installs beam in a separate virtual environment. Then Apache Beam starts, but unsupported options are passed.

To solve these two problems, I moved the Apache Beam version check to runtime and use the old version restrictions in providers.yaml.

Additionally, I will unblock the work on Snowpark integration which requires cloudpickle 2.0.0 while Apache Beam 2.39.0 requires cloudpickle 2.1.0.

CC: @lwyszomi

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@mik-laj mik-laj requested review from potiuk and kaxil October 25, 2022 14:08
@boring-cyborg boring-cyborg bot added area:providers provider:Apache provider:google Google (including GCP) related issues labels Oct 25, 2022
@lwyszomi
Copy link
Contributor

@mik-laj LGTM

@potiuk
Copy link
Member

potiuk commented Oct 31, 2022

Tests failing though

@mik-laj mik-laj force-pushed the beam-old-versions branch 3 times, most recently from 16f5d3f to 5420b28 Compare November 4, 2022 16:21
@potiuk
Copy link
Member

potiuk commented Nov 7, 2022

Rebased- I have fixed the "backtracking" issue in main (some newly released dependencies caused back-tracking of pip resolver), so it should not fail this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants