You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Bikramjeet Vig (JIRA)" <ji...@apache.org> on 2017/11/09 22:32:00 UTC

[jira] [Created] (IMPALA-6177) Clean up handcrafted IRs if they encounter error during creation

Bikramjeet Vig created IMPALA-6177:
--------------------------------------

             Summary: Clean up handcrafted IRs if they encounter error during creation
                 Key: IMPALA-6177
                 URL: https://issues.apache.org/jira/browse/IMPALA-6177
             Project: IMPALA
          Issue Type: Improvement
          Components: Backend
            Reporter: Bikramjeet Vig
            Assignee: Bikramjeet Vig


Some Codegen() calls in exec nodes might encounter an error and return early. This cause a half baked/ malformed IR to be generated that could likely add to query compilation time.

An example would be in the case of a table with a column of char datatype and query:

{code:sql}
select * from charTable A, charTable B where A.charColumn = B.charColumn and A.charColumn = 'foo';
{code}

this query tries to create a runtime filter for the char column, but returns in the middle of crafting the IR because it realizes that 'char' type is not supported. This cause an incomplete IR to be created that looks like this:

{noformat}
define void @InsertRuntimeFilters(%"class.impala::PhjBuilder"* %this, %"class.impala::TupleRow"* %row) {
entry:
}
{noformat}

the objective of this task would be to identify such cases and clean up and remove such incomplete IR methods from the module.



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