Skip to content

Commit

Permalink
HIVE-28327: Missing null-check in TruncDateFromTimestamp (Seonggon Na…
Browse files Browse the repository at this point in the history
…mgung, reviewed by Denys Kuzmenko, Shohei Okumiya)

Closes #5300
  • Loading branch information
ngsg authored Jul 19, 2024
1 parent 4835968 commit a61af0a
Show file tree
Hide file tree
Showing 3 changed files with 569 additions and 426 deletions.
1 change: 0 additions & 1 deletion itests/src/test/resources/testconfiguration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ mr.query.files=\
udf_count.q,\
udf_using.q,\
uniquejoin.q,\
vector_udf_trunc.q,\
windowing_windowspec.q

encrypted.query.files=\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ public void evaluate(VectorizedRowBatch batch) throws HiveException {
for (int j = 0; j != n; j++) {
int i = sel[j];
outputIsNull[i] = inputIsNull[i];
truncDate(inputColVector, outputColVector, i);
if (!inputIsNull[i]) {
truncDate(inputColVector, outputColVector, i);
}
}
} else {
System.arraycopy(inputIsNull, 0, outputIsNull, 0, n);
Expand Down
Loading

0 comments on commit a61af0a

Please sign in to comment.