简体   繁体   English

如何从方解石解析器中优雅地删除引号?

[英]how to remove quote gracefully from calcite parser?

I have a table and I am trying to parse it's create statement like我有一张桌子,我正在尝试解析它的 create 语句,例如在此处输入图像描述

As we seen, all fields of this sqlNode are quoted by ` .正如我们所见,这个 sqlNode 的所有字段都用 ` 引用。 But this is not what I want但这不是我想要的

How to remove all the quotes by SqlWriterConfig?如何通过 SqlWriterConfig 删除所有引号? thanks谢谢

In SqlWriterConfig, there is:在 SqlWriterConfig 中,有:

/** Sets {@link #quoteAllIdentifiers}. */
SqlWriterConfig withQuoteAllIdentifiers(boolean quoteAllIdentifiers);

you can pass argument as false .您可以将参数传递为false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM