Skip to content

Conversation

@kazanzhy
Copy link
Contributor

@kazanzhy kazanzhy commented Feb 9, 2022

Passed TrinoHook params to DbApiHook methods: insert_rows, run
Added types for TrinoHook methods: get_records, get_pandas_df
Added test for TrinoHook.run()

closes: #21125

@kazanzhy
Copy link
Contributor Author

kazanzhy commented Feb 9, 2022

Hi @Skuratovskyi
Can you have a look at these changes?

@kazanzhy kazanzhy force-pushed the pass_params_from_trino_to_dbapi_21125 branch from eb73ad5 to 070f90b Compare February 11, 2022 10:24
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Feb 15, 2022
def run(self, hql, autocommit: bool = False, parameters: Optional[dict] = None, handler=None) -> None:
def run(
self,
hql: str,
Copy link
Contributor

@eladkal eladkal Feb 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really should get rid of the hql across the whole class
Trino uses sql. #21597

@eladkal eladkal merged commit 1884f22 into apache:main Feb 15, 2022
@kazanzhy kazanzhy deleted the pass_params_from_trino_to_dbapi_21125 branch February 16, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apache-airflow-providers-trino issue when I use "run" method, query is not performed

3 participants