-
Notifications
You must be signed in to change notification settings - Fork 982
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
add context about updated_at support #6746
Conversation
this pr adds what type the updated_at field of the timestamp strategy should have in relation to iso date strings and unix epoch integers. Resolves # #1948
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
website/docs/docs/build/snapshots.md
Outdated
@@ -80,7 +80,7 @@ The following table outlines the configurations available for snapshots: | |||
| [strategy](/reference/resource-configs/strategy) | The snapshot strategy to use. Valid values: `timestamp` or `check` | Yes | timestamp | | |||
| [unique_key](/reference/resource-configs/unique_key) | A <Term id="primary-key" /> column(s) (string or array) or expression for the record | Yes | `id` or `[order_id, product_id]` | | |||
| [check_cols](/reference/resource-configs/check_cols) | If using the `check` strategy, then the columns to check | Only if using the `check` strategy | ["status"] | | |||
| [updated_at](/reference/resource-configs/updated_at) | If using the `timestamp` strategy, the timestamp column to compare | Only if using the `timestamp` strategy | updated_at | | |||
| [updated_at](/reference/resource-configs/updated_at) | If using the `timestamp` strategy, the timestamp column to compare. May support ISO date strings and unix epoch integers, depending on the data platform you use. | Only if using the `timestamp` strategy | updated_at | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hiya @mirnawong1
This reads a bit funny to me. Should this read: "If using the timestamp
strategy, the timestamp column will compare?"
Kind Regards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eek that does read weird! how about:
A column in your snapshot query results that indicates when each record was last updated, used in the timestamp strategy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's perfect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hiya @mirnawong1
Thanks for creating this PR. I've approved this for you and left a question.
Kind Regards
Natalie
this pr adds what type the updated_at field of the timestamp strategy should have in relation to iso date strings and unix epoch integers.
Resolves # #1948
🚀 Deployment available! Here are the direct links to the updated files: