[
https://issues.apache.org/jira/browse/CALCITE-7513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079751#comment-18079751
]
Julian Hyde commented on CALCITE-7513:
--------------------------------------
The {{interface ScannableTable}} is intended to let some one build a very
simple table (and not have to write any planner rules), whereas if a table
supports streaming its implementation is going to be complex and involve
several planner rules.
I think this feature would be almost impossible to implement. (Akin to 'Allow
my Toyota Camry to fly and travel underwater'. Reasonable to want, but the
engineering difficulty would make the resulting product too
expensive/unreliable for anyone to actually want the result.)
This would have been better as a question on the dev list rather than a feature
request.
> Support tables that can be relational and streamable?
> -----------------------------------------------------
>
> Key: CALCITE-7513
> URL: https://issues.apache.org/jira/browse/CALCITE-7513
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.41.0
> Reporter: Stephen Buergler
> Priority: Minor
>
> I don't know much about calcite yet so if there is a reason to not do this
> let me know.
> Currently it looks like you can't make a Table implement ScannableTable and
> StreamableTable. It fails validation when you select from it because
> org.apache.calcite.prepare.RelOptTableImpl#supportsModality says the modality
> isn't supported. I think it would make more sense if that tested to see if
> the Table implements one of the selectable interfaces rather than the current
> {code:java}
> !(table instanceof StreamableTable)
> {code}
> .
--
This message was sent by Atlassian Jira
(v8.20.10#820010)