我试过了
CacheConfiguration<?, ?> cacheCfg = new CacheConfiguration<>(cacheTemplateName).setSqlSchema("PUBLIC"); //create table can only be executed on public schema
cacheCfg.setSqlEscapeAll(false); //otherwise ignite tries to quote after we've quoted and there are cases we have to quote before ignite gets it
cacheCfg.setCacheMode(CacheMode.PARTITIONED);
ignite.addCacheConfiguration(cacheCfg); //required to register cacheTemplateName as a template, see WITH section of https://apacheignite-sql.readme.io/docs/create-table
不幸的是,我尝试的一切似乎都不起作用。我已经调试通过并且isSqlEscapeAll()
总是返回true。在CREATE TABLE
我设置的声明中仅供参考TEMPLATE=MyTPLName
。
是否可以禁用此行为?我的查询已经被适当引用。
此标志不适用于动态缓存,因为它可能会导致表名有些不明确,这在 Ignite 开发列表上的此线程中进行了描述:http : //apache-ignite-developers.2346864.n4.nabble.com/Remove- deprecate-CacheConfiguration-sqlEscapeAll-property-td17966.html
顺便问一下,你想用这个标志解决什么问题?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句