-
Notifications
You must be signed in to change notification settings - Fork 16.4k
removed all refs to page_size #43515
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
removed all refs to page_size #43515
Conversation
|
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 Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
This reverts commit 1618b2a.
|
Hi @shervinrad100, Thank you for the contribution. For the Google provider (and also Airflow in general), we are following a depreciation policy which states that before removal (which requires a major version bump), we need to deprecate the Normally, we have a hook to use it for depreciation but parameter depreciation is a bit tricky. Here is an example for depreciation for the parameter. warnings.warn("Something is deprecated and will be removed after MONTH DD, YYYY. Please use something else instead." AirflowProviderDeprecationWarning, stacklevel=2)
We can remove it from the underlying API call and private methods like Also, I wonder about operators; as far as I can see, the operator also has this I saw this is your first PR on this repo but removing something is just hard. I very much appreciated your effort, thank you! |
|
@molcay according to the description I am not sure if deprecation is needed? |
|
Hi @eladkal, Considering we have approx. 3 months before sunset of v16, I think we need to give some kind of depreciation warning to the user first and then remove it. Also, removing something requires the bump of the major version, we are just trying to avoid removing something directly. |
Then the statement of:
by the PR author, is not accurate? |
|
@eladkal, the comment is accurate for |
|
Shall we merge it @eladkal ? |
According to @molcay we can't merge it unless we bump min version of SDK to 17. If we don't wish to do it then we need to deprecate the parameter and have some mechanism to detect which version of the SDK is being used to populate the right function signature. I'll leave to Google folks to decide how they want to proceed. |
|
Hi @potiuk, Since we have ~3 months before sunset for @shervinrad100 did you have an update on this topic? |
|
Just to clarify, the current state is that the feature is usable only for v16 as v17+ get exception thus can't use it. |
|
Hi @eladkal, |
|
Hi @eladkal, |
|
Hi, |
|
Closing |
Problem
When executing the GoogleAdsToGcsOperator I received an error that
page_sizeis not accepted parameters by this API. According to these docs, it appears that none of the google API versions support this parameters.Closes: #43486
Solution
removed all refs to
page_sizeas can no longer be passed onto the API.^ 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.rstor{issue_number}.significant.rst, in newsfragments.