Uploaded image for project: 'Hivemall'
  1. Hivemall
  2. HIVEMALL-165

array_remove UDF throws exception when the first argument is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Labels:
      None

      Description

      The following error caused where the first argument is null.

      Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to execute method public java.util.List hivemall.tools.array.ArrayRemoveUDF.evaluate(java.util.List,org.apache.hadoop.io.Text)  on object hivemall.tools.array.ArrayRemoveUDF@54e2fe of class hivemall.tools.array.ArrayRemoveUDF with arguments {null, :org.apache.hadoop.io.Text} of size 2
          at org.apache.hadoop.hive.ql.exec.FunctionRegistry.invoke(FunctionRegistry.java:1251)
          at org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge.evaluate(GenericUDFBridge.java:182)
          at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator._evaluate(ExprNodeGenericFuncEvaluator.java:166)
          at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:77)
          at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator$DeferredExprObject.get(ExprNodeGenericFuncEvaluator.java:77)
          at org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge.evaluate(GenericUDFBridge.java:178)
          at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator._evaluate(ExprNodeGenericFuncEvaluator.java:166)
          at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:77)
          at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:65)
          at org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:79)
          at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:793)
          at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:92)
          at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:793)
          at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:539)
          ... 9 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                myui Makoto Yui
                Reporter:
                myui Makoto Yui
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: