hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-28327: Fix TruncDateFromTimestamp

Open ngsg opened this issue 1 year ago • 1 comments

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.

ngsg avatar Jun 14 '24 05:06 ngsg

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Jun 14 '24 07:06 sonarqubecloud[bot]