You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by Yiming Liu <li...@gmail.com> on 2016/07/20 10:36:39 UTC

Keep the column order when parsing the streaming message

As the attached snapshot, the parsed columns is in disorder. It seems the
columns sorted by "Column Type". It's better if Kylin could keep the same
column order with the origin message.

[image: 内嵌图片 1]
-- 
With Warm regards

Yiming Liu (刘一鸣)

Re: Keep the column order when parsing the streaming message

Posted by ShaoFeng Shi <sh...@apache.org>.
I agree with you; If no special consideration, keeping in original order is
better.

2016-07-21 8:48 GMT+08:00 Yiming Liu <li...@gmail.com>:

> Hi Shaofeng,
>
> Sorry for the screenshot.
>
> The first step when defining the Stream table, user will input an example
> JSON record, and click ">>" to generate Table columns.
>
> 2016-07-21 8:35 GMT+08:00 ShaoFeng Shi <sh...@apache.org>:
>
> > Hi Yiming,
> >
> > the embeded screenshot couldn't show up, which step there?
> >
> > 2016-07-20 18:42 GMT+08:00 Yiming Liu <li...@gmail.com>:
> >
> > > sourceMeta.js  Line 590
> > >
> > > //var
> > > columnList = _.sortBy(columnList, function (i) { return i.type; });
> > >
> > > I have no idea why the sort by type is needed. The sorted column style
> > is not intuitive.
> > >
> > >
> > > 2016-07-20 18:36 GMT+08:00 Yiming Liu <li...@gmail.com>:
> > >
> > >> As the attached snapshot, the parsed columns is in disorder. It seems
> > the
> > >> columns sorted by "Column Type". It's better if Kylin could keep the
> > same
> > >> column order with the origin message.
> > >>
> > >> [image: 内嵌图片 1]
> > >> --
> > >> With Warm regards
> > >>
> > >> Yiming Liu (刘一鸣)
> > >>
> > >
> > >
> > >
> > > --
> > > With Warm regards
> > >
> > > Yiming Liu (刘一鸣)
> > >
> >
> >
> >
> > --
> > Best regards,
> >
> > Shaofeng Shi
> >
>
>
>
> --
> With Warm regards
>
> Yiming Liu (刘一鸣)
>



-- 
Best regards,

Shaofeng Shi

Re: Keep the column order when parsing the streaming message

Posted by Yiming Liu <li...@gmail.com>.
Hi Shaofeng,

Sorry for the screenshot.

The first step when defining the Stream table, user will input an example
JSON record, and click ">>" to generate Table columns.

2016-07-21 8:35 GMT+08:00 ShaoFeng Shi <sh...@apache.org>:

> Hi Yiming,
>
> the embeded screenshot couldn't show up, which step there?
>
> 2016-07-20 18:42 GMT+08:00 Yiming Liu <li...@gmail.com>:
>
> > sourceMeta.js  Line 590
> >
> > //var
> > columnList = _.sortBy(columnList, function (i) { return i.type; });
> >
> > I have no idea why the sort by type is needed. The sorted column style
> is not intuitive.
> >
> >
> > 2016-07-20 18:36 GMT+08:00 Yiming Liu <li...@gmail.com>:
> >
> >> As the attached snapshot, the parsed columns is in disorder. It seems
> the
> >> columns sorted by "Column Type". It's better if Kylin could keep the
> same
> >> column order with the origin message.
> >>
> >> [image: 内嵌图片 1]
> >> --
> >> With Warm regards
> >>
> >> Yiming Liu (刘一鸣)
> >>
> >
> >
> >
> > --
> > With Warm regards
> >
> > Yiming Liu (刘一鸣)
> >
>
>
>
> --
> Best regards,
>
> Shaofeng Shi
>



-- 
With Warm regards

Yiming Liu (刘一鸣)

Re: Keep the column order when parsing the streaming message

Posted by ShaoFeng Shi <sh...@apache.org>.
Hi Yiming,

the embeded screenshot couldn't show up, which step there?

2016-07-20 18:42 GMT+08:00 Yiming Liu <li...@gmail.com>:

> sourceMeta.js  Line 590
>
> //var
> columnList = _.sortBy(columnList, function (i) { return i.type; });
>
> I have no idea why the sort by type is needed. The sorted column style is not intuitive.
>
>
> 2016-07-20 18:36 GMT+08:00 Yiming Liu <li...@gmail.com>:
>
>> As the attached snapshot, the parsed columns is in disorder. It seems the
>> columns sorted by "Column Type". It's better if Kylin could keep the same
>> column order with the origin message.
>>
>> [image: 内嵌图片 1]
>> --
>> With Warm regards
>>
>> Yiming Liu (刘一鸣)
>>
>
>
>
> --
> With Warm regards
>
> Yiming Liu (刘一鸣)
>



-- 
Best regards,

Shaofeng Shi

Re: Keep the column order when parsing the streaming message

Posted by Yiming Liu <li...@gmail.com>.
sourceMeta.js  Line 590

//var
columnList = _.sortBy(columnList, function (i) { return i.type; });

I have no idea why the sort by type is needed. The sorted column style
is not intuitive.


2016-07-20 18:36 GMT+08:00 Yiming Liu <li...@gmail.com>:

> As the attached snapshot, the parsed columns is in disorder. It seems the
> columns sorted by "Column Type". It's better if Kylin could keep the same
> column order with the origin message.
>
> [image: 内嵌图片 1]
> --
> With Warm regards
>
> Yiming Liu (刘一鸣)
>



-- 
With Warm regards

Yiming Liu (刘一鸣)