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

Julian Hyde updated CALCITE-5405:
---------------------------------
    Description: 
When using the MongoDB adapter, the following conversion does not work as 
expected:
{code}
cast(_MAP['date'] as TIMESTAMP)
{code}
The resulting date is always {{1970-01-01}} and only the fractional seconds are 
set.

  was:
When using the MongoDB adapter, the following conversion does not work as 
expected:

cast(_MAP['date'] as TIMESTAMP)

The resulting date is always 1970-01-01 and only the fractional seconds are set.


> MongoDB: Invalid TIMESTAMP conversion
> -------------------------------------
>
>                 Key: CALCITE-5405
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5405
>             Project: Calcite
>          Issue Type: Bug
>          Components: mongodb-adapter
>    Affects Versions: 1.32.0
>            Reporter: Tim Nieradzik
>            Assignee: Tim Nieradzik
>            Priority: Minor
>              Labels: pull-request-available
>
> When using the MongoDB adapter, the following conversion does not work as 
> expected:
> {code}
> cast(_MAP['date'] as TIMESTAMP)
> {code}
> The resulting date is always {{1970-01-01}} and only the fractional seconds 
> are set.



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

Reply via email to