milvus/client/column
congqixia b389068584
fix: [GoSDK] align timestamptz field type and data format with server (#47304)
Related to #47303

The Go SDK had two issues with Timestamptz field type:

1. FieldTypeTimestamptz was incorrectly defined as 15, but server
expects 26
2. Timestamptz data was serialized as int64 via TimestamptzData, but
server expects ISO 8601 strings (RFC3339Nano format) via StringData

Changes:
- Update FieldTypeTimestamptz value from 15 to 26
- Modify ColumnTimestamptz to store data as RFC3339Nano strings
internally
- Change NewColumnTimestamptz to accept []time.Time and convert to ISO
strings
- Add ColumnTimestampTzIsoString for direct ISO string input
- Update FieldDataColumn to parse Timestamptz from StringData
- Update values2Scalars to handle Timestamptz as string type
- Add NewNullableColumnTimestamptz for nullable time.Time input
- Update NewNullableColumnTimestamptzIsoString for nullable ISO string
input
- Add corresponding unit tests

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2026-01-26 19:51:32 +08:00
..
array.go
array_test.go
columns.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
columns_test.go
conversion.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
dynamic.go
dynamic_test.go
generic_base.go
generic_base_test.go
geometry.go
geometry_test.go
json.go
json_test.go
nullable.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
nullable_test.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
scalar.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
scalar_test.go fix: [GoSDK] align timestamptz field type and data format with server (#47304) 2026-01-26 19:51:32 +08:00
sparse.go
sparse_test.go
struct.go
struct_test.go
vector.go
vector_test.go