HIVE-27741 handle Invalid timezone value in to_utc_timestamp() UDF
Change-Id: I68ee1783614b4b74093df0dddb613fa860ed202a
What changes were proposed in this pull request?
The to_utc_timestamp() UDF used UTC when the given timezone was invalid. It throws exception in this case to avoid data inconsistency.
Why are the changes needed?
To avoid data inconsistency in case of invalid timezone.
Does this PR introduce any user-facing change?
Yes. The to_utc_timestamp() UDF will throw exception in case of invalid timezone.
Is the change a dependency upgrade?
No.
How was this patch tested?
Unit test.
@okumin @simhadri-g could you please review?
@okumin @simhadri-g could you please review? Refactored to use ZoneId instead of TimeZone.
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
@okumin @simhadri-g could you please review this?
Looks good to me. Note that you finally need approval from a committer
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication