Re: Asking about iterating the elements in ListVector. Thanks. [Arrow JAVA API]

2018-09-02 Thread Xu,Wenjian
rCharVector vc = lv.getDataVector(); >> int listStart = lv.offsetBuffer.getInt((recordIndexToRead ) * 4) ; >> int listEnd = lv.offsetBuffer.getInt((recordIndexToRead + 1) * 4); >> NullableVarCharHolder nvh = new NullableVarCharHolder(); >> for(int i = listStart; i < listEnd

Re: How to create list> structure

2018-08-31 Thread Xu,Wenjian
> action > > https://github.com/dremio/dremio-oss > > - Wes > > On Tue, Aug 14, 2018 at 10:08 PM, Xu,Wenjian wrote: > > Hi Wes, > > > > Thank you for your kind help. > > > > Actually I am working on the Java UDF iterating the *array* in > SQL

Re: How to create list> structure

2018-08-14 Thread Xu,Wenjian
st suite, too): > > > https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowWriter.scala > > - Wes > > On Mon, Aug 13, 2018 at 6:00 AM, Xu,Wenjian wrote: > > Hi, > > > > If I want to create list> struct

How to create list> structure

2018-08-13 Thread Xu,Wenjian
Hi, If I want to create list> structure (as shown in https://arrow.apache.org/docs/memory_layout.html), what class(es) do I need to use in Java API and C++ API? Any suggestion would be appreciated. Thanks. Best regards, Wenjian

Re: Stuck in building Arrow C++

2018-07-26 Thread Xu,Wenjian
li_ep-download-RELEASE.cmake> > > > > > > I think it hangs at downloading *brotli_ep*. But I am able to download > > that package through the link > > https://github.com/google/brotli/archive/v0.6.0.tar.gz&g

Re: Stuck in building Arrow C++

2018-07-25 Thread Xu,Wenjian
/google/brotli/archive/v0.6.0.tar.gz Any suggestion? Thanks, Wenjian On Thu, Jul 26, 2018 at 1:02 AM Uwe L. Korn wrote: > Hello, > > the output is quite sparse. Can you run just `make VERBOSE=1` and have a > look at the last lines of that. This should give you a better indicati

Re: Stuck in building Arrow C++

2018-07-25 Thread Xu,Wenjian
Hi Wes, I could download that package through the link. Thanks, Wenjian On Thu, Jul 26, 2018 at 12:55 AM Wes McKinney wrote: > hi Wenjian, > > Are you able to download > > https://github.com/google/brotli/archive/v0.6.0.tar.gz > > ? > > - Wes > > On Wed, Ju

Stuck in building Arrow C++

2018-07-25 Thread Xu,Wenjian
Hello, I want to build Arrow C++ from source. I follow the steps according to the instructions in: https://github.com/apache/arrow/tree/master/cpp But I was stuck for a few hours after entering the commands *make unittest* as follows: = $make u