Apache Calcite 设置schema

287 阅读1分钟
org.apache.calcite.prepare.CalciteCatalogReader
  public CalciteCatalogReader(CalciteSchema rootSchema,
      List<String> defaultSchema, RelDataTypeFactory typeFactory, CalciteConnectionConfig config) {
    this(rootSchema, SqlNameMatchers.withCaseSensitive(config != null && config.caseSensitive()),
        ImmutableList.of(Objects.requireNonNull(defaultSchema),
            ImmutableList.of()),
        typeFactory, config);
  }

 

org.apache.calcite.prepare.CalciteCatalogReader#withSchemaPath

都可以设置schema