Skip to content

Commit 72e8588

Browse files
committed
Added null check for all the timestamp columns for the table gcp_sql_backup Closes #535
1 parent a148c93 commit 72e8588

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcp/table_gcp_sql_backup.go

+3
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ func tableGcpSQLBackup(ctx context.Context) *plugin.Table {
6363
Name: "enqueued_time",
6464
Description: "Specifies the time when the run was enqueued.",
6565
Type: proto.ColumnType_TIMESTAMP,
66+
Transform: transform.FromField("EnqueuedTime").NullIfZero(),
6667
},
6768
{
6869
Name: "start_time",
6970
Description: "Specifies the time when the backup operation actually started.",
7071
Type: proto.ColumnType_TIMESTAMP,
72+
Transform: transform.FromField("StartTime").NullIfZero(),
7173
},
7274
{
7375
Name: "window_start_time",
7476
Description: "Specifies the start time of the backup window during which this the backup was attempted.",
7577
Type: proto.ColumnType_TIMESTAMP,
78+
Transform: transform.FromField("WindowStartTime").NullIfZero(),
7679
},
7780
{
7881
Name: "self_link",

0 commit comments

Comments
 (0)