You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Matthew Jacobs (JIRA)" <ji...@apache.org> on 2017/08/21 19:43:00 UTC

[jira] [Created] (IMPALA-5821) Improve printing predicate constants in plan

Matthew Jacobs created IMPALA-5821:
--------------------------------------

             Summary: Improve printing predicate constants in plan
                 Key: IMPALA-5821
                 URL: https://issues.apache.org/jira/browse/IMPALA-5821
             Project: IMPALA
          Issue Type: Improvement
          Components: Frontend
    Affects Versions: Impala 2.8.0
            Reporter: Matthew Jacobs
            Priority: Minor


In this plan, it wasn't clear that the constant in the predicate was being evaluated to a double. Then the lhs required an implicit cast, and the predicate couldn't be pushed to Kudu:
{code}
[localhost:21000] > explain select * from functional_kudu.alltypestiny where bigint_col < 1000 / 100;
Query: explain select * from functional_kudu.alltypestiny where bigint_col < 1000 / 100
+---------------------------------------------+
| Explain String                              |
+---------------------------------------------+
| Per-Host Resource Reservation: Memory=0B    |
| Per-Host Resource Estimates: Memory=10.00MB |
| Codegen disabled by planner                 |
|                                             |
| PLAN-ROOT SINK                              |
| |                                           |
| 00:SCAN KUDU [functional_kudu.alltypestiny] |
|    predicates: bigint_col < 10              |
+---------------------------------------------+
{code}

We should make it more clear by printing this as a double, e.g. 
predicates: bigint_col < 10.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)