not like this??I said string contant ?? setQuoting(Quoting.DOUBLE_QUOTE) affect identifiers??like column name??table name??not affect string contant setQuoting(Quoting.DOUBLE_QUOTE) make select * from table1 where "column1" = 'word' Ok
------------------ ???????? ------------------ ??????: "dev" <jh...@apache.org>; ????????: 2020??12??17??(??????) ????3:48 ??????: "dev@calcite.apache.org"<dev@calcite.apache.org>; ????: Re: how to set string representation in calcite SQL?? Alessandro is correct. But also, you can set using connect-string parameters: lex=BIG_QUERY will, I believe, have the desired effect. On Wed, Dec 16, 2020 at 3:13 AM Alessandro Solimando <alessandro.solima...@gmail.com> wrote: > > Hello, > you can achieve what you want via the SqlParser configuration > (.setQuoting() method), for instance: > > private static final SqlParser.Config SQL_PARSER_CONFIG = > > SqlParser.configBuilder(SqlParser.Config.DEFAULT) > > .setCaseSensitive(false) > > .setConformance(SqlConformanceEnum.DEFAULT) > > .setQuoting(Quoting.DOUBLE_QUOTE) <---- > > .build(); > > > Hth, > Alessandro > > On Wed, 16 Dec 2020 at 09:55, ???????? <xiaoxiong....@qq.com> wrote: > > > Default ??String representation is apostrophe in calcite SQL > > ??like&nbsp;'word'. how do I set this to Double quotes ??like&nbsp;"word". > > > > Default is : > > select * from table1 where column1 = 'word' > > I hope to support?? > > select * from table1 where column1 = "word"