-
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
Added trino-sybase connector #8488
Conversation
@ebyhr Raising a fresh PR as the old fork was deleted by me a while back. |
Removing aggregation pushdown from this PR. |
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.
Left some initial comments.
Please
- add
trino-sybase
module to root pom.xml - add
trino-sybase
module tocore/trino-server/src/main/provisio/presto.xml
- add
sybase.rst
todocs/src/main/sphinx/connector
- fix
docs/src/main/sphinx/connector.rst
plugin/trino-sybase/src/test/resources/container-license-acceptance.txt
Outdated
Show resolved
Hide resolved
plugin/trino-sybase/src/test/java/io/trino/plugin/sybase/SybaseQueryRunner.java
Outdated
Show resolved
Hide resolved
plugin/trino-sybase/src/test/java/io/trino/plugin/sybase/SybaseQueryRunner.java
Outdated
Show resolved
Hide resolved
plugin/trino-sybase/src/test/java/io/trino/plugin/sybase/SybaseQueryRunner.java
Show resolved
Hide resolved
plugin/trino-sybase/src/test/java/io/trino/plugin/sybase/TestSybasePlugin.java
Outdated
Show resolved
Hide resolved
plugin/trino-sybase/src/test/java/io/trino/plugin/sybase/SybaseDataLoader.java
Show resolved
Hide resolved
// SqlServer supports 2100 parameters in prepared statement, let's create a space for about 4 big IN predicates | ||
public static final int SYBASE_MAX_LIST_EXPRESSIONS = 500; |
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.
Remove if it's unrelated to Sybase connector.
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.
sybase too has similar limit for max expressions
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.
Then, please update the above comment since it mentions "SqlServer".
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.
removed that.
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.
No need to remove that. The comment helps us understand Sybase limitation.
plugin/trino-sybase/src/main/java/io/trino/plugin/sybase/SybaseClient.java
Outdated
Show resolved
Hide resolved
String sql = format( | ||
"sp_rename %s, %s", | ||
singleQuote(catalogName, schemaName, tableName), | ||
singleQuote(newTable.getTableName())); |
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.
As far as I checked this rename logic locally, this method throws an error. Perhaps, Sybase doesn't allow passing catalog nor schema names in this procedure?
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36273.1572/html/sprocs/X37949.htm
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.
let me check on this..
Let me revise with review comments. |
Mr trino sybase connector fixes
sybase trino version update
Mr trino sybase connector fixes
Mr trino sybase connector fixes
…ixes dependency fix;
👋 @academy-codex - this PR is inactive and doesn't seem to be under development. If you'd like to continue work on this at any point in the future, feel free to re-open. |
Fixes #2481.
Description: Adding a new sybase connector compatible with jTDS type 4 driver.