|
|
chenchun 2013-03-14, 07:44
Hi, I have a question about HIVE-3675 NaN does not work correctly for round(n). The issue did solve the NaN problem, but the hql below result in a different display with hive0.10. I checked the code UDFRound.java, found the function "LongWritable evaluate(DoubleWritable n)" changed to "DoubleWritable evaluate(DoubleWritable n) ". I think it maybe better to add a "LongWritable evaluate(LongWritable n)" function and modify the toString function of LongWritable that could solve the problem. select round(1234560), round(12345670) from test limit 1;
//hive 0.10 1234560.0 1.234567E7
//hive 0.9 1234560 12345670
select round(cast(1234560 as BIGINT)), round(cast(12345670 as BIGINT)) from test limit 1;
//hive 0.10 1234560.0 1.234567E7 regards, chenchun
-
Re: Round function display
Mark Grover 2013-03-14, 14:20
Hi chenchun, About the second part of your question, I agree that we should change it. I checked MySQL and it returns the same type as was sent to the round function. I created https://issues.apache.org/jira/browse/HIVE-4174 to track this. It's presently assigned to me but if you like to contribute a patch (along with updated tests), please feel free to steal it from me. Mark On Thu, Mar 14, 2013 at 12:44 AM, chenchun <[EMAIL PROTECTED]> wrote: > Hi, > I have a question about HIVE-3675 NaN does not work correctly for round(n). > The issue did solve the NaN problem, but the hql below result in a different > display with hive0.10. > I checked the code UDFRound.java, found the function "LongWritable > evaluate(DoubleWritable n)" changed to "DoubleWritable > evaluate(DoubleWritable n) ". > I think it maybe better to add a "LongWritable evaluate(LongWritable n)" > function and modify the toString function of LongWritable that could solve > the problem. > > > select round(1234560), round(12345670) from test limit 1; > > //hive 0.10 > 1234560.0 1.234567E7 > > //hive 0.9 > 1234560 12345670 > > select round(cast(1234560 as BIGINT)), round(cast(12345670 as BIGINT)) from > test limit 1; > > //hive 0.10 > 1234560.0 1.234567E7 > > > regards, > chenchun >
-
回复: Round function display
chenchun 2013-03-14, 16:58
Cool, I'd like to steal it from you. I'd like to get a few days to solve it but how I can assigne it to me ? regards, chenchun 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > round function. > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > this. It's presently assigned to me but if you like to
-
Re: 回复: Round function display
Mark Grover 2013-03-14, 17:01
Someone will have to add you to the project contributors on JIRA. Could you please share your JIRA account ID and email address? Mark On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED]> wrote: > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > but how I can assigne it to me ? > > regards, > chenchun > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > round function. > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > this. It's presently assigned to me but if you like to > >
-
回复: Round function display
chenchun 2013-03-15, 02:31
Sorry, it's a bit late last night and it's funny to realize that we works for the whole daytime and you guys just begin at night. What a round earth ! Username: chenchun Email: [EMAIL PROTECTED] regards, chenchun 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > Someone will have to add you to the project contributors on JIRA. > Could you please share your JIRA account ID and email address? > > Mark > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > > but how I can assigne it to me ? > > > > regards, > > chenchun > > > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > > > > round function. > > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > > this. It's presently assigned to me but if you like to > > > > >
-
回复: Round function display
chenchun 2013-03-16, 11:21
Hi Mark, I made a patch along with updated tests today, see the attachment. Hope it works. Thanks. regards, chenchun 在 星期五, 15 3月, 2013,10:31 AM,chenchun 写道: > Sorry, it's a bit late last night and it's funny to realize that we works for the whole daytime and you guys just begin at night. What a round earth ! > > Username: chenchun > Email: [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED]) > > regards, > chenchun > > > 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > > > Someone will have to add you to the project contributors on JIRA. > > Could you please share your JIRA account ID and email address? > > > > Mark > > > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > > > but how I can assigne it to me ? > > > > > > regards, > > > chenchun > > > > > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > > > > > > > round function. > > > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > > > this. It's presently assigned to me but if you like to > > > > > > > > > > > > >
-
Re: 回复: Round function display
Mark Grover 2013-03-17, 16:32
Hi Chenchun, Can you please: 1. Send a separate email to this same mailing list to add you as a contributor to the JIRA? I don't have credentials to do so and seems like other people are not watching this thread:-) 2. Upload this patch to the JIRA? Thanks! Mark On Sat, Mar 16, 2013 at 4:21 AM, chenchun <[EMAIL PROTECTED]> wrote: > Hi Mark, > I made a patch along with updated tests today, see the attachment. Hope it > works. Thanks. > > regards, > chenchun > > 在 星期五, 15 3月, 2013,10:31 AM,chenchun 写道: > > Sorry, it's a bit late last night and it's funny to realize that we works > for the whole daytime and you guys just begin at night. What a round earth ! > > Username: chenchun > Email: [EMAIL PROTECTED] > > regards, > chenchun > > 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > > Someone will have to add you to the project contributors on JIRA. > Could you please share your JIRA account ID and email address? > > Mark > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED]> wrote: > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > but how I can assigne it to me ? > > regards, > chenchun > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > round function. > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > this. It's presently assigned to me but if you like to > > >
-
回复: Round function display
chenchun 2013-03-17, 17:19
Hi Mark, Sure, I have add the attachment to the issue and send a mail to apply to become the contributor to the JIRA. Thanks. regards, chenchun 在 星期一, 18 3月, 2013,12:32 AM,Mark Grover 写道: > Hi Chenchun, > Can you please: > 1. Send a separate email to this same mailing list to add you as a > contributor to the JIRA? I don't have credentials to do so and seems > like other people are not watching this thread:-) > 2. Upload this patch to the JIRA? > > Thanks! > Mark > > On Sat, Mar 16, 2013 at 4:21 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > Hi Mark, > > I made a patch along with updated tests today, see the attachment. Hope it > > works. Thanks. > > > > regards, > > chenchun > > > > 在 星期五, 15 3月, 2013,10:31 AM,chenchun 写道: > > > > Sorry, it's a bit late last night and it's funny to realize that we works > > for the whole daytime and you guys just begin at night. What a round earth ! > > > > Username: chenchun > > Email: [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED]) > > > > regards, > > chenchun > > > > 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > > > > Someone will have to add you to the project contributors on JIRA. > > Could you please share your JIRA account ID and email address? > > > > Mark > > > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > > but how I can assigne it to me ? > > > > regards, > > chenchun > > > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > > > > round function. > > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > > this. It's presently assigned to me but if you like to > > > > >
-
回复: Round function display
chenchun 2013-03-25, 16:36
Hi mark, I read the the wiki of PhabricatorCodeReview https://cwiki.apache.org/confluence/display/Hive/PhabricatorCodeReview and send a review https://reviews.facebook.net/D9687 for the issue. In this process I encountered a few problems with arc, the code of arc cloned from github is not in the right version that I had to checkout the code of libphutil and archaist to the old version to send the review. I think maybe you can update the wiki for other people may also be confused. 1. libphutil v1 libraries are no longer supported. //libphutil git checkout 870bcc76434410344d27a3fa4604ac96200bf7f6 2. Call to undefined method ArcanistGitAPI parseRelativeLocalCommit() //arcanist git checkout 6f6fde84cc530c2b51f095d9636b9e15301519a1 regards, chenchun 在 星期一, 18 3月, 2013,1:19 AM,chenchun 写道: > Hi Mark, > Sure, I have add the attachment to the issue and send a mail to apply to become the contributor to the JIRA. Thanks. > > regards, > chenchun > > > 在 星期一, 18 3月, 2013,12:32 AM,Mark Grover 写道: > > > Hi Chenchun, > > Can you please: > > 1. Send a separate email to this same mailing list to add you as a > > contributor to the JIRA? I don't have credentials to do so and seems > > like other people are not watching this thread:-) > > 2. Upload this patch to the JIRA? > > > > Thanks! > > Mark > > > > On Sat, Mar 16, 2013 at 4:21 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > > Hi Mark, > > > I made a patch along with updated tests today, see the attachment. Hope it > > > works. Thanks. > > > > > > regards, > > > chenchun > > > > > > 在 星期五, 15 3月, 2013,10:31 AM,chenchun 写道: > > > > > > Sorry, it's a bit late last night and it's funny to realize that we works > > > for the whole daytime and you guys just begin at night. What a round earth ! > > > > > > Username: chenchun > > > Email: [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED]) > > > > > > regards, > > > chenchun > > > > > > 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > > > > > > Someone will have to add you to the project contributors on JIRA. > > > Could you please share your JIRA account ID and email address? > > > > > > Mark > > > > > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED] (mailto:[EMAIL PROTECTED])> wrote: > > > > > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > > > but how I can assigne it to me ? > > > > > > regards, > > > chenchun > > > > > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > > > > > > > round function. > > > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > > > this. It's presently assigned to me but if you like to > > > > > > > > > > > > >
-
Re: 回复: Round function display
Mark Grover 2013-04-02, 15:26
Hi Chenchun, Sorry for the super delayed response. Ideally, I would have given you permissions to edit the wiki but I don't have the privileges to do so. For now, I have edited the wiki on your behalf and added the FAQ section on the page with your suggestions: https://cwiki.apache.org/confluence/display/Hive/PhabricatorCodeReview#PhabricatorCodeReview-FAQsThank you so much for your contributions, if you have other documentation/wiki you'd like to update, I would strongly encourage you to send an email to the user and dev mailing list with your wiki username so one of the committers can grant you permissions to edit the wiki. Thanks again! Mark On Mon, Mar 25, 2013 at 9:36 AM, chenchun <[EMAIL PROTECTED]> wrote: > Hi mark, > I read the the wiki of PhabricatorCodeReview > https://cwiki.apache.org/confluence/display/Hive/PhabricatorCodeReview and > send a review https://reviews.facebook.net/D9687 for the issue. > In this process I encountered a few problems with arc, the code of arc > cloned from github is not in the right version that I had to checkout the > code of libphutil and archaist to the old version to send the review. I > think maybe you can update the wiki for other people may also be confused. > 1. libphutil v1 libraries are no longer supported. > //libphutil > git checkout 870bcc76434410344d27a3fa4604ac96200bf7f6 > > 2. Call to undefined method ArcanistGitAPI parseRelativeLocalCommit() > //arcanist > git checkout 6f6fde84cc530c2b51f095d9636b9e15301519a1 > > regards, > chenchun > > 在 星期一, 18 3月, 2013,1:19 AM,chenchun 写道: > > Hi Mark, > Sure, I have add the attachment to the issue and send a mail to apply to > become the contributor to the JIRA. Thanks. > > regards, > chenchun > > 在 星期一, 18 3月, 2013,12:32 AM,Mark Grover 写道: > > Hi Chenchun, > Can you please: > 1. Send a separate email to this same mailing list to add you as a > contributor to the JIRA? I don't have credentials to do so and seems > like other people are not watching this thread:-) > 2. Upload this patch to the JIRA? > > Thanks! > Mark > > On Sat, Mar 16, 2013 at 4:21 AM, chenchun <[EMAIL PROTECTED]> wrote: > > Hi Mark, > I made a patch along with updated tests today, see the attachment. Hope it > works. Thanks. > > regards, > chenchun > > 在 星期五, 15 3月, 2013,10:31 AM,chenchun 写道: > > Sorry, it's a bit late last night and it's funny to realize that we works > for the whole daytime and you guys just begin at night. What a round earth > ! > > Username: chenchun > Email: [EMAIL PROTECTED] > > regards, > chenchun > > 在 星期五, 15 3月, 2013,1:01 AM,Mark Grover 写道: > > Someone will have to add you to the project contributors on JIRA. > Could you please share your JIRA account ID and email address? > > Mark > > On Thu, Mar 14, 2013 at 9:58 AM, chenchun <[EMAIL PROTECTED]> wrote: > > Cool, I'd like to steal it from you. I'd like to get a few days to solve it > but how I can assigne it to me ? > > regards, > chenchun > > 在 星期四, 14 3月, 2013,10:20 PM,Mark Grover 写道: > > > round function. > I created https://issues.apache.org/jira/browse/HIVE-4174 to track > this. It's presently assigned to me but if you like to > > > >
|
|