Skip to content

Commit

Permalink
Fix DateTime64 columns configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops committed May 12, 2024
1 parent c694fc2 commit f59302f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions snuba/datasets/configuration/profiles/entities/chunks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ schema:
{ name: project_id, type: UInt, args: { size: 64 } },
{ name: profiler_id, type: UUID },
{ name: chunk_id, type: UUID },
{ name: start_timestamp, type: DateTime64 },
{ name: end_timestamp, type: DateTime64 },
{ name: start_timestamp, type: DateTime64, args: { precision: 6 } },
{ name: end_timestamp, type: DateTime64, args: { precision: 6 } },
]
required_time_column: start_timestamp

Expand All @@ -21,10 +21,9 @@ storage_selector:
query_processors:
- processor: TimeSeriesProcessor
args:
time_group_columns:
time: received
time_parse_columns:
- received
- start_timestamp
- end_timestamp

validate_data_model: error
validators:
Expand Down
5 changes: 2 additions & 3 deletions snuba/datasets/configuration/profiles/storages/chunks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ schema:
{ name: project_id, type: UInt, args: { size: 64 } },
{ name: profiler_id, type: UUID },
{ name: chunk_id, type: UUID },
{ name: start_timestamp, type: DateTime64 },
{ name: end_timestamp, type: DateTime64 },

{ name: start_timestamp, type: DateTime64, args: { precision: 6 } },
{ name: end_timestamp, type: DateTime64, args: { precision: 6 } },
{ name: retention_days, type: UInt, args: { size: 16 } },
{ name: partition, type: UInt, args: { size: 16 } },
{ name: offset, type: UInt, args: { size: 64 } },
Expand Down

0 comments on commit f59302f

Please sign in to comment.