You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Teddy Choi (JIRA)" <ji...@apache.org> on 2018/12/06 15:04:00 UTC
[jira] [Updated] (HIVE-20827) Inconsistent results for empty arrays
[ https://issues.apache.org/jira/browse/HIVE-20827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Teddy Choi updated HIVE-20827:
------------------------------
Resolution: Fixed
Fix Version/s: 4.0.0
Status: Resolved (was: Patch Available)
> Inconsistent results for empty arrays
> -------------------------------------
>
> Key: HIVE-20827
> URL: https://issues.apache.org/jira/browse/HIVE-20827
> Project: Hive
> Issue Type: Bug
> Reporter: Teddy Choi
> Assignee: Teddy Choi
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Attachments: HIVE-20827.1.patch
>
>
> LazySimpleDeserializeRead parses an empty array wrong. For example, a line ',' in a text file table with a delimiter ',' and schema 'array<int>, array<array<string>>' shows \[null\], \[\[""\]\], instead of \[\], \[\] with MapReduce engine and vectorized execution enabled. LazySimpleDeserializeRead has following code;
> {code:java}
> switch (complexField.complexCategory) {
> case LIST:
> {
> // Allow for empty string, etc.
> final boolean isNext = (fieldPosition <= complexFieldEnd);
> {code}
> Empty string value read should be only applied to string families, not to other data types.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)