Skip to content

Commit

Permalink
fix block bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xitongsys committed Nov 11, 2019
1 parent 86471e0 commit 522c7a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# parquet-go v1.4.2
# parquet-go v1.4.3
[![Travis Status for xitongsys/parquet-go](https://travis-ci.org/xitongsys/parquet-go.svg?branch=master&label=linux+build)](https://travis-ci.org/xitongsys/parquet-go)
[![godoc for xitongsys/parquet-go](https://godoc.org/github.com/nathany/looper?status.svg)](http://godoc.org/github.com/xitongsys/parquet-go)

Expand Down
7 changes: 4 additions & 3 deletions layout/rowgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package layout

import (
"errors"

"github.com/xitongsys/parquet-go/common"
"github.com/xitongsys/parquet-go/source"
"github.com/xitongsys/parquet-go/schema"
"github.com/xitongsys/parquet-go/parquet"
"github.com/xitongsys/parquet-go/schema"
"github.com/xitongsys/parquet-go/source"
)

//RowGroup stores the RowGroup in parquet file
Expand Down Expand Up @@ -77,6 +77,7 @@ func ReadRowGroup(rowGroupHeader *parquet.RowGroup, PFile source.ParquetFile, sc
default:
err = errors.New("unknown error")
}
close(doneChan)
}
}()

Expand Down
4 changes: 2 additions & 2 deletions writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ func (self *ParquetWriter) flushObjs() error {
default:
err = errors.New("unknown error")
}
close(doneChan)
}
doneChan <- 0
}()

if e <= b {
doneChan <- 0
return
}

Expand All @@ -234,7 +235,6 @@ func (self *ParquetWriter) flushObjs() error {
err = err2
}

doneChan <- 0
}(int(bgn), int(end), c)
}

Expand Down

0 comments on commit 522c7a9

Please sign in to comment.