其他分享
首页 > 其他分享> > [Apache Calcite] 创建RelOptSchema

[Apache Calcite] 创建RelOptSchema

作者:互联网

 

RelOptSchema在Calcite里面是通过CatalogReader表达

    final JavaTypeFactory typeFactory = prepareContext.getTypeFactory();
    final CalciteSchema schema =
        config.getDefaultSchema() != null
            ? CalciteSchema.from(config.getDefaultSchema())
            : prepareContext.getRootSchema();
    CalciteCatalogReader catalogReader =
        new CalciteCatalogReader(schema.root(),
            schema.path(null),
            typeFactory,
            prepareContext.config());

 

junwen12221 发布了110 篇原创文章 · 获赞 0 · 访问量 2622 私信 关注

标签:RelOptSchema,CalciteCatalogReader,prepareContext,Apache,typeFactory,Calcite,conf
来源: https://blog.csdn.net/qq_31183071/article/details/104197276