-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CARBONDATA-4214] inserting NULL value when timestamp value received …
…from FROM_UNIXTIME(0) Why is this PR needed? Filling null in case of timestamp value is received from FROM_UNIXTIME(0) as spark original insert rdd value[internalRow] received in this case zero. if the original column value[internalRow] is zero then in insert flow adding NULL and giving NULL to spark. When query happens on the same column received NULL value instead of timestamp value. Problem code: if (internalRow.getLong(index) == 0) { internalRow.setNullAt(index) } What changes were proposed in this PR? Removed the null filling check for zero value case and if internalRow value is non null/empty then only set the internalRow timestamp value. Does this PR introduce any user interface change? No Is any new testcase added? Yes This closes #4154
- Loading branch information
1 parent
d5cb011
commit 18665cc
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters