RE: Get 100 items in Comma Separated strings from Hive Column.

2016-06-11 Thread Markovitz, Dudu
You are welcomed Dudu From: Mahender Sarangam [mailto:mahender.bigd...@outlook.com] Sent: Friday, June 10, 2016 8:55 PM To: user@hive.apache.org Subject: Re: Get 100 items in Comma Separated strings from Hive Column. Thanks Dudu. This is wonderful explaination. I'm very thankful On 6/10

Re: Get 100 items in Comma Separated strings from Hive Column.

2016-06-10 Thread Mahender Sarangam
ckets (ordered by the opening brackets) From: Mahender Sarangam [mailto:mahender.bigd...@outlook.com] Sent: Friday, June 10, 2016 2:54 PM To: user@hive.apache.org<mailto:user@hive.apache.org> Subject: Re: Get 100 items in Comma Separated strings from Hive Column. Thanks Dudu. I will check

RE: Get 100 items in Comma Separated strings from Hive Column.

2016-06-10 Thread Markovitz, Dudu
June 10, 2016 2:54 PM To: user@hive.apache.org Subject: Re: Get 100 items in Comma Separated strings from Hive Column. Thanks Dudu. I will check. Can you please throw some light on regexp_replace (((,?[^,]*){0,10}).*','$1') regexp_extract ('(,?[^,]*){0,10}',0), On 6/9/2

Re: Get 100 items in Comma Separated strings from Hive Column.

2016-06-10 Thread Mahender Sarangam
m: Markovitz, Dudu [mailto:dmarkov...@paypal.com] Sent: Thursday, June 09, 2016 11:30 PM To: user@hive.apache.org<mailto:user@hive.apache.org> Subject: RE: Get 100 items in Comma Separated strings from Hive Column. ---

RE: Get 100 items in Comma Separated strings from Hive Column.

2016-06-09 Thread Markovitz, Dudu
kov...@paypal.com] Sent: Friday, June 10, 2016 9:34 AM To: user@hive.apache.org Subject: RE: Get 100 items in Comma Separated strings from Hive Column. + Improvement The “Count” can be done in a cleaner way (The previous way works also with simple ‘replace’) hive> select RowID,length(r

RE: Get 100 items in Comma Separated strings from Hive Column.

2016-06-09 Thread Markovitz, Dudu
17 5 8 6 11 7 26 8 18 9 9 From: Markovitz, Dudu [mailto:dmarkov...@paypal.com] Sent: Thursday, June 09, 2016 11:30 PM To: user@hive.apache.org Subject: RE: Get 100 items in Comma Separated s

RE: Get 100 items in Comma Separated strings from Hive Column.

2016-06-09 Thread Markovitz, Dudu
-- bash mkdir t cat>t/data.txt 1|44,85 2|56,37,83,68,43 3|33,48,42,18,23,80,31,86,48,42,37,52,9