You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "huaicui (Jira)" <ji...@apache.org> on 2019/10/24 14:12:00 UTC
[jira] [Created] (CALCITE-3443) Doesn't parse PreparedStatement
successfully for there is placeholders in select area
huaicui created CALCITE-3443:
--------------------------------
Summary: Doesn't parse PreparedStatement successfully for there is placeholders in select area
Key: CALCITE-3443
URL: https://issues.apache.org/jira/browse/CALCITE-3443
Project: Calcite
Issue Type: Bug
Components: avatica
Affects Versions: 1.21.0
Environment: linux, mac
Reporter: huaicui
Calcite isn't able to parse the sql that there is a placeholder in select area, like this:
{
"sql":"SELECT TIMESTAMPDIFF(day, CAST('2019-01-01' AS DATE), CAST(? AS DATE))>0 as sent",
"params":[
{
"className":"java.lang.String",
"value":"2019-09-02"
}
]
}
We have a scenario that need to set palceholder in select area, please help to fix that;
--
This message was sent by Atlassian Jira
(v8.3.4#803005)