Skip to content

Epoch values (10byte number) from the sample data is being shown in the output in scientific format. #173

@soorajsprakash

Description

@soorajsprakash

Hi, So, have been using the playground recently (and its fun, thanks),
And while I was testing out some aggregation pipelines, i found out that even after a mere $match stage, epoch data (10 byte long number) was being shown in an exponential/scientific format in the output.

It will most likely a formatter issue.

Ex: 1658318035 -> 1.658318035e+09

Sample data:

[
  {
    "collection": "collection",
    "count": 100,
    "createdAt": 1658318035
  }
]

Query:

db.collection.aggregate([
  {
    "$match": {
      count: 100
    }
  }
])

Output:

[
  {
    "_id": ObjectId("5a934e000102030405000000"),
    "collection": "collection",
    "count": 100,
    "createdAt": 1.658318035e+09
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions