From 8ebe8f10382d20c68f977653fcf1feb6b21ada7b Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Tue, 15 Oct 2024 20:47:44 -0700 Subject: [PATCH] Clean up. --- lib/optimization/table_data.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/optimization/table_data.go b/lib/optimization/table_data.go index 55c93414a..c7cb08421 100644 --- a/lib/optimization/table_data.go +++ b/lib/optimization/table_data.go @@ -295,7 +295,9 @@ func (t *TableData) MergeColumnsFromDestination(destCols ...columns.Column) erro // If the column in the destination is a timestamp_tz and the in-memory column is a timestamp_ntz, we should update the layout to contain timezone locale. if foundColumn.KindDetails.ExtendedTimeDetails.Type == ext.TimestampTzKindType && inMemoryCol.KindDetails.ExtendedTimeDetails.Type == ext.TimestampNTZKindType { - inMemoryCol.KindDetails.ExtendedTimeDetails.Format += ext.TimezoneOffset + if inMemoryCol.KindDetails.ExtendedTimeDetails.Format != "" { + inMemoryCol.KindDetails.ExtendedTimeDetails.Format += ext.TimezoneOffset + } } // Just copy over the type since the format wouldn't be present in the destination