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

[jira] [Commented] (FLINK-12810) Support to run a TableAPI query like 'table.select('a, 'b, 'c)'

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

Aljoscha Krettek commented on FLINK-12810:
------------------------------------------

What is this issue about? Steps 1 - 4 seem to make sense but step 5 is temporary and maybe doesn't make sense to have in the long run.

> Support to run a TableAPI query like 'table.select('a, 'b, 'c)'
> ---------------------------------------------------------------
>
>                 Key: FLINK-12810
>                 URL: https://issues.apache.org/jira/browse/FLINK-12810
>             Project: Flink
>          Issue Type: Task
>            Reporter: Jing Zhang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Support to run a TableAPI query like 'table.select('a, 'b, 'c)', including:
> 1. add RexNodeConverter to convert Expression to RexNode
> 2. Introduce RexPlannerExpression to wraps a RexNode, which is similar to RexPlannerExpression in flink-planner module.
> 3. add QueryOperationConverter to convert QueryOperation tree to RelNode
> 4. Introduce PlannerQueryOperation to wraps a RelNode in QueryOperation, which is similar to PlannerQueryOperation in flink-planner module.
> 5. add OperationTreeBuilder and relative classes(ExpressionResolver, TableReferenceLookup, FieldReferenceLoopup, ExpandColumnFunctionsRule, LookupCallByNameRule, ResolverRule, StarReferenceFlattingRule, VerifyNoUnresolvedExpressionRule), which is almost copy from flink-planner module to blink-planner module, except that we remove dependency on PlannerExpression. **Note: This is temporal solution, since OperationTreeBuilder will be moved to api module finally.**
> 6. add implicit conversion in expressionDsl



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