Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/ingestion/connectors/ai/openai/dbt/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ sources:
# business bucket), so anchor source-level on it with the report tier;
# `users` is a full-refresh roster with no bucket column, overridden to the
# sync-liveness default. Confirm against live data once OpenAI is ingested.
#
# `bucket_start_time` is Unix **seconds** (an integer), not a date string —
# see the connector's own dbt models (to_ai_cost.sql / to_ai_tool_usage.sql:
# `toDate(fromUnixTimestamp(CAST(bucket_start_time AS UInt32)))`). Use the
# matching epoch conversion here; `parseDateTimeBestEffortOrNull` would fail
# on an integer.
freshness:
warn_after: {count: 72, period: hour}
error_after: {count: 120, period: hour}
loaded_at_field: parseDateTimeBestEffortOrNull(bucket_start_time)
loaded_at_field: fromUnixTimestamp(CAST(bucket_start_time AS UInt32))
schema: bronze_openai
tables:
- name: users # roster — no bucket column; sync-liveness default
Expand Down
4 changes: 3 additions & 1 deletion src/ingestion/connectors/wiki/confluence/dbt/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ sources:
tables:
- name: wiki_spaces
- name: wiki_pages # inferred windowed/event (updated_at)
loaded_at_field: parseDateTimeBestEffortOrNull(updated_at)
# ms-precision parse to match the connector's own model convention
# (confluence__wiki_pages: parseDateTime64BestEffortOrNull(updated_at, 3)).
loaded_at_field: parseDateTime64BestEffortOrNull(updated_at, 3)
freshness:
warn_after: {count: 96, period: hour}
error_after: {count: 168, period: hour}
Expand Down
4 changes: 3 additions & 1 deletion src/ingestion/connectors/wiki/outline/dbt/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ sources:
tables:
- name: wiki_spaces
- name: wiki_pages # inferred windowed/event (updated_at)
loaded_at_field: parseDateTimeBestEffortOrNull(updated_at)
# ms-precision parse to match the connector's own model convention
# (outline__wiki_pages: parseDateTime64BestEffortOrNull(updated_at, 3)).
loaded_at_field: parseDateTime64BestEffortOrNull(updated_at, 3)
freshness:
warn_after: {count: 96, period: hour}
error_after: {count: 168, period: hour}
Expand Down