[
https://issues.apache.org/jira/browse/DRILL-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haofeng Tang updated DRILL-2468:
--------------------------------
Description:
I followed these articles to create a custom function. I was able to repeat
these examples to build, and run queries using these new functions
successfully. But if I used some 3rd party libraries in my code, of cause with
all dependencies resolved with maven, I received errors -- although I was able
to build and run drill, I received an error "No applicable constructor/method
found for actual parameters "java.lang.Object";"
when I tried to use the added function in my query. Seems to be a classloader
issue.
All my test is done on a local CentOS node, and drill was deployed in an
embedded mode.
Thanks
---------------- reference articles --------------
https://cwiki.apache.org/confluence/display/DRILL/Develop+Custom+Functions
http://www.confusedcoders.com/bigdata/apache-drill/how-to-contribute-to-apache-drill-implementing-drill-math-functions
was:
I followed these articles to create a custom function. I was able to repeat
these examples to build, and run queries using these new functions
successfully. But if I used some 3rd party libraries in my code, of cause with
all dependencies resolved with maven, although I was able to build, I receive
an error "No applicable constructor/method found for actual parameters
"java.lang.Object";"
when I tried to use the added function in my query. Seems to be a classloader
issue.
Thanks
---------------- reference articles --------------
https://cwiki.apache.org/confluence/display/DRILL/Develop+Custom+Functions
http://www.confusedcoders.com/bigdata/apache-drill/how-to-contribute-to-apache-drill-implementing-drill-math-functions
> When create a custom function, including 3rd party library would cause the
> query to fail.
> -----------------------------------------------------------------------------------------
>
> Key: DRILL-2468
> URL: https://issues.apache.org/jira/browse/DRILL-2468
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Codegen, Execution - Relational Operators
> Affects Versions: 0.7.0, 0.8.0
> Environment: CentOS 64-bit
> Reporter: Haofeng Tang
> Assignee: Chris Westin
>
> I followed these articles to create a custom function. I was able to repeat
> these examples to build, and run queries using these new functions
> successfully. But if I used some 3rd party libraries in my code, of cause
> with all dependencies resolved with maven, I received errors -- although I
> was able to build and run drill, I received an error "No applicable
> constructor/method found for actual parameters "java.lang.Object";"
> when I tried to use the added function in my query. Seems to be a classloader
> issue.
> All my test is done on a local CentOS node, and drill was deployed in an
> embedded mode.
> Thanks
> ---------------- reference articles --------------
> https://cwiki.apache.org/confluence/display/DRILL/Develop+Custom+Functions
> http://www.confusedcoders.com/bigdata/apache-drill/how-to-contribute-to-apache-drill-implementing-drill-math-functions
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)