[ 
https://issues.apache.org/jira/browse/IMPALA-12551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Riza Suminto closed IMPALA-12551.
---------------------------------
    Resolution: Won't Fix

After some thought, I think this is OK to ignore. The stderr also changed 
recently.
{code:java}
2025-10-16 13:11:55 [Exception] Socket error32 [Errno 32] Broken pipe
Could not execute command: show partitions store_sales
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' 
encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe {code}

> impala-shell should handle broken pipe error gracefully
> -------------------------------------------------------
>
>                 Key: IMPALA-12551
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12551
>             Project: IMPALA
>          Issue Type: Improvement
>    Affects Versions: Impala 4.3.0
>            Reporter: Riza Suminto
>            Priority: Minor
>              Labels: ramp-up
>
> Ran query inline with impala-shell.sh and stumble on broken pipe error 
> message like this:
> {code:java}
> $ impala-shell.sh -d tpcds_parquet -q "show partitions store_sales;" | head 
> -n 10 > /tmp/test.out
> Starting Impala Shell with no authentication using Python 2.7.16
> Warning: live_progress only applies to interactive shell sessions, and is 
> being skipped for now.
> Opened TCP connection to localhost:21050
> Connected to localhost:21050
> Server version: impalad version 4.4.0-SNAPSHOT DEBUG (build 
> 67ed00560d0df2282731dc47a58fb3d679ffb99b)
> Query: use `tpcds_parquet`
> Query: use `tpcds_parquet`
> Query: show partitions store_sales
> Unknown Exception : [Errno 32] Broken pipe
> Traceback (most recent call last):
>   File "/home/rsuminto/workspace/impala/shell/impala_shell.py", line 1389, in 
> _execute_stmt
>     self.output_stream.write(rows)
>   File "/home/rsuminto/workspace/impala/shell/shell_output.py", line 187, in 
> write
>     print(formatted_data)
> IOError: [Errno 32] Broken pipe
> Could not execute command: show partitions store_sales{code}
> impala-shell should gracefully handle broken pipe error like this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to