lens-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amareshwarisr ." <amareshw...@gmail.com>
Subject Re: Define Nested Structure
Date Tue, 23 Aug 2016 23:55:29 GMT
Tao,

You can try defining them as struct type - similar to hive. But not sure if
there are any gaps.

Thanks

On Wed, Aug 24, 2016 at 5:22 AM, Tao Yan <tyan@linkedin.com> wrote:

> Hi Lens Developer,
>
> I am trying to define a table with nested columns in Lens, and didn't find
> the corresponding xml attributes or properties for that. So, I wonder if it
> is possible to do that. For example:
>
> test-cube.xml:
>
> ...
> <dim_attribute name="region" _type="STRING" />
>
>
>
>
>
>
>
> *<dim_attribute name="EventHeader" _type="record" >    <fields>
> <field name="memberId" _type="int"/>        <field name="viewerUrn"
> _type="int"/>        <field name="time" _type="int"/>        ...
> </fields></dim_attribute>*
> <dim_attribute name="product_name" _type="STRING" />
> ...
>
>
> Thanks,
> --
>
> *Tao Yan*
> Software Engineer
> Data Analytics Infrastructure Tools and Services
>
>
>
> 206.250.5345
> tyan@linkedin.com
> https://www.linkedin.com/in/taousc
>

Mime
View raw message