drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Nadeau <jacq...@dremio.com>
Subject Re: Testing a UDF
Date Tue, 21 Jul 2015 15:20:45 GMT
I suggest you include the java-exec tests artifact.  You can then create a
simple test by extending BaseTestQuery [1] and calling newTest().  That has
decent javadocs to get you started.  To see an example usage, take a look
at TestExampleQueries [2] from the Drill codebase.

[1]
https://github.com/apache/drill/blob/master/exec/java-exec/src/test/java/org/apache/drill/BaseTestQuery.java
[2]
https://github.com/apache/drill/blob/master/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java

On Mon, Jul 20, 2015 at 8:41 PM, Ted Dunning <ted.dunning@gmail.com> wrote:

>
> Last I heard, Jason and others were working in that exact area.
>
> For now, printf still rules.  The good news is that it only takes a few
> seconds to rebuild and redeploy to a local instance.  It takes longer to
> stop an start sqlline.
>
> Sent from my iPhone
>
> > On Jul 20, 2015, at 17:17, Jim Scott <jscott@maprtech.com> wrote:
> >
> > Are there any unit tests which I can copy from in the drill project that
> > will allow me to test my UDF that I am creating without the need to do a
> > full build, package and deploy to test it?
> >
> > I ask since there is code being generated to package it, and this is kind
> > of SUPER important :-)
> >
> > Thanks!
> > Jim
> >
> > --
> > *Jim Scott*
> > Director, Enterprise Strategy & Architecture
> > +1 (347) 746-9281
> >
> > <http://www.mapr.com/>
> > [image: MapR Technologies] <http://www.mapr.com>
> >
> > Now Available - Free Hadoop On-Demand Training
> > <
> http://www.mapr.com/training?utm_source=Email&utm_medium=Signature&utm_campaign=Free%20available
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message