Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Cannot convert from BSON type string to Date #552

Open
MANDLA15 opened this issue Aug 24, 2023 · 2 comments
Open

[BUG] - Cannot convert from BSON type string to Date #552

MANDLA15 opened this issue Aug 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MANDLA15
Copy link

Environment

  • DocumentDB JDBC driver version: 1.4.4
  • DocumentDB server version: 4.0
  • OS: Windows 10 64-bit
  • BI Tool or client name: Tableau Desktop
  • BI Tool or client version: 2022.1
  • Java version (if known): 8.341

Problem Description

  1. Steps to reproduce: key field on DocumentDB is Date. However on Tableau appears as string and unable to convert.
  2. Expected behaviour: display date on rows field
  3. Actual behaviour: error executing query
  4. Error message/stack trace:
    "Error Code: A96BDB88
    Execute query has failed, error: shadow.com.mongodb.MongoCommandException: Command failed with error 16006: 'can't convert from BSON type string to Date' on server documentdb. The full response is {"ok": 0.0, "operationTime": {"$timestamp": {"t": 1692798039, "i": 1}}, "code": 16006, "errmsg": "can't convert from BSON type string to Date"}."
@MANDLA15 MANDLA15 added the bug Something isn't working label Aug 24, 2023
@narek
Copy link

narek commented Aug 28, 2023

Hi @MANDLA15 Thanks for reporting a bug. I'll have a look at it.

@narek
Copy link

narek commented Sep 19, 2023

Hi @MANDLA15 $convert is not supported in DocumentDB yet. We'll update our release notes, once we add a support for $convert operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants