[
https://issues.apache.org/jira/browse/HIVE-25686?focusedWorklogId=681897&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-681897
]
ASF GitHub Bot logged work on HIVE-25686:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Nov/21 09:50
Start Date: 16/Nov/21 09:50
Worklog Time Spent: 10m
Work Description: zabetak closed pull request #2786:
URL: https://github.com/apache/hive/pull/2786
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 681897)
Time Spent: 20m (was: 10m)
> UDFSpace result length calculation is incorrect after HADOOP-17901 and
> HADOOP-17905
> -----------------------------------------------------------------------------------
>
> Key: HIVE-25686
> URL: https://issues.apache.org/jira/browse/HIVE-25686
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Reporter: Mark Bathori
> Assignee: Mark Bathori
> Priority: Critical
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The changes added in HADOOP-17901 and HADOOP-17905 introduced some issues in
> Hive side. UDFSpace is generating false output because the result length is
> not determined correctly. It is causing unexpected characters in the result.
> *Repro steps:*
> {code:java}
> create table t(i int);{code}
> {code:java}
> insert into t values (5),(6),(7),(8),(9),(10),(11),(12),(13),(14);{code}
> {code:java}
> select i, SPACE(i) from t;{code}
>
> Faulty output:
> {code:java}
> +-----+-----------------+
> | i | _c1 |
> +-----+-----------------+
> | 5 | |
> | 6 | |
> | 7 | |
> | 8 | |
> | 9 | |
> | 10 | |
> | 11 | |
> | 12 | |
> | 13 | |
> | 14 | |
> +-----+-----------------+
> {code}
>
> Also by using {color:#ff0000}--outputformat=csv{color} the generated file
> contains 0 ascii characters(“EOF”) instead of spaces.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)