Skip to content

Commit

Permalink
skip views
Browse files Browse the repository at this point in the history
  • Loading branch information
terzioglub committed Feb 4, 2025
1 parent 3ea879d commit d028990
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/snowflake/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ func (o *MetadataOperator) Run(ctx context.Context, ti scheduler.TaskInstance) e
return errors.New("no writer found in context, please create an issue for this: https://github.com/bruin-data/bruin/issues")
}

// Skip metadata push for views
if ti.GetAsset().Materialization.Type == pipeline.MaterializationTypeView {
_, _ = writer.Write([]byte("\"Skipping metadata update: Column comments are not supported for Views.\n"))
return nil
}

err = client.PushColumnDescriptions(ctx, ti.GetAsset())
if err != nil {
_, _ = writer.Write([]byte("Failed to push metadata to Snowflake, skipping...\n"))
Expand Down

0 comments on commit d028990

Please sign in to comment.