You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Andrew Sherman (JIRA)" <ji...@apache.org> on 2019/02/06 17:18:00 UTC

[jira] [Resolved] (IMPALA-8103) Plan hints show up as "--" comments in analysed query

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

Andrew Sherman resolved IMPALA-8103.
------------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 3.2.0

> Plan hints show up as "--" comments in analysed query
> -----------------------------------------------------
>
>                 Key: IMPALA-8103
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8103
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>            Reporter: Tim Armstrong
>            Assignee: Andrew Sherman
>            Priority: Minor
>             Fix For: Impala 3.2.0
>
>
> I noticed that the hints added in IMPALA-5821 show up in the -- style rather than /**/
> {code}
>     Sql Statement: select * from tpch.lineitem join /*+ broadcast */ tpch.part on l_partkey = p_partkey limit 
> ...
> Analyzed query: SELECT * FROM tpch.lineitem INNER JOIN
> -- +broadcast
> tpch.part ON l_partkey = p_partkey LIMIT CAST(5 AS TINYINT)
> {code}
> I guess this works and maybe its fine, but I was really confused when I saw it. It looks like getPlanHintsSql() uses this to generate views in such a way that Hive will ignore the hints, but that concern doesn't seem relevant to this use case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)