You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/01/18 19:58:00 UTC

[jira] [Commented] (CALCITE-2141) Implement query rewrite based on sharding configuration

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

Julian Hyde commented on CALCITE-2141:
--------------------------------------

I strongly support this. I think a motivating example would help a lot. Can you create an example which includes a sharding strategy, an example query, and how that query would be pruned and/or decomposed to a UNION?

Note that the RelDistribution trait can represent certain kinds of sharding.

> Implement query rewrite based on sharding configuration
> -------------------------------------------------------
>
>                 Key: CALCITE-2141
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2141
>             Project: Calcite
>          Issue Type: New Feature
>            Reporter: Christian Beikov
>            Assignee: Julian Hyde
>            Priority: Minor
>
> Based on topology changes, it should be possible to dynamically update a sharding configuration for calcite. The effect of such a configuration is, that a query involving sharded tables is rewritten to a more optimal form possibly targetting mutliple different datasources.
> This is an interesting building block for distributed databases but also for applications since it enables the implementation of a static sharding scheme. Doing the shard rewriting on a client is also a lot better when using a distributed database as that eliminates the need for a coordinator node through which data is tunneled.
> Also see [https://github.com/shardingjdbc/sharding-jdbc] for an existing implementation.



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