Skip to content

Commit

Permalink
Added null check for all the timestamp columns for the table gcp_sql_…
Browse files Browse the repository at this point in the history
…backup Closes #535 (#536)
  • Loading branch information
ParthaI authored Jan 12, 2024
1 parent a148c93 commit 3c11ee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcp/table_gcp_sql_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,19 @@ func tableGcpSQLBackup(ctx context.Context) *plugin.Table {
Name: "enqueued_time",
Description: "Specifies the time when the run was enqueued.",
Type: proto.ColumnType_TIMESTAMP,
Transform: transform.FromField("EnqueuedTime").NullIfZero(),
},
{
Name: "start_time",
Description: "Specifies the time when the backup operation actually started.",
Type: proto.ColumnType_TIMESTAMP,
Transform: transform.FromField("StartTime").NullIfZero(),
},
{
Name: "window_start_time",
Description: "Specifies the start time of the backup window during which this the backup was attempted.",
Type: proto.ColumnType_TIMESTAMP,
Transform: transform.FromField("WindowStartTime").NullIfZero(),
},
{
Name: "self_link",
Expand Down

0 comments on commit 3c11ee1

Please sign in to comment.