You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Alexander Behm (JIRA)" <ji...@apache.org> on 2017/04/21 14:51:04 UTC
[jira] [Created] (IMPALA-5243) Slow codegen for wide Avro tables
Alexander Behm created IMPALA-5243:
--------------------------------------
Summary: Slow codegen for wide Avro tables
Key: IMPALA-5243
URL: https://issues.apache.org/jira/browse/IMPALA-5243
Project: IMPALA
Issue Type: Improvement
Components: Backend
Affects Versions: Impala 2.7.0, Impala 2.8.0
Reporter: Alexander Behm
Codegen gets rather expensive when scanning wide Avro tables (>500 columns), regardless of how many columns are materialized by the query.
Reproduction:
{code}
select count(int_col16) from functional_avro.widetable_250_cols;
+------------------+
| count(int_col16) |
+------------------+
| 10 |
+------------------+
Fetched 1 row(s) in 0.93s
select count(int_col16) from functional_avro.widetable_500_cols;
+------------------+
| count(int_col16) |
+------------------+
| 10 |
+------------------+
Fetched 1 row(s) in 2.87s
select count(int_col16) from widetable_1000_cols;
+------------------+
| count(int_col16) |
+------------------+
| 10 |
+------------------+
Fetched 1 row(s) in 10.58s
{code}
For the last query with 1000 columns, here's the codegen snippet from the query profile:
{code}
CodeGen:(Total: 10s115ms, non-child: 10s115ms, % non-child: 100.00%)
- CodegenTime: 530.211us
- CompileTime: 1s683ms
- LoadTime: 0.000ns
- ModuleBitcodeSize: 1.98 MB (2073044)
- NumFunctions: 32 (32)
- NumInstructions: 8.41K (8413)
- OptimizationTime: 8s416ms
- PeakMemoryUsage: 4.11 MB (4307456)
- PrepareTime: 15.357ms
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)