flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wuchong <...@git.apache.org>
Subject [GitHub] flink issue #3149: FLINK-2168 Add HBaseTableSource
Date Wed, 01 Feb 2017 15:41:46 GMT
Github user wuchong commented on the issue:

    Sorry for the late response. 
    Regarding to the `HBaseTableSchema`, I agree with that to move the `addColumn(...)` method
into `HBaseTableSource`. 
    Regarding to the nested vs flat schema, I prefer the nested schema. It is more intuitive
to use.
    As for the nested schema doesn't support to push projections down, I think we should extend
`ProjectableTableSource` to support push projections down to a composite type. We can keep
the interface unchanged, i.e. `def projectFields(fields: Array[Int]): ProjectableTableSource[T]`.
But the index of `fields` should be the flat index. We can use the flat field indexes to do
projection pushdown even if it is a nested schema.
    For example, a table source with schema `a: Int, b: Row<b1: String, b2: Int>, c:
Boolean`, the flat indexes of `a, b.b1, b.b2, c` are `0, 1, 2, 3`. So a project `SELECT b.b1,
c FROM T` will result a `fields` `Array(1,3)`.
    What do you think ? 
    For me the biggest drawback of a nested schema is the lacking support to push projections

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message