hive
hive copied to clipboard
HIVE-28327: Fix TruncDateFromTimestamp
What changes were proposed in this pull request?
Do null-check and skip applying truncDate() if input is null.
Why are the changes needed?
Current TimeDateFromString throws NullPointerException due to the lack of null-check.
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
Using vector_udf_trunc.q. Also I changed the test driver to TestMiniLlapLocalCliDriver, which becomes the default test driver since HIVE-23510.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication