trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
9.85k stars 2.85k forks source link

Trino2Trino connector #21791

Open mosabua opened 2 months ago

mosabua commented 2 months ago

Multiple proprietary implementations of a Trino2Trino connector exist in the community. This project aims to pull the various stakeholders together as discussed in prior community meetings.

Following are various characteristics and details for the initial implementation as well as future improvements and consideration.

alee-x commented 2 months ago

I'm still determining if this will be helpful, but I've been given the go-ahead to open-source the basic trino-to-trino connector my team developed for a research project.

The code has been made available here. Apologies that it's a fresh repo with a little history—we have an internal mono repo for custom Trino plugins, and this code was pulled out of there. It was written by DevOps, who mainly work in Python/Go/C++/Rust and have limited knowledge of Java, so if there's anything egregious, it's because we didn't know any better!

We're currently working on implementing pushdown and fixing the presently broken tests. I hope that the code will be a helpful starting point for a PR.

mosabua commented 2 months ago

@alee-x thats awesome .. we are currently working on getting a more mature one from another group approved for sending a PR. The idea would be that we get the other version merged and then you and all others who have their own version can contribute specific improvements. That should result in a good connector for everyone to use and it will safe everyone the rebasing, and all other related work with maintaining a fork.

mosabua commented 1 month ago

PR from https://github.com/sajjoseph/trino/tree/add-trino-to-trino-connector is coming soon