-
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 Apache Phoenix connector #672
Conversation
This is continuing from #76 since the GitHub thread there got too large The deprecated I also added support for ARRAY type, and added a bunch of tests in TestPhoenixSqlTypeMapping |
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.
I'm still reviewing, but overall it's looking good. Here's the first set of comments.
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixConfig.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixSplit.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.
Still reviewing. Adding another round of mostly minor comments. I still need to review PhoenixMetadata
and most of the test code. Overall looking great and should be ready to merge soon.
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixTableProperties.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixTableProperties.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixTableProperties.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/PhoenixQueryRunner.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestPhoenixDistributedQueries.java
Outdated
Show resolved
Hide resolved
Is there a known issue with the builds? I'm not able to repro the test failure on my local |
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.
I have completed the review. This is ready to merge after the comments are addressed. Thanks for your patience and all your work on this.
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestingPhoenixServer.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestingPhoenixServer.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestingPhoenixServer.java
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestingPhoenixServer.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestingPhoenixServer.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixMetadata.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestPhoenixIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestPhoenixIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestPhoenixIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
presto-phoenix/src/test/java/io/prestosql/plugin/phoenix/TestPhoenixSqlTypeMapping.java
Show resolved
Hide resolved
We have been seeing spurious test failures for |
presto-phoenix/src/main/java/io/prestosql/plugin/phoenix/PhoenixClient.java
Outdated
Show resolved
Hide resolved
The
I think the easiest fix is to have |
Based on @combineads (Byunghwa Yun <[email protected]>) published at prestodb/presto#12111.
Thanks for the review @electrum, I've pushed a new revision that addresses the comments, and the tests are passing now. Really appreciate all your help, I've learned a lot through the whole process. |
Merged, thanks! |
Woohoo! Thanks @vincentpoon for your contribution! |
🎉 🚀 |
@vincentpoon Thanks for all your hard work on this. It was a pleasure to work with you and I look forward to seeing future contributions. |
Coincidentally, I am giving a talk at NoSql day tomorrow on this connector. Cool that I'll be able to announce that it's been merged! |
@vincentpoon Very cool! You can mention it will be available in the upcoming |
Yeah! Thanks all! |
https://phoenix.apache.org/
Ref #76
Ref prestodb/presto#12111