You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2023/05/23 16:37:00 UTC
[jira] [Resolved] (IMPALA-11785) impala-shell should produce a warning if Thrift's fastbinary package isn't working
[ https://issues.apache.org/jira/browse/IMPALA-11785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe McDonnell resolved IMPALA-11785.
------------------------------------
Fix Version/s: Impala 4.3.0
Resolution: Fixed
> impala-shell should produce a warning if Thrift's fastbinary package isn't working
> ----------------------------------------------------------------------------------
>
> Key: IMPALA-11785
> URL: https://issues.apache.org/jira/browse/IMPALA-11785
> Project: IMPALA
> Issue Type: Improvement
> Components: Clients
> Affects Versions: Impala 4.3.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 4.3.0
>
>
> Thrift's fastbinary package accelerates the binary protocol for Thrift with native code, and it can make a large difference in performance for impala-shell (and other clients). Differences in compilers or other build-time discrepancies can cause it to fail to load. When that happens, it falls back to the non-accelerated Python code.
> Currently, there is no warning when it falls back to the non-accelerated code. We should change impala-shell to issue a warning in this case. One way to do that is to try to import thrift.protocol.fastbinary and issue a warning if it fails to import.
> {noformat}
> try:
> import thrift.protocol.fastbinary
> print("Successfully imported fastbinary")
> except:
> print("Could not import fastbinary"){noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org