[
https://issues.apache.org/jira/browse/CALCITE-4776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429075#comment-17429075
]
Julian Hyde commented on CALCITE-4776:
--------------------------------------
I changed the resolution to 'won't fix'. This function *could* be implemented
in Calcite's parser, but we choose not to, currently.
> SqlParseException:WEIGHT_STRING('ab' AS CHAR(4))
> --------------------------------------------------
>
> Key: CALCITE-4776
> URL: https://issues.apache.org/jira/browse/CALCITE-4776
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.27.0
> Reporter: zhujiwen
> Assignee: duan xiong
> Priority: Blocker
>
> String sql = "SELECT WEIGHT_STRING('ab' AS CHAR(4))";
> SqlParser sqlParser = SqlParser.create(sql, config);
>
> org.apache.calcite.sql.parser.SqlParseException: Encountered "AS" at line *,
> column *.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)