Skip to content

Commit

Permalink
Test parquet files are readable
Browse files Browse the repository at this point in the history
Test should panic with:

```
panic: opening columns of parquet file: ParquetEnvelope: Message: Justification: Vote: Value: row group at index 0 does not have enough columns
```
  • Loading branch information
masih committed Oct 29, 2024
1 parent 12514c1 commit fadedfc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
7 changes: 7 additions & 0 deletions cmd/f3/msgdump/parquet.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ func (pw *ParquetWriter[T]) Close() error {
return pw.finalize()
}

func (pw *ParquetWriter[T]) FileName() string {
if pw.f != nil {
return pw.f.Name()
}
return ""
}

func (pw *ParquetWriter[T]) finalize() error {
err := pw.w.Close()
if err != nil {
Expand Down
Loading

0 comments on commit fadedfc

Please sign in to comment.