-
Notifications
You must be signed in to change notification settings - Fork 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
Add support for YugabyteDB connector #5352
Comments
Suggested change for presto-cassandra-driver to connect to Yugabyte DB:
|
@tedyu I don't think we can replace the dependency. We will need to create a new connector. |
Agreed to creating new connector for Presto. The Yugabyte JDBC driver covers both YCQL (for Cassandra) and YSQL (for Postgres). For YCQL, Presto should be able to use Yugabyte JDBC driver. |
@ebyhr Thanks |
Since Yugabyte is different from Cassandra, yes we should have dedicated connector. @tedyu do you want to work on this? @ebyhr @tedyu @electrum let's have agreement before commencing the work. |
Yugabyte does plan to maintain JDBC and behavior compatibility with Cassandra. The suggested change in #5352 (comment) references cassandra-driver-core maintained by yugabyte. |
Given the change in: Can you help create repository for Presto connector ? Thanks |
@tedyu i am not sure what kind of repository this would be. |
I was expecting https://github.com/prestosql/presto-yugabytedb-driver or something like that to be created. Thanks |
@tedyu |
Please see the attached file (up to line 76) |
is Yugabyte driver a fork of cassandra driver? |
@tedyu can you please created a companion PR here adding the new module? |
For the companion PR, wouldn't it be dependent on the availability of presto-yugabyte-driver in maven ? Signature has been sent to cla@prestosql.io. Is there more to be done in this regard ? |
cc @martint
the PR won't build on CI until the next step would be to merge trinodb/trino-yugabyte-driver#1, release do maven, etc. |
The following would allow building against presto-yugabyte-driver :
Do you have suggestion other than copying the whole presto-cassandra subproject ? Thanks |
Let's start simpler:
|
See if the patch is on right track. Currently trying to figure out which Enforcer rule fails:
|
instead of a diff, why don't you make a PR? |
Even with -X option, I didn't get more clue on which enforcer rule was broken. Once the compilation passes, I would send out the PR. Meanwhile, suggestion on how to fix compilation is welcome. |
let's see how it looks like in the PR. |
@tedyu It seems you sent PR to different repository. Could you resend to prestosql/presto? |
Yugabyte (CQL) doesn't support setting a comment in both This limitation breaks INSERT statement and affects to some operations because Cassandra connector uses the comment to manage hidden columns. |
I logged yugabyte/yugabyte-db#9902 for comment enhancement in YCQL. |
Yugabyte offers JDBC drivers, but it has
BETA
label for now.https://docs.yugabyte.com/latest/reference/drivers/yugabytedb-jdbc-driver/
Another option is using Java client driver that is based on DataStax's one (similar to the current Cassandra connector).
https://docs.yugabyte.com/latest/reference/drivers/ycql-client-drivers/#java
Related to #4836 #4838
Reported issue:
The text was updated successfully, but these errors were encountered: