[ 
https://issues.apache.org/jira/browse/CALCITE-6509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CALCITE-6509:
------------------------------------
    Labels: pull-request-available  (was: )

> MongoAdapter throws 'Invalid JSON Number' exception if first character of 
> field name is number
> ----------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6509
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6509
>             Project: Calcite
>          Issue Type: Bug
>          Components: mongodb-adapter
>    Affects Versions: 1.37.0
>            Reporter: Dmitry Sysolyatin
>            Assignee: Dmitry Sysolyatin
>            Priority: Major
>              Labels: pull-request-available
>
> MongoAdapter throws 'Invalid JSON Number' exception if first character of 
> field name is number.
> Test case:
> {code}
> assertModel(MODEL)
>         .query("select cast(_MAP['1_minute_aggregation'] as INT) as 
> \"1_minute_aggregation\" "
>             + "from \"mongo_raw\".\"datatypes\"")
>         .queryContains(
>             mongoChecker("{$project: {'1_minute_aggregation': 1}}"));
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to