xitongsys / parquet-go

pure golang library for reading/writing parquet file
Apache License 2.0
1.27k stars 293 forks source link

[BUG] Can't use numbers in parquet column names #387

Closed CeciliaCoelho closed 3 years ago

CeciliaCoelho commented 3 years ago

If I have a column names 1_A, 2_A, etc the Schema ("Schema."+strconv.Itoa(1)+"A") doesn't work for some reason but if I change the order of the name components to A_1, A2, etc it works perfectly using "Schema.A"+strconv.Itoa(1). Is this a bug?

hangxie commented 3 years ago

This is by design, schema that does not start with alphabetic characters will be prefixed by PARGO_PREFIX, it's mentioned in the README, you can also reference to https://github.com/xitongsys/parquet-go/issues/294.