Skip to content

Commit

Permalink
fix(batch-exports): Exclude _inserted_at in custom schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Oct 31, 2024
1 parent a311037 commit 502424b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions posthog/temporal/batch_exports/redshift_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ def get_redshift_fields_from_record_schema(
pg_schema: list[PostgreSQLField] = []

for name in record_schema.names:
if name == "_inserted_at":
continue

pa_field = record_schema.field(name)

if pa.types.is_string(pa_field.type) or isinstance(pa_field.type, JsonType):
Expand Down

0 comments on commit 502424b

Please sign in to comment.