Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taniabogatsch committed Jun 18, 2024
1 parent fe5a309 commit ac14a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data_chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac14a34

Please sign in to comment.