[
https://issues.apache.org/jira/browse/CALCITE-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722428#comment-17722428
]
yiku123 commented on CALCITE-5687:
----------------------------------
i provide github pull request #3200 to solved this problem,
this contains example class : org.apache.calcite.adapter.csv.CsvLazySchema
、CsvLazySchemaFactory
and some test
case:testSelectByLazyScheme、testSelectByLazySchemeCaseSensitive、testDateTypeLazySchemeCopy
by the way,currently i just provide lazy get table scheme,maybe funtions can
also delay to get.
but I don't have any ideas about cache invalidation or read-consistency
[~julianhyde] ,actually these need to handle by self in lazy scheme .
> lazy get scheme
> ---------------
>
> Key: CALCITE-5687
> URL: https://issues.apache.org/jira/browse/CALCITE-5687
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.34.0
> Reporter: yiku123
> Assignee: yiku123
> Priority: Major
> Fix For: 1.35.0
>
>
> scence:now i use calcite on my web application
> use and problem :when rewrite
> org.apache.calcite.schema.impl.AbstractSchema#getTableMap method ,i must to
> provide all table scheme informations,but i only want to provide scheme
> when my SQL actually use a table。because i don't want my application load
> many schemes event if not to use.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)