-
Notifications
You must be signed in to change notification settings - Fork 66
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 Presto's REGEXP_* functions #380
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! I just left minor comment regarding pom.xml
pom.xml
Outdated
<groupId>com.facebook.presto</groupId> | ||
<artifactId>presto-jdbc</artifactId> | ||
<version>0.212</version> | ||
<!-- <scope>test</scope> --> |
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.
It looks like we have been including jdbc drivers only for the test phase. Is there any difference for Presto?
That driver version is also very outdated, the project has also forked to
prestosql/presto where the majority of the updates are being done!
…On Mon, 10 Jun. 2019, 06:12 Yongjoo Park, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Thanks! I just left minor comment regarding pom.xml
------------------------------
In pom.xml
<#380 (comment)>:
> @@ -300,6 +300,14 @@
<activation>
<jdk>1.7</jdk>
</activation>
+ <dependencies>
+ <dependency>
+ <groupId>com.facebook.presto</groupId>
+ <artifactId>presto-jdbc</artifactId>
+ <version>0.212</version>
+ <!-- <scope>test</scope> -->
It looks like we have been including jdbc drivers only for the test phase.
Is there any difference for Presto?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#380>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIEBCUKNDD2OJUOA5OPJVLPZVP4HANCNFSM4HWIHK3A>
.
|
I think we had an internal discussion of 'providing JDBC drivers' vs. 'letting users use their own JDBC' and IIRC, the test-only scope has been commented out as a result. It was commented out in this commit: ac65e2c I will update the JDBC version and restore the test scope for now. |
After a little bit of digging, it looks likes our PrestoJDBCConnection class requires |
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 see. I think I imported those presto-specific classes for printing out query progress.
Codecov Report
@@ Coverage Diff @@
## master #380 +/- ##
=========================================
+ Coverage 66.43% 66.53% +0.1%
=========================================
Files 169 169
Lines 11635 11635
Branches 1903 1903
=========================================
+ Hits 7729 7740 +11
+ Misses 3397 3387 -10
+ Partials 509 508 -1
Continue to review full report at Codecov.
|
I am merging this PR after updating the group id of presto-jdbc to io.prestosql (which should be more up-to-date). |
Thanks! |
Thanks for this! |
(Resolves #377)
Add support for the following REGEXP_* functions in Presto as shown in https://prestosql.io/docs/current/functions/regexp.html:
Please note that the lambda expression used in one of the example at the website is not currently supported in VerdictDB.