-
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 Sybase connector #3462
Add Sybase connector #3462
Conversation
Thanks for your contribution! Also, I would suggest you join the community Slack https://prestosql.io/slack.html |
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
presto-sybase/src/main/java/io.prestosql.plugin.sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
@academy-codex would you be able to add aggregate pushdown like 193872a#diff-e4b92558819e35928d8d20100000291dda1e15cf907c1d2f06ba4015b0afd6cc? |
@tooptoop4 We are working on it. Have updated my branch with latest 341 changes for now. |
Hey @tooptoop4 , |
Ideally we should have some tests for a connector.
for these, you will need a sybase instance. you can follow TestingPostgreSqlServer and PostgreSqlQueryRunner examples, perhaps using https://hub.docker.com/r/datagrip/sybase with To simplify review, i would recommend adding as little functionality and as much testing as possible. |
@findepi Thanks. How do i specify the database, username and password ? Generic container doesnt have those methods like postgre ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do i specify the database, username and password ?
Left comments about those information.
{ | ||
// private static final String MEM_SQL_LICENSE = requireNonNull(System.getProperty("memsql.license"), "memsql.license is not set"); | ||
|
||
public static final String DEFAULT_TAG = "memsql/cluster-in-a-box:centos-7.1.4-516dfe4088-1.9.6-1.6.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static final String DEFAULT_TAG = "memsql/cluster-in-a-box:centos-7.1.4-516dfe4088-1.9.6-1.6.1"; | |
public static final String DEFAULT_TAG = "datagrip/sybase:16.0"; |
@Override | ||
public String getUsername() | ||
{ | ||
return "root"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "root"; | |
return "sa"; |
@Override | ||
public String getPassword() | ||
{ | ||
return ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ""; | |
return "myPassword"; |
@ebyhr I want to get this rolling again. I have prted the code of sybase to trino and have tested against docker image. |
@academy-codex Yes, I would review once you rebase and push a new commit. There were some change around tests since last review, so you will need to take care of that (e.g. |
Continued in PR #8488. |
|
fixes #2481
Will be adding the supporting results and documentation in a couple days.