lens-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tao Yan <t...@linkedin.com>
Subject Re: Define Nested Structure
Date Thu, 01 Sep 2016 00:36:42 GMT
Could you provide an example of defining a struct in a dimension / fact?

Thanks!



On Thu, Aug 25, 2016 at 3:36 PM, Tao Yan <tyan@linkedin.com> wrote:

> Any update on this?
>
> On Tue, Aug 23, 2016 at 5:11 PM, Tao Yan <tyan@linkedin.com> wrote:
>
>> Is there any example for the struct type definition?
>>
>> Thanks!
>>
>> On Tue, Aug 23, 2016 at 4:55 PM, amareshwarisr . <amareshwari@gmail.com>
>> wrote:
>>
>>> 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
>>>>
>>>
>>>
>>
>>
>> --
>>
>> *Tao Yan*
>> Software Engineer
>> Data Analytics Infrastructure Tools and Services
>>
>>
>>
>> 206.250.5345
>> tyan@linkedin.com
>> https://www.linkedin.com/in/taousc
>>
>
>
>
> --
>
> *Tao Yan*
> Software Engineer
> Data Analytics Infrastructure Tools and Services
>
>
>
> 206.250.5345
> tyan@linkedin.com
> https://www.linkedin.com/in/taousc
>



-- 

*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