From 49d6f585a52d88a9ebce171fe76c34824ae951b3 Mon Sep 17 00:00:00 2001 From: ParthaI Date: Thu, 11 Jan 2024 11:25:58 +0530 Subject: [PATCH] Fixed gcp_sql_backup table is throwing interfaceToColumnValue failed for column 'end_time' error Closes #533 --- gcp-test/tests/gcp_sql_backup/test-not-found-expected.json | 2 +- gcp/table_gcp_sql_backup.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcp-test/tests/gcp_sql_backup/test-not-found-expected.json b/gcp-test/tests/gcp_sql_backup/test-not-found-expected.json index 19765bd5..fe51488c 100644 --- a/gcp-test/tests/gcp_sql_backup/test-not-found-expected.json +++ b/gcp-test/tests/gcp_sql_backup/test-not-found-expected.json @@ -1 +1 @@ -null +[] diff --git a/gcp/table_gcp_sql_backup.go b/gcp/table_gcp_sql_backup.go index c8077933..eff2d69e 100644 --- a/gcp/table_gcp_sql_backup.go +++ b/gcp/table_gcp_sql_backup.go @@ -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",