[
https://issues.apache.org/jira/browse/CALCITE-5241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17581806#comment-17581806
]
Jiajun Xie edited comment on CALCITE-5241 at 8/19/22 11:55 AM:
---------------------------------------------------------------
[~pfzhan] , Do you want to parse `select char(x)`? Calcite babel parser can
parse it.
{code:java}
// BabelParserTest
@Test void testCharFun() {
sql("select char(2)")
.ok("SELECT `CHAR`(2)");
} {code}
BTW, It is more appropriate to ask questions in calcite mail list:
[email protected]
was (Author: jiajunbernoulli):
[~pfzhan] , It is more appropriate to ask questions in calcite mail list:
[[email protected]|mailto:[email protected]]
Do you want to parse `select char(n)`? Calcite babel parser can parse it.
{code:java}
// BabelParserTest
@Test void testCharFun() {
sql("select char(2)")
.ok("SELECT `CHAR`(2)");
} {code}
> calcite can't support function of char(n) or {fn CHAR(string)}
> --------------------------------------------------------------
>
> Key: CALCITE-5241
> URL: https://issues.apache.org/jira/browse/CALCITE-5241
> Project: Calcite
> Issue Type: Wish
> Components: core
> Reporter: pengfei.zhan
> Priority: Major
>
> Spark and hive support `char\(n\)`, however, calcite doesn't support it. Is
> there any message I missed?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)