Skip to content

Clarify event time formats and millisecond precision - #338

Open
claude[bot] wants to merge 5 commits into
mainfrom
claude/event-time-format-clarity
Open

claude[bot] wants to merge 5 commits into
mainfrom
claude/event-time-format-clarity

Conversation

@claude

@claude claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Kurby Chua · Slack thread

Before: The Import Events reference described time only as "seconds or milliseconds since epoch", and the OpenAPI spec typed it as an integer. This suggested that an ISO string can't carry milliseconds or a Z, and that milliseconds require epoch time. The Warehouse Connectors overview described the Time column only as "the time at which the event occurred", with nothing on precision.

After: Import Events has a short table of the accepted time formats: epoch in seconds or milliseconds, as an integer or float, and RFC 3339 / ISO 8601 strings with fractional seconds and a Z or offset. It also says events are stored with millisecond precision, so a value like "2026-09-11T01:11:10.341Z" works as-is. On the Warehouse Connectors overview, the Time row of the Events schema table now says, for every warehouse, that Mixpanel keeps millisecond precision from the column. The per-warehouse pages and the Data Types page are unchanged.

How: reference/import-events.mdx (properties.time formats table), openapi/ingestion.openapi.yaml (/import time is now anyOf number or string, with an updated description) and docs/tracking-methods/warehouse-connectors.mdx (expanded Time row description in the Events schema table). The repo's docs CI scripts (frontmatter, code samples, links, redirects, OpenAPI) all pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b

- Import Events: document accepted `time` formats (epoch seconds/ms,
  RFC 3339 / ISO 8601 strings with fractional seconds and Z/offset)
  and millisecond storage precision.
- Ingestion OpenAPI: /import `time` accepts number or date-time string.
- Warehouse Connectors: add BigQuery note on Time column types
  (TIMESTAMP/DATETIME/DATE), ms precision, and view workaround.
- Data types: note that the Date property format doesn't govern the
  event `time` property.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b
@mintlify

mintlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mixpanel-docs 🟢 Ready View Preview Oct 20, 2026, 5:10 AM

@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable new issue remains.

Reviews (5) · Last reviewed commit: "Trim Time column description on warehous..." · Reviewed by Greptile

Comment thread openapi/ingestion.openapi.yaml Outdated
Comment thread docs/tracking-methods/warehouse-connectors.mdx Outdated
- openapi: drop `format: date-time` from the /import `time` string branch,
  since RFC 3339 date-time requires an offset but strings without one are
  accepted and treated as UTC.
- warehouse-connectors: note that BigQuery Mirror doesn't support views, so
  write the converted Time column into a table to use Mirror.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b
… BigQuery page

- Revert data-type.mdx to main (date-type format section unchanged).
- Remove the BigQuery note from the generic Warehouse Connectors overview.
- Add an "Event Time Column" section to the BigQuery connector page with
  the column type table, precision, and view conversion guidance.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b
…overview

Move millisecond-precision guidance for the Time column to the
warehouse-generic Events schema table and revert the BigQuery page.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b
Drop the sub-millisecond truncation and epoch/string conversion notes,
keeping only that Mixpanel keeps millisecond precision.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019z5vcGvyBsQEXLi3WSuj4b
@kurbycchua
kurbycchua marked this pull request as ready for review October 20, 2026 05:13
@kurbycchua
kurbycchua requested a review from a team as a code owner October 20, 2026 05:13

This branch was successfully deployed

1 active deployment
staging — 90d81bc5 Deployed Oct 20, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant