You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Rui Wang (JIRA)" <ji...@apache.org> on 2019/07/27 22:59:00 UTC

[jira] [Comment Edited] (BEAM-7146) Build a general code generator that is accessible from all RelNode

    [ https://issues.apache.org/jira/browse/BEAM-7146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894576#comment-16894576 ] 

Rui Wang edited comment on BEAM-7146 at 7/27/19 10:58 PM:
----------------------------------------------------------

[~sridharG]

This is the big feature I mentioned to you. A general code generator would be very useful. Right now we cannot execute SELECT * FROM A JOIN B on A.col + 1 = B.col. It is because code generation (thus function execution) is deeply coupled with Projection (in BeamCalcRel). Within Join condition we have no way to execution any operator (e.g +, -) or function. 

Therefore we could build something like String CodeGenerator.generateCode(RexCall), and then use Janino to execute it.


was (Author: amaliujia):
[~sridharG]

This is the big feature I mentioned to you. A general code generator would be very useful. Right now we cannot execute SELECT * FROM A JOIN B on A.col + 1 = B.col. It is because code generation (thus function execution) is deeply coupled with Projection (in BeamCalcRel). Within Join condition we have no way to execution any operator (e.g +, -) or function. 

> Build a general code generator that is accessible from all RelNode
> ------------------------------------------------------------------
>
>                 Key: BEAM-7146
>                 URL: https://issues.apache.org/jira/browse/BEAM-7146
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Rui Wang
>            Priority: Major
>
> Right now code generation is used in Projection (in BeamCalcRel). However, code generation can be used in all places that might need to execute a function. Therefore, this JIRA propose to have a layer (called code generator) that could be used in other rels: join, aggregation, etc.
>   



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)