[
https://issues.apache.org/jira/browse/IMPALA-10447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Quanlong Huang updated IMPALA-10447:
------------------------------------
Fix Version/s: Impala 4.0.0
> Missing \n every 1024 or 2048 lines when exporting output from shell to a file
> ------------------------------------------------------------------------------
>
> Key: IMPALA-10447
> URL: https://issues.apache.org/jira/browse/IMPALA-10447
> Project: IMPALA
> Issue Type: Bug
> Components: Clients
> Affects Versions: Impala 4.0.0
> Reporter: Andrew Sherman
> Assignee: Andrew Sherman
> Priority: Major
> Fix For: Impala 4.0.0
>
>
> When Impala shell exports output to a file, for example
> {code:java}
> impala-shell -B -V -q "select * from tpcds.item" -o filex.csv
> --output_delimiter=';'{code}
> then every 1024 (or maybe 2048) rows a newline is missing.
> I think the problem is here:
> [https://github.com/apache/impala/blob/9bb7157bf014282c95ab3e233b80d77e00c95b52/shell/shell_output.py#L119]
> where we now use write instead of print to output the rows.
> It may be sufficient to add a
> {code:java}
> out_file.write('\n')
> {code}
> here
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]