You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hivemall.apache.org by GitBox <gi...@apache.org> on 2020/06/02 00:24:59 UTC

[GitHub] [incubator-hivemall] myui opened a new pull request #229: [HIVEMALL-295][BUGFIX] transpose_and_dot throws UDFArgumentException for 0 rows input

myui opened a new pull request #229:
URL: https://github.com/apache/incubator-hivemall/pull/229


   ## What changes were proposed in this pull request?
   
   transpose_and_dot throws UDFArgumentException for 0 rows input.
   
   ```
   WITH INPUT AS(
     SELECT 
       ARRAY(1.0,2.0,3.0) AS X,
       ARRAY(0,1) AS Y
   )
   SELECT 
     transpose_and_dot(Y,X) AS observed
   FROM
     INPUT
   WHERE false
   
   Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.exec.UDFArgumentException
           at org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1126)
           at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
           at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
           at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
           at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
           at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
           at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.close(MapRecordProcessor.java:464)
           ... 15 more
   Caused by: org.apache.hadoop.hive.ql.exec.UDFArgumentException
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at java.lang.Class.newInstance(Class.java:442)
           at hivemall.utils.lang.Preconditions.checkNotNull(Preconditions.java:43)
           at hivemall.tools.matrix.TransposeAndDotUDAF$TransposeAndDotUDAFEvaluator.iterate(TransposeAndDotUDAF.java:172)
           at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.aggregate(GenericUDAFEvaluator.java:192)
           at org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1117)
           ... 21 more
   ```
   
   ## What type of PR is it?
   
   Bug Fix
   
   ## What is the Jira issue?
   
   https://issues.apache.org/jira/browse/HIVEMALL-295
   
   ## How was this patch tested?
   
   manual tests on EMR
   
   ## Checklist
   
   (Please remove this section if not needed; check `x` for YES, blank for NO)
   
   - [x] Did you apply source code formatter, i.e., `./bin/format_code.sh`, for your commit?
   - [x] Did you run system tests on Hive (or Spark)?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-hivemall] asfgit closed pull request #229: [HIVEMALL-295][BUGFIX] transpose_and_dot throws UDFArgumentException for 0 rows input

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #229:
URL: https://github.com/apache/incubator-hivemall/pull/229


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-hivemall] myui commented on pull request #229: [HIVEMALL-295][BUGFIX] transpose_and_dot throws UDFArgumentException for 0 rows input

Posted by GitBox <gi...@apache.org>.
myui commented on pull request #229:
URL: https://github.com/apache/incubator-hivemall/pull/229#issuecomment-638563378


   ```
   Caused by: java.lang.NullPointerException
           at hivemall.tools.matrix.TransposeAndDotUDAF$TransposeAndDotUDAFEvaluator.terminate(TransposeAndDotUDAF.java:235)
           at hivemall.tools.matrix.TransposeAndDotUDAF$TransposeAndDotUDAFEvaluator.terminatePartial(TransposeAndDotUDAF.java:226)
           at org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.evaluate(GenericUDAFEvaluator.java:208)
           at org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:1044)
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org