Skip to content

Conversation

@zach-overflow
Copy link
Contributor

@zach-overflow zach-overflow commented Jun 2, 2025


Related issue: No existing issue that I could find. I'm happy to create one if that is preferred.

What?

Adds two optional parameters to the TrinoHook's extra JSON. This PR generally follows these 2 similar past PRs: #27095 and #27213

  1. Adds the optional extra_credential parameter in the TrinoHook extra payload.
  2. Adds the optional roles parameter in the TrinoHook extra payload.

Why?

  • The Trino python client used by the TrinoHook allows for the use of these fields, and we would like to use the official TrinoHook rather than maintain a custom subclass which exposes these options.
  • I've confirmed that both extra_credential and roles is available in Airflow's current pinned version of the Trino python client (0.334.0).

@shahar1 shahar1 merged commit 5e943e3 into apache:main Jun 2, 2025
70 checks passed
@zach-overflow zach-overflow deleted the add-trino-hook-extra-credential branch June 2, 2025 16:26
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
* Add extra_credentials and roles to TrinoHook

* Address Trino provider doc URL error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants