ttttttz has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20709


Change subject: IMPALA-12565: Fix crash triggered by calling pmod() UDF
......................................................................

IMPALA-12565: Fix crash triggered by calling pmod() UDF

When the pmod() UDF is called, if the divisor is 0, it will
cause the impalad to crash. In this case, the result of the
pmod() UDF should be NULL.

Tests:
* add a test in exprs.test

Change-Id: Idcc274564a4b5b0872eb0c0c882c2f15e3247785
---
M be/src/exprs/math-functions-ir.cc
M testdata/workloads/functional-query/queries/QueryTest/exprs.test
2 files changed, 10 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/09/20709/1
--
To view, visit http://gerrit.cloudera.org:8080/20709
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idcc274564a4b5b0872eb0c0c882c2f15e3247785
Gerrit-Change-Number: 20709
Gerrit-PatchSet: 1
Gerrit-Owner: ttttttz <2433038...@qq.com>

Reply via email to