0

Apache Ignite doesn't support creating schema with DDL yet. So is there any way I can create a new schema in runtime? I tried to add a template cache configuration in a thick client, but schema config doesn't work.

CacheConfigration cfg = new CacheConfigration();
cfg.setName("MyTemplte*");
cfg.setSqlSchema("NEW_SCHEMA");
ignite.addCacheConfigration(cfg);
Elinkli
  • 3
  • 1

1 Answers1

1

Use ignite.createCache(cfg) or ignite.getOrCreateCache(cfg) to create a new cache with the specified schema.

addCacheConfiguration only creates a template, but does not create any schemas or caches.

See https://ignite.apache.org/docs/latest/SQL/schemas for more details.

Pavel Tupitsyn
  • 8,393
  • 3
  • 22
  • 44