From ac14a34a0c6e6de428f9cde326b65a56f69f7d46 Mon Sep 17 00:00:00 2001 From: taniabogatsch <44262898+taniabogatsch@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:43:30 +0200 Subject: [PATCH] comment --- data_chunk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data_chunk.go b/data_chunk.go index 99285dea..966ac329 100644 --- a/data_chunk.go +++ b/data_chunk.go @@ -40,6 +40,8 @@ func (chunk *DataChunk) SetValue(colIdx int, rowIdx int, val any) error { column := &chunk.columns[colIdx] // Ensure that the types match before attempting to set anything. + // This is done to prevent failures 'halfway through' writing column values, + // potentially corrupting data in that column. v, err := column.tryCast(val) if err != nil { return columnError(err, colIdx)