-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 Snowflake JDBC Connector #2551
Conversation
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.
Thanks for raising this PR.
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClient.java
Outdated
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClient.java
Outdated
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClientModule.java
Outdated
Show resolved
Hide resolved
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.
Thanks for creating this PR. Could you add the document?
It seems write query fails if we omit the default database from connection-url
. It's different behavior comparing to other JDBC based connector, so it would be better to mention it.
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClient.java
Outdated
Show resolved
Hide resolved
Bump? |
0143df4
to
f14928a
Compare
1ba865d
to
f265f38
Compare
@pgagnon is this a read-only connector or can it insert/update data back into snowflake? does it support xml/json snowflake functions (https://docs.snowflake.com/en/sql-reference/functions-semistructured.html) ? |
It supports CTAS and IIS queries but I am unsure about semi structured
formats.
…On Thu, Mar 19, 2020, 18:15 tooptoop4 ***@***.***> wrote:
@pgagnon <https://github.com/pgagnon> is this a read-only connector or
can it insert/update data back into snowflake? does it support xml/json
snowflake functions (
https://docs.snowflake.com/en/sql-reference/functions-semistructured.html)
?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2551 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBAZIWXILHIRKS5OKPJ2VTRIKKQNANCNFSM4KI25MSA>
.
|
@tooptoop4 The answer to the second question is no. |
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.
Thanks for raising this PR. Can we add a test for config ?
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClient.java
Outdated
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClientModule.java
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClientModule.java
Outdated
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeClientModule.java
Outdated
Show resolved
Hide resolved
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeConfig.java
Outdated
Show resolved
Hide resolved
any chance the connector will be released soon? |
Sorry I have been out of pocket for a while. I have received a couple of inquiries about it over the last week, so I will rebase it and address reviewer comments over the weekend. |
@pgagnon thx. looking forward to this |
presto-snowflake/src/main/java/io/prestosql/plugin/snowflake/SnowflakeConfig.java
Outdated
Show resolved
Hide resolved
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.
Thanks for raising this PR. Looks good to me. Can you squash all the commits.
@findepi your insights ?
d16283e
to
64e12af
Compare
Please make sure there is an issue to cover SF testing. |
Do you have any idea how to provide test coverage for that? Now it sounds very easy to have a regression unnoticed here. What are your thoughts? |
I think Snowflake doesn't have a free account or a test account. Trial period is for 30 days. We can verify it manually but it is a tedious process (like we do for Redshift connector) |
We could, but currently there are no tests that we could execute against manually created testing environment. |
We can add Integration and DistributedQueriesTest test but we have to skip those tests in the GHA. |
@pgagnon would you be able to add aggregate pushdown like 193872a#diff-e4b92558819e35928d8d20100000291dda1e15cf907c1d2f06ba4015b0afd6cc ? |
Checking in to see if there is any movement on this pull request. Looking forward to trying it out. |
We're sort of blocked on a proper testing strategy right now, but I'll make sure to rebase soon so that you can at least play with the branch. |
That would be great. Thanks. |
Hi @pgagnon. Not to be pushy but any update on the rebase? |
Hi @pgagnon! First of all, thanks for being working in this connector. We are really looking forward to use it! I've read this thread and, if I understood correctly, the PR is blocked due to some tests that can't be run as SF does not provide something like a docker image to code decent ITs. We run into this problem last year when we're developing a service and realized there wasn't a way to mock SF. We work it out by hitting the real SF from our Jenkins nodes (pointing to a dev DB). Not an ideal solution, but is working. However, it's true this tests won't be possible without a SF account. I wonder if I could help in any way, maybe by running those manual tests mentioned by @Praveen2112 or helping you coding something as well, I'd be glad to help. |
@pgagnon Thanks for working on this feature. @Praveen2112 @findepi Thanks a lot for the reviews on the initial PR. Could we see how to break the stalemate around testing ? While working on hadoop/hdfs project, we faced sometimes similar'ish challenges, and the way we sometimes adopted was to reflect the state properly in the documentation by using words such "Feature is in experimental phase". What are your thoughts about it ? With a plethora of downstream datasources, we may at times run into these sort of issues specific to certain connectors and hence a good way would be to reflect the state in the respective connector doc page. Happy to chime in and help in whatever way to get this across the finish line. |
Do you have plans to merge it ? |
any plan to merge? |
Closing after discussion of @bitsondatadev with @pgagnon in favor of #10387. |
Crude implementation of a Snowflake JDBC Connector.
Closes #1863