[
https://issues.apache.org/jira/browse/PIG-3579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aniket Mokashi moved MAPREDUCE-5629 to PIG-3579:
------------------------------------------------
Key: PIG-3579 (was: MAPREDUCE-5629)
Project: Pig (was: Hadoop Map/Reduce)
> pig.script's deserialized version does not maintain line numbers
> ----------------------------------------------------------------
>
> Key: PIG-3579
> URL: https://issues.apache.org/jira/browse/PIG-3579
> Project: Pig
> Issue Type: Bug
> Reporter: Aniket Mokashi
>
> If pig.script is decoded with base64, it loses line numbers because the
> buffered reader that adds the lines, removes '\n's.
> {code}
> ScriptState.java#setScript
> protected void setScript(BufferedReader reader) {
> StringBuilder sb = new StringBuilder();
> try {
> String line = reader.readLine();
> while (line != null) {
> if (line.length() > 0) {
> sb.append(line).append("\n");
> }
> line = reader.readLine();
> }
> } catch (IOException e) {
> LOG.warn("unable to parse the script", e);
> }
> setScript(sb.toString());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)