Skip to content

Commit

Permalink
add schema to recordValueWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
William Parsley committed Dec 5, 2023
1 parent 97c1f91 commit 473d5eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/internal/feast/transformation/transformation_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ func (s *GrpcTransformationService) GetTransformation(
inputColumns = append(inputColumns, arr)
}

inputRecord := array.NewRecord(arrow.NewSchema(inputFields, nil), inputColumns, int64(numRows))
inputSchema := arrow.NewSchema(inputFields, nil)
inputRecord := array.NewRecord(inputSchema, inputColumns, int64(numRows))
defer inputRecord.Release()

recordValueWriter := new(ByteSliceWriter)
arrowWriter, err := ipc.NewFileWriter(recordValueWriter)
arrowWriter, err := ipc.NewFileWriter(recordValueWriter, ipc.WithSchema(inputSchema))
if err != nil {
fmt.Println("Error allocating NewFileWriter (GetTransformation)")
return nil, err
Expand Down

0 comments on commit 473d5eb

Please sign in to comment.