Skip to content

Commit

Permalink
Add null check for column end_time in the gcp_sql_backup table. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI authored Jan 11, 2024
1 parent f4ca8fa commit a148c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gcp-test/tests/gcp_sql_backup/test-not-found-expected.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
null
[]
1 change: 1 addition & 0 deletions gcp/table_gcp_sql_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func tableGcpSQLBackup(ctx context.Context) *plugin.Table {
Name: "end_time",
Description: "Specifies the time when the backup operation completed.",
Type: proto.ColumnType_TIMESTAMP,
Transform: transform.FromField("EndTime").NullIfZero(),
},
{
Name: "enqueued_time",
Expand Down

0 comments on commit a148c93

Please sign in to comment.