This can also help:

1. create TEST resources folder where you'll copy your data.
2. use dirTestWatcher to copy data to the root / tmp / custom directory.
3. query the data:

@Test
public void t() {
  dirTestWatcher.copyResourceToRoot(Paths.get("complex_1.parquet"));
  queryBuilder().sql("select * from dfs.`root`.`complex_1.parquet`").printCsv();
}


On Wed, Sep 26, 2018 at 12:37 PM Vitalii Diravka <vita...@apache.org> wrote:

> Hi Jean-Claude
>
> BaseTestQuery is deprecated. Please use ClusterTest instead.
> See TestCsv.java for example.
>
> You can find more info about Drill Cluster-Fixture-Framework here:
> https://github.com/paul-rogers/drill/wiki/Cluster-Fixture-Framework
>
> On Wed, Sep 26, 2018 at 12:00 AM Jean-Claude Cote <jcc...@gmail.com>
> wrote:
>
> > I have writing a msgpack storage plugin from drill.
> > https://github.com/jcmcote/drill/tree/master/contrib/storage-msgpack
> >
> > I'm now trying to write test cases like
> >
> >     testBuilder()
> >         .sqlQuery("select * from cp.`msgpack/testBasic.mp`")
> >         .ordered()
> >         .baselineColumns("a").baselineValues("1").baselineValues("1")
> >         .baselineColumns("b").baselineValues("2").baselineValues("2")
> >         .build().run();
> >
> > However when I run the test case it says it cannot find the
> > msgpack/testBasic.mp file. However it is in my src/test/resources folder.
> >
> > Should this work? I'm I going at it the right way?
> > Thanks
> > jc
> >
>

Reply via email to