I am trying to read an ORC file using the Go github.com/scritchley/orc
package.
I am able to read the content of the ORC file but I also wanted to read the ORC metadata. I can't find a straight forward of doing that with the package.
The example from the package:
r, err := orc.Open(localFileName)
if err != nil {
log.Fatal(err)
}
defer r.Close()
logging.Info("reader returned")
// Create a new Cursor reading the provided columns.
c := r.Select()
// Iterate over each stripe in the file.
for c.Stripes() {
// Iterate over each row in the stripe.
for c.Next() {
// Retrieve a slice of interface values for the current row.
log.Println(c.Row())
}
}
if err := c.Err(); err != nil {
log.Fatal(err)
}