-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Validate SqoopHook connection string and disable extra options from public hook methods #33039
Conversation
Pending tests passing :) |
dee9865
to
d0508ef
Compare
…ook methods Check that the connection string constructed using the connection's `host`, `port` and `schema` does not contain query params as it is not intended. Additionally, also disable the `extra_import_options` and `extra_export_options` arguments accepted directly by the hook methods but accept it as a param via the hook constructor when initialising the hook or by passing it in hook_params when initialising the hook from operators.
…nd not accepted by databases
98bfad8
to
7988831
Compare
Test constraints check seems to be timing out repeatedly after 80 minutes. |
Yes. Seems there is a backtracking of |
BTW. I just realised that PR's like this should not cause the "--upgrade-to-newer-dependencies` (this is what triggers the backtracking issue) fix to CI infrastructure is coming |
After this one is merged : #33082 and after your rebase, the constraint issue should go away even if we do not fix it in main. |
Merging, regardless. |
…ublic hook methods (#33039) * Validate SqoopHook connection string and disable extra options from hook methods Check that the connection string constructed using the connection's `host`, `port` and `schema` does not contain query params as it is not intended. Additionally, also disable the `extra_import_options` and `extra_export_options` arguments accepted directly by the hook methods but accept it as a param via the hook constructor when initialising the hook or by passing it in hook_params when initialising the hook from operators. * Propogate missing hook param changes to the operator * Remove test for invalid port with query param as ports are integers and not accepted by databases * Add 4.0.0 to provider.yaml (cherry picked from commit 59f5f58)
Check that the connection string constructed using the connection's
host
,port
andschema
does not contain query params as it isnot intended. Additionally, also disable the
extra_import_options
and
extra_export_options
arguments accepted directly by the hookmethods but accept it as a param via the hook constructor when
initialising the hook or by passing it in
hook_params
when initialisingthe hook from operators.
^ 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.